Skip to main content



      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 12:05 Go to next message
Eclipse UserFriend
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 13:25 Go to previous message
Eclipse UserFriend
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: Fri Apr 18 16:40:00 EDT 2025

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

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

Back to the top