Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java 8: Class JavaLaunchHelper is implemented in both

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:

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:

Class JavaLaunchHelper is implemented in both. One of the two will be used. Which one is undefined

What's the best way to go about solving this?

like image 433
user3181113 Avatar asked May 11 '14 08:05

user3181113


3 Answers

This is a bug in the JDK and is still not fixed (as of 8u25). See more info here.

like image 121
J.R. Garcia Avatar answered Nov 13 '22 14:11

J.R. Garcia


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.

like image 44
Zanson Avatar answered Nov 13 '22 13:11

Zanson


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

like image 1
David Figueroa Avatar answered Nov 13 '22 14:11

David Figueroa