Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Installed but how do I get it into my project(I installed efx but still not finding the javafx packaged)
Installed but how do I get it into my project [message #1301977] Fri, 18 April 2014 12:34 Go to next message
Brett Yer is currently offline Brett YerFriend
Messages: 1
Registered: April 2014
Junior Member
Okay so I installed xText. Then I installed javafx. Everything seemed to install clearly.

In my project when I try and import javafx it doesn't find. I right clicked on project and went down and added the xText Nature but there was not nature for javaFX nor anything else related to javafx when I right clicked on the project. How do I get it into my project? I am using jdk1.7.0_45 if that makes any difference.

Thanks,

Brett
Re: Installed but how do I get it into my project [message #1303898 is a reply to message #1301977] Sat, 19 April 2014 14:48 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Well on JDK7 you need to add a Classpath Library to your project.

a) Context Menu on Project > Properties > Java Build Path
b) Select Library tab
c) Hit Add Library...
d) Select JavaFX SDK

The other option is that you are using our wizard with File > New >
Project ... > JavaFX > JavaFX Project

If you switch to JDK8 (which i highly recommend if you start a JavaFX
project today) all this is not necessary because JavaFX is found on the
classpath by default.

Tom

On 18.04.14 21:43, Brett Yer wrote:
> Okay so I installed xText. Then I installed javafx. Everything seemed
> to install clearly.
> In my project when I try and import javafx it doesn't find. I right
> clicked on project and went down and added the xText Nature but there
> was not nature for javaFX nor anything else related to javafx when I
> right clicked on the project. How do I get it into my project? I am
> using jdk1.7.0_45 if that makes any difference.
>
> Thanks,
>
> Brett
>
Re: Installed but how do I get it into my project [message #1805397 is a reply to message #1303898] Sat, 13 April 2019 13:30 Go to previous messageGo to next message
Sahib Singh is currently offline Sahib SinghFriend
Messages: 1
Registered: April 2019
Junior Member
Hi,
I have following versions of software installed on my Windows 10 desktop:
* Eclipse 2019-03
* JavaFx SDK 12
* JDK 12
* JavaFX (e(fx)clipse 3.5.0) from eclipse marketplace
---------------------------------------------------
Error
Whenever I create a new JavaFX Project it shows me problem in project:
The import javafx cannot be resolved Main.java
---------------------------------------------------
Observation
1) My JavaFX environment variable is set and I'm able to run the JavaFX Application through command line.
2) I've set the Classpath Variable in eclipse with JavaFX bin folder at Eclipse->Windows->Preference->Java->Build Path->Classpath Variables.
3) I've added all the Jars present in lib folder of JavaFX SDK 12 at Eclipse->Windows->Preference->Java->Build Path->User Liberaries by creating new liberary with name of JavaFx.
4) Reinstalled JavaFX (e(fx)clipse 3.5.0) from eclipse marketplace.
5) Uploaded screenshot of JavaFX project->Properties->Java Build Path->Liberaries index.php/fa/35319/0/

Please help me out with this!
Re: Installed but how do I get it into my project [message #1805559 is a reply to message #1805397] Wed, 17 April 2019 12:21 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You need to add the jars to the module path
Previous Topic:Is there an update site from which efxclipse can be installed?
Next Topic:Can't add runtime site to target platform
Goto Forum:
  


Current Time: Mon Dec 02 18:11:07 GMT 2024

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

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

Back to the top