Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Testing FXCanvas with SWTBot
Testing FXCanvas with SWTBot [message #1395801] Mon, 07 July 2014 12:19 Go to next message
Łukasz Drąg is currently offline Łukasz DrągFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,

I'm currently struggling with SWTBot test for a part based on FXCanvas. If in my test method I try to open this part with:
EPartService.showPart( "foo.bar.myFXCanvasPart", PartState.ACTIVATE );


I always end up with:
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:62)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:888)
	at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:120)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:337)
	at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:258)
....
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
	at java.lang.ClassLoader.findBootstrapClass(Native Method)
	at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1012)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:413)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.eclipse.fx.osgi.fxloader.FXClassLoader$FXModuleClassloader$1.findLocalClass(FXClassLoader.java:140)


The test run configuration contains the necessary OSGi extension:
-Dosgi.framework.extensions=org.eclipse.fx.osgi

The interesting thing is that when I start the application (not a test case) everything is just fine, the fx-based part works without any problems.

Does anybody have a clue what's wrong?
Re: Testing FXCanvas with SWTBot [message #1395820 is a reply to message #1395801] Mon, 07 July 2014 12:49 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Try adding "-Defxclipse.osgi.hook.debug=true" this should give you more
informations about the hook classloading.

Tom

On 07.07.14 14:19, Łukasz Drąg wrote:
> Hi,
>
> I'm currently struggling with SWTBot test for a part based on FXCanvas.
> If in my test method I try to open this part with:
>
> EPartService.showPart( "foo.bar.myFXCanvasPart", PartState.ACTIVATE );
>
>
> I always end up with:
>
> org.eclipse.e4.core.di.InjectionException:
> java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
> at
> org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:62)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:888)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:120)
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:337)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:258)
> ...
> Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
> at java.lang.ClassLoader.findBootstrapClass(Native Method)
> at
> java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1012)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:413)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at
> org.eclipse.fx.osgi.fxloader.FXClassLoader$FXModuleClassloader$1.findLocalClass(FXClassLoader.java:140)
>
>
> The test run configuration contains the necessary OSGi extension:
> -Dosgi.framework.extensions=org.eclipse.fx.osgi
>
> The interesting thing is that when I start the application (not a test
> case) everything is just fine, the fx-based part works without any
> problems.
>
> Does anybody have a clue what's wrong?
Re: Testing FXCanvas with SWTBot [message #1396311 is a reply to message #1395820] Tue, 08 July 2014 05:57 Go to previous messageGo to next message
Łukasz Drąg is currently offline Łukasz DrągFriend
Messages: 10
Registered: July 2009
Junior Member
I already did that, but without much effect. The result output looks like this:
FXClassLoader#createJREBundledClassloader - Started
FXClassLoader#createJREBundledClassloader - Assumed location (Java 8/Java 7): C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\jfxrt.jar
FXClassLoader#createJREBundledClassloader - SWT is available use different loading strategy
FXClassLoader#createJREBundledClassloader - Searching for SWT-FX integration at C:\Program Files\Java\jdk1.8.0_05\jre\lib\jfxswt.jar
FXClassLoader#createJREBundledClassloader - Found SWT/FX
FXClassLoader#createJREBundledClassloader - Delegate to system classloader
FXClassLoader#createJREBundledClassloader - Ended
FXModuleClassloader#findLocalClass trying to load class 'javafx.collections.ObservableList'
FXModuleClassloader#findLocalClass trying to load class 'javafx.collections.transformation.FilteredList'
FXModuleClassloader#findLocalClass trying to load class 'com.sun.javafx.collections.ObservableSequentialListWrapper'
FXModuleClassloader#findLocalClass trying to load class 'javafx.collections.ListChangeListener'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.control.Control'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.control.ListCell'
FXModuleClassloader#findLocalClass trying to load class 'javafx.collections.ListChangeListener$Change'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.input.DragEvent'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.canvas.Canvas'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.input.MouseEvent'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.control.ContextMenu'
FXModuleClassloader#findLocalClass trying to load class 'javafx.event.ActionEvent'
FXModuleClassloader#findLocalClass trying to load class 'javafx.beans.Observable'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.Parent'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.layout.BorderPane'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.Node'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.layout.HBox'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.control.ToolBar'
FXModuleClassloader#findLocalClass trying to load class 'javafx.embed.swt.FXCanvas'
FXModuleClassloader#findLocalClass - Someone is trying to load FXCanvas. Need to check for GTK3
FXModuleClassloader#findLocalClass trying to load class 'org.eclipse.swt.SWT'
FXModuleClassloader#findLocalClass - OS is 'win32' no need to get upset all is fine
FXModuleClassloader#findLocalClass - We need to disable implicit exiting when running in embedded mode
FXModuleClassloader#findLocalClass trying to load class 'javafx.application.Platform'

At this point the hook debug output ends as the mentioned NoClassDefFoundError appears.

The debug of class loading with -verbose:class switch says clearly that the problematic class is being loaded:
...[Loaded org.eclipse.swt.widgets.Canvas from file:/C:/.../.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.swt.win32.win32.x86_64_3.103.0.v20140605-2012.jar]

...
[/code]

I've also tried to follow the suggestions to put the swt jar into the boot classpath but with no success.


Łukasz
Re: Testing FXCanvas with SWTBot [message #1396415 is a reply to message #1396311] Tue, 08 July 2014 09:09 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I've checked in a few modifications
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=439110) and bit more
detailed logging what classloaders are used so now I get:


> FXClassLoader#createJREBundledClassloader - Started
> FXClassLoader#createJREBundledClassloader - Assumed location (Java 8/Java 7): /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/ext/jfxrt.jar
> FXClassLoader#createJREBundledClassloader - SWT is available use different loading strategy
> FXClassLoader#createJREBundledClassloader - Searching for SWT-FX integration at /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/jfxswt.jar
> FXClassLoader#createJREBundledClassloader - Found SWT/FX
> FXClassLoader#createJREBundledClassloader - Delegate to system classloader
> FXClassLoader.SWTFXClassloader#init - Primary Loader sun.misc.Launcher$ExtClassLoader@3b81a1bc
> FXClassLoader.SWTFXClassloader#init - Lastresort Loader org.eclipse.osgi.internal.loader.EquinoxClassLoader@4a23350[org.eclipse.swt:3.103.0.v20140522-1609(id=389)]
> FXClassLoader#createJREBundledClassloader - Ended
> FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.Parent'
> FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.layout.BorderPane'
> FXModuleClassloader#findLocalClass trying to load class 'javafx.embed.swing.JFXPanel'
> FXModuleClassloader#findLocalClass trying to load class 'javafx.embed.swt.FXCanvas'
> FXModuleClassloader#findLocalClass - Someone is trying to load FXCanvas. Need to check for GTK3
> FXModuleClassloader#findLocalClass trying to load class 'org.eclipse.swt.SWT'
> FXClassLoader.SWTFXClassloader#findClass - Loading org.eclipse.swt.SWT with primary
> FXClassLoader.SWTFXClassloader#findClass - ClassNotFoundException thrown
> FXClassLoader.SWTFXClassloader#findClass - Loading org.eclipse.swt.SWT with last resort
> FXClassLoader.SWTFXClassloader#findClass - Result org.eclipse.swt.SWT class org.eclipse.swt.SWT
> FXModuleClassloader#findLocalClass - OS is 'cocoa' no need to get upset all is fine
> FXModuleClassloader#findLocalClass - We need to disable implicit exiting when running in embedded mode
> FXModuleClassloader#findLocalClass trying to load class 'javafx.application.Platform'
> FXClassLoader.SWTFXClassloader#findClass - Loading javafx.embed.swt.FXCanvas with primary
> FXClassLoader.SWTFXClassloader#findClass - ClassNotFoundException thrown
> FXClassLoader.SWTFXClassloader#findClass - Loading javafx.embed.swt.FXCanvas with last resort
> FXClassLoader.SWTFXClassloader#findClass - Even last resort was unable to load javafx.embed.swt.FXCanvas
> FXClassLoader.SWTFXClassloader#findClass - Loading org.eclipse.swt.widgets.Canvas with primary
> FXClassLoader.SWTFXClassloader#findClass - ClassNotFoundException thrown
> FXClassLoader.SWTFXClassloader#findClass - Loading org.eclipse.swt.widgets.Canvas with last resort
> FXClassLoader.SWTFXClassloader#findClass - Result org.eclipse.swt.widgets.Canvas class org.eclipse.swt.widgets.Canvas

Notice the information about:
a) the used classloaders
b) the information that we are delegating from the primary to the last
resort loader

