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?

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: 6376
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 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.


Bundles are

!SESSION 2017-10-26 13:08:59.301 -----------------------------------------------
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/ -consoleLog

!ENTRY 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
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(
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(
	at org.eclipse.osgi.framework.eventmgr.EventManager$

!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
java.lang.RuntimeException: No application id has been found.
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.eclipse.equinox.launcher.Main.invokeFramework(
	at org.eclipse.equinox.launcher.Main.basicRun(
	at org.eclipse.equinox.launcher.Main.main(
Previous Topic:Node toFront method
Next Topic:Create DndTabPane with my own DragFinishedConsumer
Goto Forum:

Current Time: Tue Mar 20 16:09:19 GMT 2018

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

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