Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Tutorial 3 in Oxygen
Tutorial 3 in Oxygen [message #1773057] Wed, 20 September 2017 22:29 Go to next message
Ken Keefe is currently offline Ken KeefeFriend
Messages: 23
Registered: April 2012
Junior Member
I'm working on building a tutorial to explain how to get GEF5 MVC working in a pure e4 RCP application. That project is hung up on a java.lang.ClassNotFoundException: javafx.embed.swt.FXCanvas cannot be found exception that I am guessing stems from a problem with getting JavaFX working in an e4 RCP app.

I found the e(fx)clipse Tutorial 3 and was excited to have a good example to work from. Unfortunately, I can't get that tutorial to work in Eclipse Oxygen. The instructions for creating a target don't work. I was able to create the e4 Media Application from the JavaFX/Samples project template folder. It was complaining about a bunch of org.eclipse.fx.* required plugins being missing. I assume that is because I couldn't complete the target setup steps.

I've tried several things to work around the problem and everything is failing. Can someone help or could someone update the Tutorial 3 instructions so they work on Oxygen?

Thanks!
Re: Tutorial 3 in Oxygen [message #1773059 is a reply to message #1773057] Wed, 20 September 2017 23:02 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6365
Registered: July 2009
Senior Member
Tutorial 3 is to create a pure "e4 on JavaFX"!

If you want to integrate into "e4 SWT RCP" you:
a) need to set up a pure e4 SWT-Target
b) add from the e(fx)clipse updat site the "RCP e4 Target Platform Feature"
c) you need to launch with launch the RCP application with "-Dosgi.framework.extensions=org.eclipse.fx.osgi to" (similar to Tutorial 2)
Re: Tutorial 3 in Oxygen [message #1775194 is a reply to message #1773059] Thu, 26 October 2017 07:45 Go to previous message
Sura Ran is currently offline Sura RanFriend
Messages: 1
Registered: October 2017
Junior Member
Hi Tom,

I have a similar issue with Oxygen. The sample e4 Media throws
"Bundle 'org.eclipse.fx.*' cannot be resolved" error on few org.eclipse.fx.* plugins.
Then I created the e4 Media sample using efxclipse.bestsolution.at Eclipse IDE today and now facing the same issue.

I'm not familiar with Eclipse plugin development and therefore get going with a pre-configured sample is my best choice. Appreciate any guidance.

Thanks!

Bundles are
org.eclipse.fx.ui.workbench.fx
org.eclipse.fx.ui.theme
org.eclipse.fx.ui.di
org.eclipse.fx.core.databinding
org.eclipse.fx.ui.databinding
org.eclipse.fx.ui.services

Error
!SESSION 2017-10-26 13:08:59.301 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product Sample.product
Command-line arguments:  -product Sample.product -data D:\Dev\workspace/../runtime-Sample.product -dev file:D:/Dev/workspace/.metadata/.plugins/org.eclipse.pde.core/Sample.product.product/dev.properties -consoleLog

!ENTRY org.eclipse.equinox.app 0 0 2017-10-26 13:09:04.918
!MESSAGE Product Sample.product could not be found.

!ENTRY Sample 4 0 2017-10-26 13:09:05.110
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: Sample [45]
  Unresolved requirement: Require-Bundle: org.eclipse.fx.ui.workbench.fx

	at org.eclipse.osgi.container.Module.start(Module.java:444)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1620)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1599)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1571)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1514)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY Sample 2 0 2017-10-26 13:09:05.593
!MESSAGE Could not resolve module: Sample [45]
  Unresolved requirement: Require-Bundle: org.eclipse.fx.ui.workbench.fx


!ENTRY org.eclipse.osgi 4 0 2017-10-26 13:09:05.623
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
	at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
	at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
	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:497)
	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)
Previous Topic:Node toFront method
Next Topic:Create DndTabPane with my own DragFinishedConsumer
Goto Forum:
  


Current Time: Fri Dec 15 14:18:49 GMT 2017

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

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