Question

I'm running Mac OS X 10.6.x (Snow Leopard) right now, so I'm pretty sure that there could be some issues with supported systems, but I'm trying to install JavaFX 2.0 (or 2.1.x) in Eclipse Juno for Java EE (version 3.8).

I have already installed the e(fx)clipse plugin, but I'm not sure if I'm downloading the right JavaFX .zip file from the Oracle website. I downloaded the JavaFX 2.2 beta release because it seemed to be the only release available for OS X, but I could be wrong. Once I download this archive, I'm not exactly what to do with it/where to place it so that Eclipse recognizes it as the JavaFX 2.2 SDK. I know that I have to go into preferences and set the location of the SDK file, but there doesn't seem to be any selectable .jar file or folder to set it to. Am I doing something wrong here? Any help is appreciated.


Edit: I worked around the issue by setting the SDK location to the location of the downloaded JavaFX 2.2 SDK in the JavaFX section in the preferences tree.

Was it helpful?

Solution 2

I worked around the issue by setting the SDK location to the location of the downloaded JavaFX 2.2 SDK in the JavaFX section of the Eclipse preferences tree.

OTHER TIPS

The current GA release of the Oracle Java SDK for Mac should include JavaFX 2.1.

You don't need a separate download of the JavaFX 2.2 developer release unless you rely on functionality or bug fixes from the 2.2 release.

The e(fx)clipse release 0.14 should be able to detect the JavaFX installed with the Oracle Java distribution for Mac.

Getting started tutorials for e(fx)clipse.

Update

Happy to see that in your edit that you were able to use JavaFX 2.2 with OSX 10.6. Richard Bair, Java Client Lead, notes:

FWIW, there are in fact some APIs we use from Lion that aren't on Snow Leopard. Also, Apple only supports the current release of the OS - 1 (so now it would be Lion and Mountain Lion), and for deployment we needed special hooks. The thought was that it didn't make sense to support versions of the Mac OS that Apple themselves didn't support any longer.

so don't be surprised if everything doesn't quite work as expected. 10.6 is not a certified configuration for JavaFX. As of June 2012, OpenJDK without a separate JavaFX download is likely not yet an alternative to OracleJDK for JavaFX development as all of JavaFX is not yet open sourced.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top