Add new comment

problem running .exe

Hi

I downloaded your trial version and built an exe, but when I run it I get an error dialog stating:

 

"The main startup class could not be found".

 

If I run my jar at command-line; as follows:

 

java -jar file.jar

 

then it runs fine.

 

My .jar file contains a manifest that details a require /lib folder. I don't have to additionally specify this also?

The project was built using NetBeans as a JavaFX project and the manifest has the following form:

JavaFX-Application-Class: com.company.Main

Main-Class: com/javafx/main/Main

JavaFX-Class-Path: lib/...

 

When I specify the startup class it is the one indicated by JavaFX-Application-Class and not Main-Class. Is this the source of the error at startup?

 

Thanks