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

Mark Stuart

Well-Known Member
Licensed User
Longtime User
C:\Users\Mark>ftype JARFile="c:\java\jdk-19.0.2\bin\javaw.exe" -jar --module-path c:\java\jdk-19.0.2\javafx\lib --add-modules javafx.controls "%1" %*"

File type 'JARFile' not found or no open command associated with it.
 

Mark Stuart

Well-Known Member
Licensed User
Longtime User
We're (I'm) screwing up: jdk 19 doesn't have c:\java\javafx\lib

This thread is about

Running Jar with double click (in Java OpenJDK 11+ )

Mine does. My java folder is a direct reflection of the installation directions from the B4X webpage.
 

Attachments

  • jAVAfx_lIB.png
    32.3 KB · Views: 147

LucaMs

Expert
Licensed User
Longtime User

Your message arrived while I was typing mine. You already have JavaFx, so that's fine.
Mine does
 

Mark Stuart

Well-Known Member
Licensed User
Longtime User
I already did that.


C:\Users\Mark>ftype JARFile="c:\java\jdk-19.0.2\bin\javaw.exe" -jar --module-path c:\java\jdk-19.0.2\javafx\lib --add-modules javafx.controls "%1" %*"
File type 'JARFile' not found or no open command associated with it.
 

Mark Stuart

Well-Known Member
Licensed User
Longtime User
Mark, please, help me... to help you

If you run, inside A DOS window:

java -?
and press Enter,

do you see Java Help in the DOS window?
Yes. I ran the above command. Didn't you see that?
And I did run java -?
I saw all the command options. I don't know what to do with all that.
 

Mark Stuart

Well-Known Member
Licensed User
Longtime User
C:\Users\Mark>assoc .jar=JARFILE

Access is denied.
Error occurred while processing: .jar.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…