Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class not found exception after installation on Windows #472

Closed
andrii0lomakin opened this issue Jul 1, 2024 · 9 comments
Closed

Class not found exception after installation on Windows #472

andrii0lomakin opened this issue Jul 1, 2024 · 9 comments
Assignees
Labels
question Further information is requested

Comments

@andrii0lomakin
Copy link
Contributor

After installation and execution of stewards.cmd on windows I have got

python .\bin\tornado WARNING: Using incubator modules: jdk.incubator.vector Error: Could not find or load main class None Caused by: java.lang.ClassNotFoundException: None

@stratika
Copy link
Collaborator

hi @andrii0lomakin, I guess by stewards.cmd you mean setvars.cmd? I tried last week (before the release) to install and run TornadoVM on Windows 11.

Can you please provide some additional information regarding:

  • What is the terminal that you are using in Windows? Is it x64 Native Tools Command Prompt for VS 2022?
  • What is the command that you built TornadoVM? To understand also which JDK, and backend you are building with.
  • Which commit point did you build with?

@andrii0lomakin
Copy link
Contributor Author

Hi @stratika
You can easily reproduce it on a Docker NVIDIA-based image.

@jjfumero
Copy link
Member

TornadoVM does not have any image for PTX + Windows. Since no instructions for reproducing the error are provided, I will close this issue. Feel free to open new issues with concrete steps to reproduce them if this problem persists.

@andrii0lomakin
Copy link
Contributor Author

Hi @jjfumero
I have provided such instructions.

You can easily reproduce it on a Docker NVIDIA-based image.

Please see above.

@andrii0lomakin
Copy link
Contributor Author

 docker run --rm -it --entrypoint bash beehivelab/tornadovm-nvidia-openjdk:1.0.6
root@5682c8b3b0cf:/data# tornado
WARNING: Using incubator modules: jdk.incubator.vector
Error: Could not find or load main class None
Caused by: java.lang.ClassNotFoundException: None
root@5682c8b3b0cf:/data#

@jjfumero
Copy link
Member

You need to pass your program:

$ tornado YourJavaProgram

You can also try

$ tornado --devices

Which runs a Java program to explore all devices reachable within your system. The image you are running is for the OpenCL backend on NVIDIA GPUs. So this image assumes you have an NVIDIA GPU that can run OpenCL.

@jjfumero jjfumero added the question Further information is requested label Aug 12, 2024
@jjfumero jjfumero self-assigned this Aug 12, 2024
@andrii0lomakin
Copy link
Contributor Author

andrii0lomakin commented Aug 12, 2024

I supposed that, in such cases, some meaningful message would not harm instead of error of absence main class . I mean if I run java it prints me usage instructions instead of ClassNotFoundException message. But it is obviously not critical. Just FYI.

@jjfumero
Copy link
Member

The ClassNotFoundException error is thrown by the Java Runtime, not by TornadoVM.

@andrii0lomakin
Copy link
Contributor Author

@jjfumero I understand that, but it is possible to change script that it will provide more helpful message in such case. Anyway it is definitely not critical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants