Return to site

Jdk 1.7 Mac Os X

broken image


Mac OS-X and JDK 1.7 Update 40 Follow. Peter Jacobsen Created September 11, 2013 17:34. I tried the new JDK release - basically it works with IU132.106. The About screen now does not flash anymore but the font rendering with the standard settings is really bad (on a non-retina display). I will stick with the Apple JDK 1.6 for now. Determining the Default Version of the JDK. If you have not yet installed Apple's Java OS X 2012-006 update, then you are still using a version of Apple Java 6 that includes the plug-in and the Java Preferences app. Thoughts on how to accomplish this process using JDK 1.7 on OS X 10.8.4 when there is no JDK 1.6 installed? The Oracle JDK 1.7 deploy structure is a bit different it seems. JDev install fails about 50% of the way through.

Installing OpenJDK 7 on OS X

Last week, I scanned an article and saw there was a Java 7 Webinar. At first, I thought Java 7 was released, but soon after realized it was a Developer Preview. Unfortunately, the download page doesn't have support for OS X. Since it took me a bit of work to figure out how to install OpenJDK 7 on OS X (I'm running Snow Leopard 10.6.7), I figured I'd write down how I did it.

I started off by downloading 'OpenJDK 1.7 universal (32/64 bits) from Mac OS/X branch' from the openjdk-osx-build project's downloads (direct link). After downloading, I installed the dmg as normal.

Update Jan 27, 2012:
After installing the dmg, add the following to your ~/.profile and you should be good to go. Thanks to Mark Beaty for the tip.

Jdk 1.7 mac os x 10.10

Continue with the instructions below if you don't like this technique for some reason.

I don't use Java Preferences to set my JDK, instead I use David Blevin's handy setjdk script. To make this script work with JDK 7 on OS X, I had to make one minor change. On line 40, I added 'Contents' to the path for JAVA_HOME:

Update Jan 27, 2012: You no longer need to make this change.

From there, I had to setup some symlinks so everything would work as expected: Capture one pro serial mac.

Update Jan 27, 2012: The latest version installs at a different location so the symlink command above should be changed to:

Lastly, I had my JAVA_HOME set to '/System/Library/Frameworks/JavaVM.framework/Home'. I like the shorter (and seemingly more common) '/Library/Java/Home', so I set it back to that in my ~/.profile:

On my system, /Library/Java/Home had a symlink to /System/Library/Frameworks/JavaVM.framework/Home, so I changed it to the CurrentJDK that Java Preferences and setjdk use.

Mac

Then I had to add a symlink for 1.7 in the Versions directory.

After making these changes, I was able to switch to JDK 7 easily.

I was also able to switch back to JDK 6.

Maven Issues
Next, I tried using JDK 7 to build AppFuse. I ran into two issues when I tried to do this. The first was caused by the native2ascii plugin, which has been known to cause issues on non-Mac platforms. Adding the following profile seemed to solve the problem.

The next issue was with Enunciate and its maven-enunciate-cxf-plugin.

It seemed like adding a profile that included tools.jar would solve this, but it doesn't. When I add the dependency directly to the plugin itself, I get the following error:

Hopefully this article helps you get started with Java 7 on OS X. If you have any additional tips, please leave a comment.

Mac

Continue with the instructions below if you don't like this technique for some reason.

I don't use Java Preferences to set my JDK, instead I use David Blevin's handy setjdk script. To make this script work with JDK 7 on OS X, I had to make one minor change. On line 40, I added 'Contents' to the path for JAVA_HOME:

Update Jan 27, 2012: You no longer need to make this change.

From there, I had to setup some symlinks so everything would work as expected: Capture one pro serial mac.

Update Jan 27, 2012: The latest version installs at a different location so the symlink command above should be changed to:

Lastly, I had my JAVA_HOME set to '/System/Library/Frameworks/JavaVM.framework/Home'. I like the shorter (and seemingly more common) '/Library/Java/Home', so I set it back to that in my ~/.profile:

