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

Could not find or load main class com.tomeraberbach.mano.application.Main #5

Closed
audioresearch74 opened this issue Mar 18, 2021 · 9 comments

Comments

@audioresearch74
Copy link

fail to launch the application
this is the output:
~/Public/HelpFaceBookFriends2020/ManoSimulator$ java -jar mano-simulator.jar
Error: Could not find or load main class com.tomeraberbach.mano.application.Main
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
~/Public/HelpFaceBookFriends2020/ManoSimulator$

openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu219.10)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu219.10, mixed mode, sharing)

installed JDK and FX from synaptic (Ubuntu19.10)

how to fix this?

@TomerAberbach
Copy link
Owner

Seems similar #4. I know you said you installed JavaFX, but are you sure? It seems it can't find a JavaFX related class. I think the package you need is openjfx.

Could also be related to this bug? I don't remember if I've ever tested the simulator with JDK 11.

@audioresearch74
Copy link
Author

Seems similar #4. I know you said you installed JavaFX, but are you sure? It seems it can't find a JavaFX related class. I think the package you need is openjfx.

Could also be related to this bug? I don't remember if I've ever tested the simulator with JDK 11.

could it be I need to re-compile jar archive using jdk 11 so its format will fit java of jdk 11?

@TomerAberbach
Copy link
Owner

Possibly. I probably won't have time to do that for a little while so you can either try to do it yourself or you can wait until I have time.

@karanmistry1804
Copy link

fail to launch the application
this is the output:
~/Public/HelpFaceBookFriends2020/ManoSimulator$ java -jar mano-simulator.jar
Error: Could not find or load main class com.tomeraberbach.mano.application.Main
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
~/Public/HelpFaceBookFriends2020/ManoSimulator$

openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu219.10)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu219.10, mixed mode, sharing)

installed JDK and FX from synaptic (Ubuntu19.10)

how to fix this?

Have you solve this error??

@TomerAberbach
Copy link
Owner

Hey @audioresearch74 and @karanmistry1804. I found the time to make this work for Java 11+. Please try the new release and let me know if it works!

@karanmistry1804
Copy link

karanmistry1804 commented Apr 27, 2021 via email

@TomerAberbach
Copy link
Owner

@karanmistry1804, I tweaked some stuff and uploaded a new JAR to the same release. Can you redownload and try again? Make sure you run java -jar on the new JAR!

@karanmistry1804
Copy link

karanmistry1804 commented Apr 30, 2021 via email

@TomerAberbach
Copy link
Owner

No problem! I'm glad it's working for you now 😄

I'm going to close this issue @audioresearch74, but feel free to reopen if you run into any problems!

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

No branches or pull requests

3 participants