Skip to content
Advertisement

Tag: javafx

Jar doesn’t execute on linux

I exported an executable Jar file from Eclipse. On Windows when I double-click the file, it executes properly. When I run it from command line with java -jar MyJar.jar it also works. But when I upload that file on my linux VPS and try to run it there, I just get the error Error: Could not find or load main

Linux executable fails using javafx-maven-plugin

I have a multimodule maven project with JavaFX up and running. I can create an jar file containing all classes that is executable through a maven assembly, so I know the packaged bundle works. For conveniance I want to create a native bundle/executable using the javafx-maven-plugin This works fine on Windows, creates an exe file that can be run. However

Advertisement