Javafx part on e4 RCP [message #1748674] |
Sat, 26 November 2016 14:43 |
Francois Trap Messages: 6 Registered: November 2016 |
Junior Member |
|
|
Hi,
I want to develop an Eclipse 4 RCP with only one editor built on javafx.
I tried the http://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial4 to check that I succeed to run javafx on eclipse 4. It works.
I tried to create a pure E4 application without javafx. It works.
I added in the part code the following :
private Scene createScene() {
Group group = new Group();
Scene scene = new Scene(group);
Button button = new Button("JFX Button");
group.getChildren().add(button);
return scene;
}
@PostConstruct
public void createComposite(Composite parent) {
parent.setLayout(new FillLayout());
FXCanvas canvas = new FXCanvas(parent, SWT.NONE);
Scene scene = createScene();
canvas.setScene(scene);
}
and tried to run the product :
!ENTRY org.eclipse.e4.ui.workbench 4 0 2016-11-26 15:21:13.096
!MESSAGE Unable to create class 'test.parts.SamplePart' from bundle '120'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javafx/scene/Parent
I tried to include jfxrt in the build path with no success.
I tried multiple Target Platform with no success.
Where am i wrong?
In case it can be useful, here is my MANIFEST file :
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Test
Bundle-SymbolicName: Test;singleton:=true
Bundle-Version: 1.0.0.qualifier
Require-Bundle: javax.inject;bundle-version="0.0.0",
org.eclipse.core.runtime;bundle-version="0.0.0",
org.eclipse.swt;bundle-version="0.0.0",
org.eclipse.e4.ui.model.workbench;bundle-version="0.0.0",
org.eclipse.jface;bundle-version="0.0.0",
org.eclipse.e4.ui.services;bundle-version="0.0.0",
org.eclipse.e4.ui.workbench;bundle-version="0.0.0",
org.eclipse.e4.core.di;bundle-version="0.0.0",
org.eclipse.e4.ui.di;bundle-version="0.0.0",
org.eclipse.e4.core.contexts;bundle-version="0.0.0",
org.eclipse.fx.javafx;bundle-version="2.2.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Thx
Franc'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06918 seconds