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 |
Waryah Jee 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:
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 |
Thomas Schindl 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 |
Waryah Jee 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,
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 |
Thomas Schindl 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.
|
|
|
Goto Forum:
Current Time: Sat Dec 21 15:11:06 GMT 2024
Powered by FUDForum. Page generated in 0.03135 seconds
|