score:-3

jdk-7u80-macosx-x64.dmg fix this problem.

score:-1

if you're using intellij & mac just go to project structure -> sdk and make sure that there is java listed but it points to sth like

/library/java/javavirtualmachines/jdk1.8.0_131.jdk/contents/home

rather than user home...

score:0

well, after some struggling, what worked for me was completely removing the current jdk, as described here:

sudo rm -rf /library/java/javavirtualmachines/jdk1.7.0_80.jdk
sudo rm -rf /library/preferencepanes/javacontrolpanel.prefpane
sudo rm -rf /library/internet\ plug-ins/javaappletplugin.plugin
sudo rm -rf /library/launchagents/com.oracle.java.java-updater.plist
sudo rm -rf /library/privilegedhelpertools/com.oracle.java.javaupdatehelper
sudo rm -rf /library/launchdaemons/com.oracle.java.javaupdatehelper.plist
sudo rm -rf /library/preferences/com.oracle.java.helper-tool.plist

then installed 1.7.0_21, which was downloaded from here.

now java -version prompts:

java version "1.7.0_21"
java(tm) se runtime environment (build 1.7.0_21-b12)
java hotspot(tm) 64-bit server vm (build 23.21-b01, mixed mode)

score:0

july 2019

osx mojave 10.14.5 (18f132) intellij 2019-1 community edition. it worked setting idea.properties file. i also configured java_home pointing to /library/java/javavirtualmachines/jdk1.8.0_121.jdk/contents/home/

custom intellij idea properties

idea_rt idea.no.launcher=true

score:1

to solve this issue, i downgraded to jdk version 1.7.0_21. then i used this little bash script to change the version i use.

function setjdk() {
  if [ $# -ne 0 ]; then
   removefrompath '/system/library/frameworks/javavm.framework/home/bin'
   if [ -n "${java_home+x}" ]; then
    removefrompath $java_home
   fi
   export java_home=`/usr/libexec/java_home -v $@`
   export path=$java_home/bin:$path
  fi
 }

 function removefrompath() {
  export path=$(echo $path | sed -e -e "s;:$1;;" -e "s;$1:?;;")
 }

once you have the bash script in your zshrc/bshrc file, just call setjdk 1.7.0_21 and you're good to go.

score:3

https://groups.google.com/forum/#!topic/google-appengine-stackoverflow/qzgjg2tlfa4

from what i've found online, this is a bug introduced in jdk 1.7.0_45. i've read it will be fixed in the next release of java, but it's not out yet. supposedly, it was fixed in 1.7.0_60b01, but i can't find where to download it and 1.7.0_60b02 re-introduces the bug.

i managed to get around the problem by reverting back to jdk 1.7.0_25. probably not the solution you wanted, but it's the only way i've been able to get it working. don't forget add jdk 1.7.0_25 in eclipse after installing the jdk.

please do not reply directly to this email but go to stackoverflow: class javalaunchhelper is implemented in both. one of the two will be used. which one is undefined

score:4

as other answers detail, this is a bug in the jdk (up to u45) which will be fixed in jdk7u60 - while this is not out yet, you may download the b01 from: https://jdk7.java.net/download.html

it's beta, but fixed that issue for me.

score:5

not sure if this is the cause of the problem, but i got this issue only after installing jvm monitor.

uninstalling jvm monitor solved the issue for me.

score:11

copy pasting @lichtamberg's comments to gotoalberto's answer

works also for java 1.8:

# in ~/.zshrc and ~/.bashrc

export java_home=/library/java/javavirtualmachines/jdk1.8.0_92.jdk/contents/home 
export path=$java_home/bin:$path 

this fixed my issue on java 8.

score:21

  1. install java 7u21 from: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u21-oth-jpr

  2. set these variables:

    export java_home=/library/java/javavirtualmachines/jdk1.7.0_21.jdk/contents/home
    export path=$java_home/bin:$path
    
  3. run your app and have fun :)

score:119

as of october 2017, this issue is now resolved in

score:181

⚠️ for jetbrains intellij idea: go to help -> edit custom properties.... create the file if it asks you to create it. to disable the error message paste the following to the file you created:

idea_rt
idea.no.launcher=true

this will take effect on the restart of the intellij.


Related Query

More Query from same tag