This content has been marked as final. Show 10 replies
Ok, I just ignore the fact, that I need JRE 1.6 in addition.
IntelliJ runs now and I specified JDK 1.7 for my project.
The problem is, that all javafx imports aren't found.
I only have the JDK in the classpath. I can't find a jfxrt.jar anymore (as there were in the beta previews).
However, the JDK includes some JavaFX jars, e.g. javafx-mx.jar.
What am I missing?
I am in the same boat as you are! Just installed JDK 7u4 on my MacBook Pro with Eclipse 3.7.2. I used e(fx)clipse plugin for all my JavaFX development which need to be configured with JavaFX SDK home path. I used /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home. However, e(fx)clipse won't take this path. I opened a terminal and verified that /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home do exist and JavaFX library jfrt.jar is under jre/lib directory. However, if you open the same path in Finder, it doesn't exist. Actually 1.7.0.jdk is a packaged file (such as a tar or zip file) not a folder structure. For now, I found that only Netbeans 7.1.2 are working properly with JavaFX.
IntelliJ 11 uses Apple's bundled Java application support. Bundled OS X Java applications built with Apple's tools require Apple's JDK 6 and cannot use Oracle's JDK. So, to run IntelliJ itself you need to install an Apple JDK first.
You now have two JDKs on your system: the Java 7 JDK from Oracle in /Library/Java/JavaVirtualMachines, and Java 6u31 from Apple in /System/Library/Java/JavaVirtualMachines. You can certainly use JDK 7 to run the code you are developing in IDEA, but not IDEA itself right now. IDEA will need to update their product to stop using Apple's deprecated technologies.
This is all correct behavior, but I do think the wording of the alert you get when you need to install an Apple JDK is confusing. We'll let Apple know.
-- Scott K.
Ok, I got it working now in IntelliJ 10.5.
I added as JDK path:
And then I needed to manually add all the jars I found in
One question though:
If I run my apps, in the system menu bar of Mac OS X is always one entry named "java". I got it during beta already, but thought it would go away with the GA version. Is that normal? Can I hide that?
>I believe the docs explicitly say that Java 7u4 for OS X does not yet support Java FX.
I just bought Mac OS X Lion for the single reason to use Java FX 2.1.
No Java preinstalled.
Then I downloaded and installed jdk-7u4-macosx-x64.dmg.
The I had the folder: /Library/Java which included JDK 1.7.
I tried to start IntelliJ 11. But it complains about that no Java Runtime is installed.
Then I started the 1.7.0.jdk file and it complained, too, that I'd need a JRE.