|
|
|
|
|
|
|
Re: FXSceneHolder doesn't open Main scene. Not on FX application thread; currentThread = main [message #1576406 is a reply to message #1575255] |
Wed, 21 January 2015 09:43   |
Eclipse User |
|
|
|
[reglament.editor.eclipse.core.views.ReglamentViewPart]
>>
import org.eclipse.fx.ui.workbench3.FXViewPart;
...
public class ReglamentViewPart extends FXViewPart {
...
public void openReglament(String reglamentName, String projectPath){
FXSceneHolder.getInstance().getReglamentEditor().openReglament(reglamentName, projectPath);
}
...
<<
If you mean "javafx.embed.swt", FXViewPart (org.eclipse.fx.ui.workbench3.FXViewPart) already imported it.
|
|
|
Re: FXSceneHolder doesn't open Main scene. Not on FX application thread; currentThread = main [message #1576445 is a reply to message #1576406] |
Wed, 21 January 2015 10:11   |
Eclipse User |
|
|
|
Hi,
Could you try starting with -Defxclipse.osgi.hook.debug=true. This
should give you some debug information on the OSGi-Hook.
One thing that could be on Linux is that you are launching with SWT-Gtk3
which is not supported by JavaFX and so we refuse to load the
swt-embedding code but this should have led to another exception which I
can't find in your stacktrace
Anyways turn on this option and provide us the output which start with
FXModuleClassloader...... or FXClassLoader......
The rest of the output is not important.
Tom
On 21.01.15 10:43, Alex Franz wrote:
> [reglament.editor.eclipse.core.views.ReglamentViewPart]
>
>>>
> import org.eclipse.fx.ui.workbench3.FXViewPart;
> ..
> public class ReglamentViewPart extends FXViewPart {
> ..
> public void openReglament(String reglamentName, String projectPath){
> FXSceneHolder.getInstance().getReglamentEditor().openReglament(reglamentName,
> projectPath);
> }
> ..
> <<
> If you mean "javafx.embed.swt", FXViewPart
> (org.eclipse.fx.ui.workbench3.FXViewPart) already imported it.
|
|
|
|
Re: FXSceneHolder doesn't open Main scene. Not on FX application thread; currentThread = main [message #1576550 is a reply to message #1576542] |
Wed, 21 January 2015 11:29   |
Eclipse User |
|
|
|
Ok yeah my guess was right - see
> FXClassLoader#createJREBundledClassloader - Started
> FXClassLoader#createJREBundledClassloader - Assumed location (Java 8/Java 7): /opt/jdk1.8.0_25/jre/lib/ext/jfxrt.jar
> FXClassLoader#createJREBundledClassloader - SWT is available use different loading strategy
> FXClassLoader#createJREBundledClassloader - Searching for SWT-FX integration at /opt/jdk1.8.0_25/jre/lib/jfxswt.jar
> FXClassLoader#createJREBundledClassloader - Found SWT/FX
> FXClassLoader#createJREBundledClassloader - Delegate to system classloader
> FXClassLoader.SWTFXClassloader#init - Primary Loader sun.misc.Launcher$ExtClassLoader@3ac8cf9b
> FXClassLoader.SWTFXClassloader#init - Lastresort Loader org.eclipse.osgi.internal.loader.EquinoxClassLoader@761956ac[org.eclipse.swt:3.103.1.v20140903-1938(id=1939)]
> FXClassLoader#createJREBundledClassloader - Ended
> 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 - We are on GTK need to take a closer look
> FXModuleClassloader#findLocalClass trying to load class 'org.eclipse.swt.internal.gtk.OS'
> FXClassLoader.SWTFXClassloader#findClass - Loading org.eclipse.swt.internal.gtk.OS with primary
> FXClassLoader.SWTFXClassloader#findClass - ClassNotFoundException thrown
> FXClassLoader.SWTFXClassloader#findClass - Loading org.eclipse.swt.internal.gtk.OS with last resort
> FXClassLoader.SWTFXClassloader#findClass - Result org.eclipse.swt.internal.gtk.OS class org.eclipse.swt.internal.gtk.OS
> FXModuleClassloader#findLocalClass - We are on GTK3 - too bad need to disable JavaFX for now else we'll crash the JVM
So you need to force SWT to use Gtk2! e.g. by setting SWT_GTK3=0 in the
launcher environment, not sure the --launcher.GTK_version works when
starting a inner instance.
Tom
On 21.01.15 12:22, Alex Franz wrote:
> Hi,
>
> Here is stack trace with enabled debug option.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04819 seconds