JavaFX Eclipse 3.x Project creation problem [message #1805735] |
Mon, 22 April 2019 19:29  |
Eclipse User |
|
|
|
Hello,
I'm trying to make my own View project with JavaFX. I tried to follow the "Tutorial 2", but it doesn't work in my Eclipse Photon (4.8.0) and newer versions.
I'm using oracle jdk 1.8 and debian linux x64. I've installed e(fx)clipse from update site 3.3.0 version and it works fine. I can build and run my application (not views).
Now i'm following steps in wiki.eclipse.org/Efxclipse/Tutorials/Tutorial2 . But after i created JavaFX Eclipse 3.x Project i got 28 Errors in the MANIFEST.MF:
No available bundle exports package 'javafx.animation'
No available bundle exports package 'javafx.application'
...
etc.
I get it for all javafx.* Import-Packages.
Here is my MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: My_Fx_View
Bundle-SymbolicName: My_Fx_View;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: my_fx_view.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.fx.ui.workbench3;bundle-version="3.3.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Automatic-Module-Name: My_Fx_View
Import-Package: javafx.animation;version="2.0.0",
javafx.application;version="2.0.0",
javafx.beans;version="2.0.0",
javafx.beans.binding;version="2.0.0",
javafx.beans.property;version="2.0.0",
javafx.beans.value;version="2.0.0",
javafx.collections;version="2.0.0",
javafx.concurrent;version="2.0.0",
javafx.embed.swing;version="2.0.0",
javafx.event;version="2.0.0",
javafx.fxml;version="2.0.0",
javafx.geometry;version="2.0.0",
javafx.scene;version="2.0.0",
javafx.scene.chart;version="2.0.0",
javafx.scene.control;version="2.0.0",
javafx.scene.control.cell;version="2.0.0",
javafx.scene.effect;version="2.0.0",
javafx.scene.image;version="2.0.0",
javafx.scene.input;version="2.0.0",
javafx.scene.layout;version="2.0.0",
javafx.scene.media;version="2.0.0",
javafx.scene.paint;version="2.0.0",
javafx.scene.shape;version="2.0.0",
javafx.scene.text;version="2.0.0",
javafx.scene.transform;version="2.0.0",
javafx.scene.web;version="2.0.0",
javafx.stage;version="2.0.0",
javafx.util;version="2.0.0"
Bundle-ActivationPolicy: lazy
I can't understand what i've missed.
BTW i downloaded 'all in one' Eclipse Neon version from efxclipse.bestsolution.at/install.html#all-in-one and everything is OK. I can create and run my View.
So, could you tell me what i'm doing wrong with Photon and newer versions or show me another way how i can create Views with JavaFX.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08796 seconds