B4J Question animatedcounter error at 'jPOI to the rescue' example

MarcRB

Active Member
Licensed User
Longtime User
Hello,

I'm trying to run the example 'jPOI to the rescue' because I will try to edit an existing MS Word doc / template file.
During compiling I've got this error.
Is there something not compatible with B4J v10 at Java 14.
Or do I need some extra libs?

The error says it is missing an image in animatedcounter.java.
Why do I need this animated counter for this example?

Compiler error:
B4J Versie: 10.00
Controleren code.    (0.11s)
    Java Versie: 14
Building folders structure.    (0.06s)
Compileren code.    (0.29s)
Compileren weergaven code.    (0.02s)
Bibliotheken organiseren.    (0.00s)
Compileren gegenereerde Java code.    Error
B4J line: 73
xfadeIv.SetBitmap(fade.Resize(Width, Height, Fals
src\b4j\example\animatedcounter.java:73: 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()));
                                                                                             ^

Best regards ad thanks for any help,
Marc
 

Daestrum

Expert
Licensed User
Longtime User
You are writing this in a UI app and not a console app?
 
Upvote 0
Solution

MarcRB

Active Member
Licensed User
Longtime User
yes in a ui app, that's my goal.

But now I just run the example (non ui).
Only change was the file location for input.doc and output.doc to c:\test
 
Last edited:
Upvote 0

MarcRB

Active Member
Licensed User
Longtime User
Thank you,

You point me to the right direction.
I now created a ui app with the same example code , and now it works.

I don't get why it isn't work as non ui app, because the example is made in that way.
No problem it is working in a ui app.
 
Upvote 0
Top