When I test jar installer on Cygwin, it gives an error Error: Could not find or load main class nxt-client-1.12.2
When I click on the .exe file, it starts an extractor window. The window closes after 100% extraction and then nothing happens further. What should I ideally expect here?
Also, where does the installer install the files on the drive?
You must build the installer using Java 8 (not a higher version of Java)
You need to include two folders in the installer
jdk.runtime - this is the JDK version packaged with the installation to be used in runtime
javafx-sdk.runtime - this is the JavaFX sdk included in the installation it will be automatically used to run the desktop wallet once you launch nxt.exe
Sensible choices for this would be the latest OpenJDK version and the latest Java FX SDK from JavaFX - Gluon
Assuming the Java Fx folder is named javafx-sdk-16 rename it to javafx-sdk.runtime and copy it into the root folder of the Nxt project. Same for the Open JDK version.
The installer copies the jdk folder from the jdk.runtime folder to the jdk folder of the installation and similarly the javafx-sdk folder from the javafx-sdk.runtime folder.
This enables using one version of Java for building the installer and another version of Java (typically the latest) and JavaFX for runtime.
Thank you. I have successfully build .exe and .jar file. I would like to point out that in setup.xml for clone kit, these folders are not included as packs.
Also, if I name these folders javafx-sdk.runtime and jdk.runtime, I have to edit the same in compile.sh and build-exe.bat.
Now my question is, when I test nt.jar file in cmd with java -jar nxt.jar, it starts in CommandLineMode. How do I start .jar and .exe directly in desktop mode?