B4J Question B4J Program Wont Compile - r.java:77: error: package javafx.scene.image does not exist

rgarnett1955

Active Member
Licensed User
Longtime User
Hi

The attached program used to compile OK But now it won't

I am comping it with B4J V8.5.

Compile Error:
B4J Version: 8.50
Java Version: 11
Parsing code.    (0.11s)
Building folders structure.    (0.08s)
Compiling code.    (0.22s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
Compiling generated Java code.    Error
B4J line: 73
xfadeIv.SetBitmap(fade.Resize(Width, Height, Fals
src\b4j\pmon_userver\animatedcounter.java:77: error: package javafx.scene.image does not exist
__ref._xfadeiv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetBitmap((javafx.scene.image.Image)(__ref._fade /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .Resize((int) (_width),(int) (_height),__c.False).getObject()));

I am using:

W:\MyProgramFiles_W\Java\jdk-11.0.1\bin\javac.exe which was recommended in the installation instructions.


Snag_f9af98f.png


Best regards
Rob
 

rgarnett1955

Active Member
Licensed User
Longtime User
Hi Erel,

The problem was that the project was a non UI and it needed jdk8.

It might be worth mentioning this on the installation page if this was the problem.

Best regards
Rob
 
Upvote 0
Top