Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse on Mac still does not support swing-javafx properly??(javafx not found when working with eclipse on the Mac OS X)
Eclipse on Mac still does not support swing-javafx properly?? [message #1272728] Tue, 18 March 2014 16:05 Go to next message
Tony Anecito is currently offline Tony Anecito
Messages: 20
Registered: July 2009
Junior Member
Hi,

I noticed when using Eclipse on the Mac OS X Mavericks using JDK 1.7.0_45 I had to add the jfxrt.jar to the build properties in order to compile my swing-javafx hybrid. I also ran into a similar problem with a java app bundle for the MAC OS X where even though the jre was added to the bundle with the javafx jars I got an exception related to javafx classes not being found but was in the jars with the jre in the bundle.

So for eclipse is this fixed when combined with the new JDK 8? Adding a jar from inside the jdk seems risky at best when the jre should have found it without adding it to the project in Eclipse.

Regards,
-Tony
Re: Eclipse on Mac still does not support swing-javafx properly?? [message #1272754 is a reply to message #1272728] Tue, 18 March 2014 17:25 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5434
Registered: July 2009
Senior Member
This is not a problem of Eclipse JDT! In Java7 JavaFX is shipped with
the JRE but it is not on ANY classpath hence JDT does not know about it.

The situation in JDK8 is a bit better because there it is on the
extension classpath which by default is treated by Eclipse as none
standardized location and you'll get warnings for all your classes.

I might suggest to use e(fx)clipse [1] when developing JavaFX
applications with Eclipse.

Tom

[1]http://efxclipse.org/

On 18.03.14 09:05, Tony Anecito wrote:
> Hi,
>
> I noticed when using Eclipse on the Mac OS X Mavericks using JDK
> 1.7.0_45 I had to add the jfxrt.jar to the build properties in order to
> compile my swing-javafx hybrid. I also ran into a similar problem with a
> java app bundle for the MAC OS X where even though the jre was added to
> the bundle with the javafx jars I got an exception related to javafx
> classes not being found but was in the jars with the jre in the bundle.
>
> So for eclipse is this fixed when combined with the new JDK 8? Adding a
> jar from inside the jdk seems risky at best when the jre should have
> found it without adding it to the project in Eclipse.
>
> Regards,
> -Tony
Previous Topic:space-white in the path
Next Topic:.properties file in project
Goto Forum:
  


Current Time: Sat Nov 01 13:29:56 GMT 2014

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

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