Search This Blog

Wednesday, March 18, 2015

OsX - choose the right Java version for Intellij 14 CE

/Applications/IntelliJ IDEA 14

2015-03-18 21:02:24.425 idea[962:382297] No matching VM found.
[JavaAppLauncher Error] CFBundleCopyResourceURL() failed loading file
[JavaAppLauncher Error] CFBundleCopyResourceURL() failed while getting Resource/Java directory
[LaunchRunner Error] No main class specified
[JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
Exception in thread "main" java.lang.NullPointerException
at apple.launcher.LaunchRunner.callMain(
at apple.launcher.JavaApplicationLauncher.main(

Download the newest "Apple Java" from here.
Download the regular Oracle Java.

Remember to set the JAVA_HOME variable in .bash_profile correctly:
export JAVA_HOME= /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home

You can also edit the file: /Applications/IntelliJ IDEA 14

and change 1.6 to 1.8

1 comment:

  1. nike air jordan 5 retro sale The saying cheap nike air jordan 5 shoes goes, every man for himself hindmost, so the thief began a cheap revenge. cheap is nike air jordan 5 retro sale flattering to nike air jordan 5 retro sale the director, I heard him tell your pocket thief, are not shocked, to director Zhaosuo  nike air jordan 5 retro sale air jordan 5 uk said, you do not listen to his nonsense, then you before .


If you like this post, please leave a comment :)