B4J Question [SOLVED] Java 25.0.3

hatzisn

Expert
Licensed User
Longtime User
Good evening everyone,

I tried to upgrade my java to Java 25.0.3 and I followed @aeric's tutorial here:


the JavaFX SDK is located in jdk-25.0.3 folder named as javafx and inside this folder is unziped the javafx-jmods-25.0.3 as javafx-jmods.

I tried to compile a project but what I get is the following:

Compiling generated Java code. Error
src\b4j\example\main.java:7: error: package javafx.application does not exist
public class main extends javafx.application.Application{

Am I missing something here?
 

Daestrum

Expert
Licensed User
Longtime User
Did you add the
#JavaCompilerPath: 25, c:/where25is/bin/javac.exe

seem to recall the later javas wont use javafx without it
 
Upvote 1
Solution

hatzisn

Expert
Licensed User
Longtime User
Did you add the
#JavaCompilerPath: 25, c:/where25is/bin/javac.exe

seem to recall the later javas wont use javafx without it

Thank you, it worked. Do I have to put it in every JavaFX project?
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
I think its on 19+ java using JavaFX as the IDE doesn't know them. On non-UI its fine they run without it on any java version.
 
Upvote 0
Top