Tuesday, April 22, 2014

Troubleshooting - How do I use JDK 7 on Mac OSX?

@You get a error in eclipse in Mac, 
/Library/Java/JavaVirtualMachines/1.7.0.jdk cannot execute binary file
  1. I Downloaded the latest OpenJDK 1.7 universal (32/64 bits) JDK from Mac OS/X branch from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
  2. copied the jdk to /Library/Java/JavaVirtualMachines/ next to the default 1.6.0 one
  3. In Eclipse > Preferences > Java > Installed JREs you add a new one, of type MacOS X VM, and set the home as /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home and name Java SE 7 (OpenJDK)
  4. Click Finish
  5. Set the added JRE as default
@Thank you 
http://stackoverflow.com/questions/6267392/how-do-i-use-jdk-7-on-mac-osx

No comments:

Post a Comment