On my system, /Library/Java/Home had a symlink to /System/Library/Frameworks/JavaVM.framework/Home, so I changed it to the CurrentJDK that Java Preferences and setjdk use.

Then I had to add a symlink for 1.7 in the Versions directory.

After making these changes, I was able to switch to JDK 7 easily.

I was also able to switch back to JDK 6.

Maven Issues
Next, I tried using JDK 7 to build AppFuse. I ran into two issues when I tried to do this. The first was caused by the native2ascii plugin, which has been known to cause issues on non-Mac platforms. Adding the following profile seemed to solve the problem.

The next issue was with Enunciate and its maven-enunciate-cxf-plugin.

It seemed like adding a profile that included tools.jar would solve this, but it doesn't. When I add the dependency directly to the plugin itself, I get the following error:

Hopefully this article helps you get started with Java 7 on OS X. If you have any additional tips, please leave a comment.

Posted in Javaat Jul 12 2011, 02:11:44 PM MDT 9 Comments

I use Mac OS X 10.8.2, and use JDK 7. Now I downloaded the latest version of IDEA IntelliJ, 11. But it doesn't seem to start without JDK 6. Is there any workaround?

How can I run IDEA IntelliJ on Mac OS X with JDK 7?

Answers:

Jdk 1.7 Mac Os X 10.13

UPDATE:

When running IDEA 12 on JDK 1.7 (after changing JVMVersion to 1.7* in Info.plist) make sure you have LANG=en_US.UTF-8 in your environment, see the related Java issues:

Refer to this thread for debugging launcher issues.

Please also be aware that GUI applications on Mac have no access to your Terminal environment. If you've defined some environment variables that work fine in Terminal, other applications that you run not from the Terminal will not see these variables. A workaround for this problem is to start the application directly from the Terminal, for IDEA the following command can be used:

There are known issues with JDK 1.7 support on Mac right now, like missing Retina support, possible flicker, some APIs not implemented. It's highly recommended to run IDEA under JDK 1.6 for the best experience on Mac. It doesn't stop you from using JDK 1.7 as a target for building and running your projects.

Dota 6.78c ai map download. IntelliJ IDEA 11 launcher will not work with JDK 1.7 on Mac.
At the moment you must have JDK 1.6 installed so that you can run IDEA 11 and older versions.

Answers:

Mac OSX Yosemite / El Capitan Update

I have IntelliJ 15 Ultimate installed, and I received this same message.
I also have Java 1.7 and 1.8 installed.

I solved it using the following steps in a terminal:

Edited the Info.plist file, and changed this bit:

to:

After launching, everything was golden.

Answers:

With IntelliJ 13 and OS X 10.9, I can just change the plist to 1.7* and it works on Java 7 without prompting for the Java 6 install.

Answers:

For those who still getting error message that Java 6 must be installed. There are two problems with that:

  1. Mac OS wants jdk 1.6 to be installed whenever application Info.plist file contains Java section
  2. Java launcher shipped with IntelliJ also wants jdk 1.6 badly

All you need is:

  1. Replace original launcher (Contents/MacOS/idea) with shell script with explicit java invocation (parameters and classpath can be taken from Info.plist's Java section).
  2. Remove 'Java' section from Info.plist

Or you can use this https://github.com/wonder-mice/mac-java-launcher that automate things and I believe will work not only with IntelliJ.

Answers:

Jdk 1.7 Mac Os Xcode

Others have suggested very good solutions but you have to do it manually vi editor etc. Instead you can run this command via your Mac Terminal and you will be good to go :

Jdk 1.7 Mac Os X 10.8

Few optional tips:

Java Jdk 1.7 Download For Mac Os X

  1. If you have JDK 1.8 installed then simply replace the 1.7 with 1.8 in above command.
  2. As always make a copy of your Info.plist in a folder just in case if you want to compare the result or revert it back for one reason or another.
  3. To verify that the change took place run this:

    • grep 'string>1.7' /Applications/IntelliJ*/*Contents/*Info.plist




broken image