Note:
-
Download the *.deb file to run on Linux. As I am not experienced in packaging java applications for native systems, the *.deb file has not been tested, and may be subject to errors.
-
Download the *.jar file to run on any operating System (Windows, Linux, MacOS, etc.) having one of the JREs (e.g. OpenJDK) installed. The *.jar file is guaranteed to work using a Java Runtime Environment (JRE); also referred to as Java Virtual Machine (JVM).
-
To compile and build native executables, make sure to download the relevant OpenJFX Version 17.0.1 SDK/JMod files.
-
If you're using the
package
shell script for thejpackage
command (in order to generate the app-image), make sure to make the following change, following thepackage
script, but preceding therunpkg
script:-
At the following relative path,
package/appimage/TypingPracticeAndTest/lib/app
, in the following file,TypingPracticeAndTest.cfg
, replaceapp.mainclass= TypingPracticeAndTest/App
withapp.mainclass=TypingPracticeAndTest/App
. -
The additional space has been removed as it causes an error during run-time. Also, the generation of the space itself could be an OpenJDK bug.
-
-
If you're compiling for packaging, that is, using the
jpackage
command, following thejavac
andjar
commands, then make the following changes to theModel.java
file:-
Un-comment the code at line number 18 :
private static String APP_DIR_PATH = System.getProperty("filepath");
-
Comment out the code at line number 20 :
private static String APP_DIR_PATH = "TypingPracticeAndTest";
-
If you're compiling normally (for JRE), using
javac
andjava
, then reverse the above changes.
-