While installing Java 7 was really easy. Getting it to show me java -version or javac -version still shows me Java 6 though. I went to the Java Utilities app and unchecked the 2 Java 6 listed there and moved Java 7 to the top, but that didn't help.
I also do have a
in my .profile. But I thought that after installing and moving it up in the utile that that was the type of change that would be made, making the CurrentJDK… stuff now point to the Java 7 directory.
I even commented out the export and re sourced my .profile but that didn't work.
Gregg Bolinger wrote:I bet you need Java 7 for Vert.x.
I opted for the linux in a VM route to play around with Java 7 because I still need 6 to do my other work.
You know it.
I have been using ftp to copy my Groovy scripts for vertx to a Centos VM, still coding on my Mac in IntelliJ with Java6. I also have Mint and Ubuntu VMs in VMWare Fusion and did that for a little bit, but I would much rather have it right on the Mac directly. Just downloaded LibreOffice to replace Open Office since OO doesn't work with Java 7.
Gregg Bolinger wrote:What I mean is, how difficult is it to have 6 and 7 installed on OSX? I suppose I could have one of them installed as the main jvm and just have the other version tucked away in a folder that I can use via path adjustments when necessary.
Yes, just like linux you can have multiple versions of Java installed and have certain applications use different versions etc. For instance, In order to startup Open Office, it requires 6 even though I now have 7 at the top. So I just went into the Utilities folder for the Java preferences and just had 6 also checked off, but at the bottom of the list. Now Open Office can find Java 6 and use it to run. Also in IDEA I can have one project use 6 and another open at the same time using 7.