Sunday, June 14, 2015

Eclipse - Execute the eclipse after I updated the mac OS.


■ After you updated mac OS, If your mac show the following error message when execute the Eclipse. 


■ This is the solution 

■ Move the java home
$ cd /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/
■ Edit the following file.
$ sudo vim ./Info.plist
# Before
<key>JVMCapabilities</key>
 <array>
  <string>CommandLine</string>
 </array>
# After
<key>JVMCapabilities</key>
 <array>
  <string>JNI</string>
  <string>BundledApp</string>
  <string>CommandLine</string>
 </array>
■ If it doesn't changed anything, make the directory
$ sudo mkdir -p /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
$ sudo mkdir -p /System/Library/Java/Support/Deploy.bundle

No comments:

Post a Comment