Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » JavaFX Eclipse 3.x Project creation problem(No available bundle exports package javafx.*)
JavaFX Eclipse 3.x Project creation problem [message #1805735] Mon, 22 April 2019 23:29 Go to next message
Paul S is currently offline Paul SFriend
Messages: 2
Registered: April 2019
Junior Member
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.
Re: JavaFX Eclipse 3.x Project creation problem [message #1805782 is a reply to message #1805735] Tue, 23 April 2019 21:18 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6512
Registered: July 2009
Senior Member
Looks like this wizard is out-of-date. The import-package is NOT needed anymore. Just remove them from the MANIFEST.MF
Re: JavaFX Eclipse 3.x Project creation problem [message #1805783 is a reply to message #1805782] Tue, 23 April 2019 21:51 Go to previous message
Paul S is currently offline Paul SFriend
Messages: 2
Registered: April 2019
Junior Member
Thanks a lot! It's fixed my issue.
Previous Topic:Installed but how do I get it into my project
Next Topic:Can't add runtime site to target platform
Goto Forum:
  


Current Time: Fri Nov 22 18:57:22 GMT 2019

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

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

Back to the top