Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse problem with JavaFX(The import javafx cannot be resolved)
Eclipse problem with JavaFX [message #1740142] Tue, 09 August 2016 16:10 Go to next message
Waryah Jee is currently offline Waryah JeeFriend
Messages: 2
Registered: August 2016
Junior Member
- First of all, sorry for awful looking layout due to pictures, I tried to upload pics here, didn't worked
- then I uploaded to tinypic and wanted to show thumbs here with links, but I am not yet allowed to post links to external sites, so it is unfortunately as good as it gets..
For Pics on Tinypic:
i63.tinypic.com/fcjxfp.jpg
i65.tinypic.com/x4m61k.png


I am new with Linux and Java, on my Windows 10 all is working fine. I just installed Ubunutu Mate 16.04 yesterday, all updated. Today I installed latest Eclipse 4.6.0 and installed e(fx)clipse 2.3.0

But as Soon as I create a New JavaFX project, (no editing yet) it gives Error in picture above

just to be sure that I have e(fx)clipse installed:

https://www.eclipse.org/forums/index.php/fa/26714/0/


Please help me, what's wrong here?
how to correct it?
Re: Eclipse problem with JavaFX [message #1740222 is a reply to message #1740142] Wed, 10 August 2016 14:23 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Most likely the Java you have installed (OpenJDK) does not contain
JavaFX. You need to install OracleJDK.

Tom

On 10.08.16 16:14, Waryah Jee wrote:
> - First of all, sorry for awful looking layout due to pictures, I tried to upload pics here, didn't worked
> - then I uploaded to tinypic and wanted to show thumbs here with links, but I am not yet allowed to post links to external sites, so it is unfortunately as good as it gets..
> For Pics on Tinypic:
> i63.tinypic.com/fcjxfp.jpg
> i65.tinypic.com/x4m61k.png
>
>
> I am new with Linux and Java, on my Windows 10 all is working fine. I just installed Ubunutu Mate 16.04 yesterday, all updated. Today I installed latest Eclipse 4.6.0 and installed e(fx)clipse 2.3.0
>
> But as Soon as I create a New JavaFX project, (no editing yet) it gives Error in picture above
>
> just to be sure that I have e(fx)clipse installed:
>
>
>
>
> Please help me, what's wrong here?
> how to correct it?
>
Re: Eclipse problem with JavaFX [message #1740242 is a reply to message #1740222] Wed, 10 August 2016 16:14 Go to previous messageGo to next message
Waryah Jee is currently offline Waryah JeeFriend
Messages: 2
Registered: August 2016
Junior Member
Thanks a lot for the reply Tom, I did had openjdk installed as default in Ubuntu, now I have Installed Oracle JDK8 latest
Now,
java -version

Output
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)


I can say that it was useful to install oracle jdk because my compiled .jar projects from Windows were not running in Linux, now they are.

But in Eclipse, nothing is changed, I started Eclipse, same errors
I deleted the Project, since it was still a blank project so to say, and created a new Javafx project...and same errors.

Maybe I have to change something in Eclipse now to work with new Jdk from oracle, but I don't know how or where to do that.
Re: Eclipse problem with JavaFX [message #1740388 is a reply to message #1740242] Fri, 12 August 2016 09:59 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You most likely have to configure the new JDK in your eclipse install

Tom

On 10.08.16 18:14, Waryah Jee wrote:
> Thanks a lot for the reply Tom, I did had openjdk installed as default
> in Ubuntu, now I have Installed Oracle JDK8 latest
> Now,
> java -version
> Output
> java version "1.8.0_101"
> Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
>
> I can say that it was useful to install oracle jdk because my compiled
> .jar projects from Windows were not running in Linux, now they are.
>
> But in Eclipse, nothing is changed, I started Eclipse, same errors
> I deleted the Project, since it was still a blank project so to say, and
> created a new Javafx project...and same errors.
>
> Maybe I have to change something in Eclipse now to work with new Jdk
> from oracle, but I don't know how or where to do that.
Previous Topic:Neon-JDT Index poor performance
Next Topic:Error Updating Eclipse Mars From Java 1.7 to 1.8
Goto Forum:
  


Current Time: Sun Oct 13 17:00:37 GMT 2024

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

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

Back to the top