B4J Question missing javafx

MrKim

Well-Known Member
Licensed User
Longtime User
New Computer - Win 10. Installed latest Java, latest eclipse and latest JDK, latest B4j.
Try to compile the B4j example file TextFiles.b4j
www.b4x.com/b4j/files/Examples.zip
and get the following error:


B4X:
B4J version: 5.51
Parsing code.    (0.00s)
Compiling code.    (0.01s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
Compiling generated Java code.    Error
javac 1.8.0_112-release
src\b4j\example\main.java:7: error: package javafx.application does not exist
public class main extends javafx.application.Application{
                                            ^
1 error

If it is any clue I did NOT install eclipse and jdk to the default location. They went to drive D:. B4J and Java went to default locations on drive C:.

jFX lib is Version 5.50 which is assume is what is installed by the b4j installer.
Program shows no errors.

Solutions I found say update the java but it is the latest.

A hard drive search (both c and d drives) for javafx turned up only the following:

upload_2017-7-11_20-0-26.png


Thanks for any help.
 
Last edited:

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
may be...

1.- you installed openJDK instead of ORACLE JDK
2.- You created a new project -> non ui when you wanted to create a ui

As you can see when you searched javafx in your computer, it is only appearing in the JRE not in the JDK folder. Making my first theory my best guess.
 
Upvote 0

MrKim

Well-Known Member
Licensed User
Longtime User
How do I tell which one I installed and honestly, how would I know which one to install?
 
Upvote 0

MrKim

Well-Known Member
Licensed User
Longtime User
No.

Can you post a screenshot of Tools - Paths Configuration window?
Also found something onlie about path variables (which were not set) so I added PATH and Java_Home and rebooted. It made Javac run from a command prompt without the path but didn't resolve the missing javafx issue.
upload_2017-7-12_0-5-42.png
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Also found something onlie about path variables (which were not set) so I added PATH and Java_Home and rebooted. It made Javac run from a command prompt without the path but didn't resolve the missing javafx issue.
Just follow the very simple installation instructions and it will work. No need to guess anything.
 
Upvote 0
Top