B4J Question Help Error in Compiling

ferdztech

Member
Licensed User
Longtime User
Hi,
It's my first time to use B4J. im using version 1.05. but when i try to compile im getting error

Parsing code. 0.00
Compiling code. 0.03
Compiling generated Java code. Error
javac 1.7.0_01
src\b4j\example\main.java:5: error: package javafx.application does not exist
public class main extends javafx.application.Application{
^
1 error

Attachment included

Thanks.
 

Attachments

  • Calculator.zip
    1.7 KB · Views: 187
  • calculator_error.JPG
    calculator_error.JPG
    157.7 KB · Views: 175

mjas

Member
Licensed User
Longtime User
Use the latest version of B4J (1.50)
You should install a more recent version of Java (1.7.0_06 is the minimum version).
hello, i'm trying B4J and installed the latest version (1.50), JavaFX Scene Builder 2.0 and the latest Java version (1.8.0).
And compliling the demos for different libraries I have always the same error:
src\b4j\example\main.java:5: error: package javafx.application does not exist
public class main extends javafx.application.Application{
What am I missing here? Thanks.
 
Upvote 0

mjas

Member
Licensed User
Longtime User
Have you configured the IDE to use the correct Java installation (under Tools - Configure Paths)?
Yes, and thank you for your answer.
But my problem was Java 8 SDK.
I suspected that when trying the JavaFX Controls samples, always the same error about no skins.
I installed Java 7 SDK and now everything is working...
But this means that anyone who updates from Java7 to 8 is no more able to use Java FX, at leat these libraries (jFXtrasControls,jar and jFXtrasGauges.jar)?
 
Upvote 0
Top