A new build has been published so if you reload your target platform you
should get a more detailed output.

Tom
Re: Testing FXCanvas with SWTBot [message #1398088 is a reply to message #1396415] Thu, 10 July 2014 15:41 Go to previous messageGo to next message
Łukasz Drąg is currently offline Łukasz DrągFriend
Messages: 10
Registered: July 2009
Junior Member
Thank you for providing the classloader info.

The output I get now looks like this:

FXClassLoader#createJREBundledClassloader - Started
FXClassLoader#createJREBundledClassloader - Assumed location (Java 8/Java 7): C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\jfxrt.jar
FXClassLoader#createJREBundledClassloader - SWT is available use different loading strategy
FXClassLoader#createJREBundledClassloader - Searching for SWT-FX integration at C:\Program Files\Java\jdk1.8.0_05\jre\lib\jfxswt.jar
FXClassLoader#createJREBundledClassloader - Found SWT/FX
FXClassLoader#createJREBundledClassloader - Delegate to system classloader
FXClassLoader.SWTFXClassloader#init - Primary Loader sun.misc.Launcher$ExtClassLoader@1d9bd4da
FXClassLoader.SWTFXClassloader#init - Lastresort Loader org.eclipse.osgi.internal.loader.EquinoxClassLoader@107e5441[org.eclipse.swt:3.103.0.v20140605-2008(id=71)]
FXClassLoader#createJREBundledClassloader - Ended
FXModuleClassloader#findLocalClass trying to load class 'javafx.collections.ObservableList'
FXModuleClassloader#findLocalClass trying to load class 'javafx.collections.transformation.FilteredList'
FXModuleClassloader#findLocalClass trying to load class 'com.sun.javafx.collections.ObservableSequentialListWrapper'
FXModuleClassloader#findLocalClass trying to load class 'javafx.collections.ListChangeListener'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.control.Control'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.control.ListCell'
FXModuleClassloader#findLocalClass trying to load class 'javafx.collections.ListChangeListener$Change'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.input.InputEvent'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.canvas.Canvas'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.input.DragEvent'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.input.MouseEvent'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.control.ContextMenu'
FXModuleClassloader#findLocalClass trying to load class 'javafx.event.ActionEvent'
FXModuleClassloader#findLocalClass trying to load class 'javafx.beans.Observable'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.Parent'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.layout.BorderPane'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.Node'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.layout.HBox'
FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.control.ToolBar'
FXModuleClassloader#findLocalClass trying to load class 'javafx.embed.swt.FXCanvas'
FXModuleClassloader#findLocalClass - Someone is trying to load FXCanvas. Need to check for GTK3
FXModuleClassloader#findLocalClass trying to load class 'org.eclipse.swt.SWT'
FXClassLoader.SWTFXClassloader#findClass - Loading org.eclipse.swt.SWT with primary
FXClassLoader.SWTFXClassloader#findClass - ClassNotFoundException thrown
FXClassLoader.SWTFXClassloader#findClass - Loading org.eclipse.swt.SWT with last resort
FXClassLoader.SWTFXClassloader#findClass - Result org.eclipse.swt.SWT class org.eclipse.swt.SWT
FXModuleClassloader#findLocalClass - OS is 'win32' no need to get upset all is fine
FXModuleClassloader#findLocalClass - We need to disable implicit exiting when running in embedded mode
FXModuleClassloader#findLocalClass trying to load class 'javafx.application.Platform'


Would you have any hint for me?
Re: Testing FXCanvas with SWTBot [message #1398224 is a reply to message #1398088] Thu, 10 July 2014 20:22 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Not really that looks just fine!

Tom

On 10.07.14 17:41, Łukasz Drąg wrote:
> Thank you for providing the classloader info.
>
> The output I get now looks like this:
>
> FXClassLoader#createJREBundledClassloader - Started
> FXClassLoader#createJREBundledClassloader - Assumed location (Java
> 8/Java 7): C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\jfxrt.jar
> FXClassLoader#createJREBundledClassloader - SWT is available use
> different loading strategy
> FXClassLoader#createJREBundledClassloader - Searching for SWT-FX
> integration at C:\Program Files\Java\jdk1.8.0_05\jre\lib\jfxswt.jar
> FXClassLoader#createJREBundledClassloader - Found SWT/FX
> FXClassLoader#createJREBundledClassloader - Delegate to system classloader
> FXClassLoader.SWTFXClassloader#init - Primary Loader
> sun.misc.Launcher$ExtClassLoader@1d9bd4da
> FXClassLoader.SWTFXClassloader#init - Lastresort Loader
> org.eclipse.osgi.internal.loader.EquinoxClassLoader@107e5441[org.eclipse.swt:3.103.0.v20140605-2008(id=71)]
>
> FXClassLoader#createJREBundledClassloader - Ended
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.collections.ObservableList'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.collections.transformation.FilteredList'
> FXModuleClassloader#findLocalClass trying to load class
> 'com.sun.javafx.collections.ObservableSequentialListWrapper'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.collections.ListChangeListener'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.scene.control.Control'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.scene.control.ListCell'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.collections.ListChangeListener$Change'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.scene.input.InputEvent'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.scene.canvas.Canvas'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.scene.input.DragEvent'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.scene.input.MouseEvent'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.scene.control.ContextMenu'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.event.ActionEvent'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.beans.Observable'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.scene.Parent'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.scene.layout.BorderPane'
> FXModuleClassloader#findLocalClass trying to load class 'javafx.scene.Node'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.scene.layout.HBox'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.scene.control.ToolBar'
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.embed.swt.FXCanvas'
> FXModuleClassloader#findLocalClass - Someone is trying to load FXCanvas.
> Need to check for GTK3
> FXModuleClassloader#findLocalClass trying to load class
> 'org.eclipse.swt.SWT'
> FXClassLoader.SWTFXClassloader#findClass - Loading org.eclipse.swt.SWT
> with primary
> FXClassLoader.SWTFXClassloader#findClass - ClassNotFoundException thrown
> FXClassLoader.SWTFXClassloader#findClass - Loading org.eclipse.swt.SWT
> with last resort
> FXClassLoader.SWTFXClassloader#findClass - Result org.eclipse.swt.SWT
> class org.eclipse.swt.SWT
> FXModuleClassloader#findLocalClass - OS is 'win32' no need to get upset
> all is fine
> FXModuleClassloader#findLocalClass - We need to disable implicit exiting
> when running in embedded mode
> FXModuleClassloader#findLocalClass trying to load class
> 'javafx.application.Platform'
>
> Would you have any hint for me?
Re: Testing FXCanvas with SWTBot [message #1772654 is a reply to message #1398224] Wed, 13 September 2017 15:13 Go to previous messageGo to next message
Tarik CHEBAATHA is currently offline Tarik CHEBAATHAFriend
Messages: 4
Registered: August 2017
Junior Member
Hello, I have the same problem
I use FXCanvas on my RCP E4application, when I start swtbot test I get this error :

java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1015)
at java.lang.ClassLoader.loadClass(ClassLoader.java:413)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.fx.osgi.fxloader.FXClassLoader.postFindClass(FXClassLoader.java:62)
at org.eclipse.osgi.internal.loader.BundleLoader.searchHooks(BundleLoader.java:477)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.abbd.exaus.eclipse.application.E4Application.start(E4Application.java:144)
at com.abbd.exaus.eclipse.application.ExausE4Application.start(ExausE4Application.java:90)
at org.eclipse.swtbot.eclipse.core.UITestApplication.start(UITestApplication.java:58)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

the log of fx hook

FXClassLoader#createJREBundledClassloader - Started
FXClassLoader#createJREBundledClassloader - Assumed location (Java 8/Java 7): C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\jfxrt.jar
FXClassLoader#createJREBundledClassloader - SWT is available use different loading strategy
FXClassLoader#createJREBundledClassloader - Searching for SWT-FX integration at C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfxswt.jar
FXClassLoader#createJREBundledClassloader - Found SWT/FX
FXClassLoader#createJREBundledClassloader - Delegate to system classloader
FXClassLoader.SWTFXClassloader#init - Primary Loader sun.misc.Launcher$ExtClassLoader@74fb4435
FXClassLoader.SWTFXClassloader#init - Lastresort Loader org.eclipse.osgi.internal.loader.EquinoxClassLoader@631da7af[org.eclipse.swt:3.105.2.v20161122-0613(id=167)]
FXClassLoader#createJREBundledClassloader - Ended

I have already added jfxrt.jar and jfxswt.jar to my java build path and the osgi.framework.extensions=org.eclipse.fx.osgi to my vm arguments

Do you have any hint for me ?
Re: Testing FXCanvas with SWTBot [message #1860375 is a reply to message #1772654] Wed, 02 August 2023 04:09 Go to previous message
Harish M is currently offline Harish MFriend
Messages: 3
Registered: August 2023
Junior Member
Any update on this issue? I am also facing the same issue with maven built package.
Previous Topic:JavaFX code from FXML
Next Topic:p2/mvn Updatesite Location for 'org.eclipse.fx.formats.svg'
Goto Forum:
  


Current Time: Tue Dec 10 11:50:00 GMT 2024

Powered by FUDForum. Page generated in 0.08256 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top