B4J Tutorial Running Jar with double click (in Java OpenJDK 11)

As shared in multiple places in this forum Java 11 OpenJDK does not allow to run jar files directly. (here)

Here is an easy workaround...

1. Run cmd with administrator privilege.
2. Type the following two commands:
ftype JARFile="c:\java\bin\javaw.exe" -jar --module-path c:\java\javafx\lib --add-modules javafx.controls "%1" %*"

assoc .jar=JARFile

Replace the path "c:\java\bin\javaw.exe" and "c:\java\javafx\lib" based on your installed java folder.

Last edited: