Skip to main content

javafxc problem using on Mac

4 replies [Last post]
fazekaim
Offline
Joined: 2003-10-07
Points: 0

Hello,
I just installed the javafx sdk pre1 and i also have the Java update for Mac 2 too.
The java -version prints: 1.6.0_07

The javafxc says:
"Wrong version. The Openjfx-compiler requires Java 6."

How can I solve this?

Any help is appreciated.
Thanks a lot in advance!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sleep
Offline
Joined: 2008-05-26
Points: 0

The Java 6 update on Mac OS does install Java 6, but does not set it as the used version. Go to Applications -> Utilities -> Java -> Java Settings and switch it there.

I am using a German Mac OS, so the words migth differ a bit.

alexsch
Offline
Joined: 2007-07-12
Points: 0

Try to set [b]netbeans_jdkhome[/b] property to JDK 1.6 in netbeans/etc/netbeans.conf file
and restart the IDE.

jeff_martin
Offline
Joined: 2004-02-03
Points: 0

I'm so sorry for the stupid answer above - you clearly have the latest Java 6 on your box.

I don't know how to change the JVM NetBeans uses to Build/Run projects, I couldn't find anything in Preferences or Project Properties. I think maybe it asked me which one I wanted to use when I first installed it, though perhaps that was on Windows.

jeff_martin
Offline
Joined: 2004-02-03
Points: 0

You probably need to make sure you have Java 6 installed (and that Netbeans is using it).

To get Java 6, I think you need to have one of the newer Intel boxes, a "Core 2 Duo" (these were the intel chips apple started using a year after their original switch to intel). This has something to do with Apple only supporting the 64 bit version of Java. If you have a Core 2 Duo mac, you should get the Java 6 update automatically via software update.