Error when trying to inspect e4 apps with Scenic View [message #1836526] |
Wed, 06 January 2021 21:54 |
Stephane fournier Messages: 340 Registered: July 2009 |
Senior Member |
|
|
Hi,
Happy New Year e(fx)clipse community :-)
I have an e4 rcp app based on efx running with AdoptOpenJDK 15 + OpenJFX 15.
In my product file I have this to make it run smoothly:
-Dosgi.framework.extensions=org.eclipse.fx.osgi
-Defxclipse.java-modules.dir=/path/to/javafx-sdk-15.0.1/lib
In parallel, I run ScenicView (v11.0.2) from a terminal with this command:
java --module-path /path/to/javafx-sdk-15.0.1/lib --add-modules javafx.controls,javafx.web,javafx.fxml,javafx.swing -jar scenicview.jar
When ScenicView detects my e4 rcp app, in the traces of my app I got some ClassNotFoundException against JavaFX classes (see below ***).
I tried to add, as default VM args, --module-path and --add-modules directives, but it still fails with other errors and the e4 app is no longer launching.
Does anyone have an idea or experience with e4 RCP with JFX11 and Scenic View please ?
***:
Exception in thread "Attach Listener" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:535)
Caused by: java.lang.NoClassDefFoundError: javafx/collections/ListChangeListener
at org.fxconnector.remote.RuntimeAttach.init(RuntimeAttach.java:85)
at org.fxconnector.remote.RuntimeAttach.agentmain(RuntimeAttach.java:58)
... 6 more
Caused by: java.lang.ClassNotFoundException: javafx.collections.ListChangeListener
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 8 more
Agent failed to start!
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03899 seconds