B4J Question [ Solved ] : After updating B4J from 9.30 to 9.80, I get compilation errors

johnerikson

Active Member
Licensed User
Longtime User
After updating B4J from 9.30am to 9.80am, I get compilation errors:


B4J Version: 9.80
Parsing code. (0.44s)
Java Version: 14
Building folders structure. (0.10s)
Compiling code. (0.63s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Compiling generated Java code. Error
B4J line: 66
ImageView.SetBitmap(Bmp)
src\GISIQON\EasyMedia\xuiviewsutils.java:123: error: package javafx.scene.image does not exist
_imageview.SetBitmap((javafx.scene.image.Image)(_bmp.getObject()));

It is a non-UI ABM-application.
Have observed previous questions about this and have therefore downloaded the latest jdk-14.0.1 from the Anyware Software forum,
unzipped with 7-zip, but not come to terms with the problem.
So, I don't get on with 9.80!
How to do?
 

johnerikson

Active Member
Licensed User
Longtime User
Thanks!
I don't use wievs in the project, the project has been able to be compiled until the update to v 9.80.
The project is relatively large, how to locate which line is causing the error. Apparently somewhere in the code I've used views that I can't find!
If I disable lib XUI Views, the calibration works but the project does not start but I get the message below without what and where the error is in the code!

Waiting for debugger to connect...
java.lang.NoClassDefFoundError: javafx/scene/control/Dialog
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:340)
at anywheresoftware.b4a.shell.Shell.getCorrectClassName(Shell.java:519)
at anywheresoftware.b4a.shell.Shell.createObject(Shell.java:506)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:252)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
........and more
 
Upvote 0

johnerikson

Active Member
Licensed User
Longtime User
There is no code that uses XUI views in this project!
The mistake was that XUI Views lib was enabled. When I disable XUI Views lib, the compile works







but the application does not start, but the following message appears, which is impossible for me to understand!!

Waiting for debugger to connect...
java.lang.NoClassDefFoundError: javafx/scene/Node
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:340)
at anywheresoftware.b4a.shell.Shell.getCorrectClassName(Shell.java:519)
at anywheresoftware.b4a.shell.Shell.createObject(Shell.java:506)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:252)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:100)
at GISIQON.EasyMedia.main.<clinit>(main.java:17)
Caused by: java.lang.ClassNotFoundException: javafx.scene.Node
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 13 more
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/scene/Node
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:140)
at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:100)
at GISIQON.EasyMedia.main.<clinit>(main.java:17)
Caused by: java.lang.NoClassDefFoundError: javafx/scene/Node
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:340)
at anywheresoftware.b4a.shell.Shell.getCorrectClassName(Shell.java:519)
at anywheresoftware.b4a.shell.Shell.createObject(Shell.java:506)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:252)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111)
... 2 more
Caused by: java.lang.ClassNotFoundException: javafx.scene.Node at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 13 more
 
Upvote 0

johnerikson

Active Member
Licensed User
Longtime User
Errors solved: 'Intractable troubleshooting'

The problem occurs because I used parts from ABMaterial that were not updated for v5.00. Example: Dim GameViewHelp, As GameViewHelper etc. I have to communicate with Mr Alain on this.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…