B4J Question JDK 11 - Executing JAR file on MAC problem

Philip Chatzigeorgiadis

Active Member
Licensed User
Longtime User
After succesfully switching from JAVA 8 to OpenJDK 11 a few months ago, this week I had to update an older problem which was running on a MAC.
I downloaded JDK to MAC from here: https://b4xfiles-4c17.kxcdn.com/b4j/mac_jdk-11.0.1.zip


I have 2 failed approaches:

Approach 1: Use B4JPackager11 on the MAC.
I encountered a problem that was already discussed in this forum. Still, I could not find how to implement the solution. I have already posted my problem in the relevant thread, but I have received no answer so far:

Approach 2: Execute the Jar file directly - I do not know if it's a valid approach, but i tried anyway.
I added jdk11.0.1/javafx and jdk11.0.1/bin to the PATH.
B4X:
Andreas2015:objects andreas$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/andreas/documents/java/jdk11.0.1/javafx:/Users/andreas/documents/java/jdk11.0.1/bin

Then, I explicitly run java from java11.0.1/bin. This is what I got:
B4X:
Andreas2015:objects andreas$ /users/andreas/documents/java/jdk11.0.1/bin/java -jar boxgraphics.jar
Error: JavaFX runtime components are missing, and are required to run this application
Andreas2015:objects andreas$
Any suggestions?
 
Top