java.lang.NoClassDefFoundError: javafx/application/Application
See original GitHub issueWhen I give the distribution to another one to run, It will be broken, And then what I can do to fix it,
In my mac, It works well.
@edvin
Error: Could not find or load main class wu.seal.demo.app.MyApp
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
And Their Environment is Java8 Also in my Linux VM with java11 run with the same problem. Is there any quick method to let others could run my tornadofx app?
I had also let others to run these command lines:
wget http://fxldemo.tornado.no/fxlauncher.jar
java -jar fxlauncher.jar
But with the same Error
It seems that javaFx
is hard for using for others.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
java.lang.NoClassDefFoundError: javafx/application/Application
You are getting this error because your runtime PATH to javafx is probably incorrect or missing. Please, follow these steps:.
Read more >JavaFX Exception in thread "main" java.lang ... - Stack Overflow
JavaFX Exception in thread "main" java.lang.NoClassDefFoundError: javafx/application/Application · possible duplicate of jdk1. · I declared my ...
Read more >Cool IT Help - YouTube
Error Fixed - Caused by: java. lang. NoClassDefFoundError : javafx/application / Application. 9.1K views 6 months ago. Cool IT Help. Cool IT Help....
Read more >java.lang.NoClassDefFoundError: javafx/application ... - GitHub
Hi, I am using Ubuntu 16.04.4. I get a NoClassDefFoundError when I run java -jar ~/Downloads/rodain-app-2.1.0-beta.7_OtherOS.jar ...
Read more >java.lang.NoClassDefFoundError: javafx/application ...
I just started working through this online textbook I am trying to run one of the sample GUI programs (GUIDemo, section 1.6) in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A TornadoFX 1 based application requires Java 8 and JavaFX, just like any other JavaFX based application. If you install OpenJDK you will also need to install OpenJFX. For TornadoFX 2, the situation is the same, but Java 13 doesn’t include JavaFX, so it must be included with your application.
If you’re going to distribute your app to non-developers, you need to wrap it in an installer, or provide clear installation instructions. That’s what FXLauncher is for - it allows you to distribute a binary for each platform you want to support, and this binary will make sure to install all required dependencies, like the Java and JavaFX runtimes needed for your app.
NoClassDefFoundError: javafx/application/Application
states that JavaFX is missing from the classpath, so it should be pretty straight forward for a developer to figure out. You shouldn’t bother your end users with that sort of issues, hence the installer route is the way to go 😃@edvin Tks for your detail instruction! Let me research FXLauncher later 😃