I'm trying to launch Cassandra and I'm running into an issue with JavaLaunchHelper being located in two places. I'm running Java 8. Here's the exact error:
我正在尝试启动Cassandra,我遇到了一个问题,JavaLaunchHelper位于两个位置。我运行Java 8。这是确切的错误:
objc[413]: Class JavaLaunchHelper is implemented in both
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java and
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libinstrument.dylib.
One of the two will be used. Which one is undefined.
Found a similar question for Java 7:
Java 7发现了一个类似的问题:
Class JavaLaunchHelper is implemented in both. One of the two will be used. Which one is undefined
类JavaLaunchHelper是在这两个类中实现的。两者中的一个将被使用。哪一个是未定义的
What's the best way to go about solving this?
解决这个问题最好的办法是什么?
5 个解决方案
#1
15
This is a bug in the JDK and is still not fixed (as of 8u25). See more info here.
这是JDK中的一个bug,并且仍然没有修复(从8u25开始)。在这里看到更多的信息。
#2
1
Shouldn't be a problem, just an annoying message. But Cassandra hasn't been verified against java 8 yet, so you may see some strangeness.
应该不是问题,只是一个烦人的信息。但是Cassandra还没有被java 8验证,所以您可能会看到一些奇怪的东西。
#3
1
You must go to Preferences/Build, Execution, Deployment/Debugger and disable the option: "Force Classic VM for JDK 1.3.x and earlier" This works for me
您必须访问首选项/构建、执行、部署/调试器,并禁用选项:“为JDK 1.3强制使用经典VM。”这对我来说很有效。
#4
0
put lines to files ~/.bashrc (or/and ~/.zshrc) and save
将行放到文件中~/。bashrc (or/and ~/.zshrc)和save
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
and then restart (logout/login) terminal (IDE)
然后重新启动(注销/登录)终端(IDE)
#5
0
Two steps fix this problem:
解决这个问题的两个步骤:
1.Navigate to /Library/Internet Plug-Ins
and remove the JavaAppletPlugin.plugin
directory.
1。导航到/Library/Internet插件并删除JavaAppletPlugin。插件目录中。
2.Navigate to /Library/PreferencePanes
and remove JavaControlPanel.prefpane
.
2。导航到/Library/PreferencePanes并删除JavaControlPanel.prefpane。
Essentially, do one thing: uninstall jre !
基本上,做一件事:卸载jre !
#1
15
This is a bug in the JDK and is still not fixed (as of 8u25). See more info here.
这是JDK中的一个bug,并且仍然没有修复(从8u25开始)。在这里看到更多的信息。
#2
1
Shouldn't be a problem, just an annoying message. But Cassandra hasn't been verified against java 8 yet, so you may see some strangeness.
应该不是问题,只是一个烦人的信息。但是Cassandra还没有被java 8验证,所以您可能会看到一些奇怪的东西。
#3
1
You must go to Preferences/Build, Execution, Deployment/Debugger and disable the option: "Force Classic VM for JDK 1.3.x and earlier" This works for me
您必须访问首选项/构建、执行、部署/调试器,并禁用选项:“为JDK 1.3强制使用经典VM。”这对我来说很有效。
#4
0
put lines to files ~/.bashrc (or/and ~/.zshrc) and save
将行放到文件中~/。bashrc (or/and ~/.zshrc)和save
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
and then restart (logout/login) terminal (IDE)
然后重新启动(注销/登录)终端(IDE)
#5
0
Two steps fix this problem:
解决这个问题的两个步骤:
1.Navigate to /Library/Internet Plug-Ins
and remove the JavaAppletPlugin.plugin
directory.
1。导航到/Library/Internet插件并删除JavaAppletPlugin。插件目录中。
2.Navigate to /Library/PreferencePanes
and remove JavaControlPanel.prefpane
.
2。导航到/Library/PreferencePanes并删除JavaControlPanel.prefpane。
Essentially, do one thing: uninstall jre !
基本上,做一件事:卸载jre !