![]() ![]() ![]() You can modify an installed Eclipse to use this installation by navigating in Eclipse to: Sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_XX.jdk/Contents/Home /Library/Java/HomeĪfterwards, a fresh installation of Eclipse should detect Java7 in your system and should work with this version out of the box. Open a terminal and ( Note: replace XX first!): Redefine the JAVA_HOME variable (to support IDEs like Eclipse and other developer tools.), which helps detecting where the "active" Java installation is situated in your system. It should display something like "java version "1.7.0_XX" where XX is the current update version of the Java7 installation. To verify, open another terminal and do a: Sudo rm -rf /System/Library/Java/JavaVirtualMachines/1.6.0.jdkĪfter this step you should only have Java7 by Oracle installed in your system. To remove the Apple-like Java6 installation open a Terminal and: This only applies in case you have no applications that desperately need the old Java6 version to be installed. Again, however, I’m not a Mac user, so your mileage may vary.A potential solution to your problem might be to uninstall Java6 (provided by Apple itself) and only have Java7 installed in your system. The folks that I’ve been working with report that this fixes things nicely. You can also use this utility to find the path of a particular JRE that you can use to configure the -vm option in your eclipse.ini file. It should tell you which version of Java is being resolved as the default and allow you to change it. The short version is this… Execute /usr/libexec/java_home from a command line. It took a few iterations before I was able sort out the magical search terms, but I did eventually find a promising StackOverflow article. It was not, however, immediately obvious how to solve it (perhaps it might have been if I had ever actually used Java on a Mac). My immediate (validated) assumption was that Eclipse was having trouble finding the right JRE. The message is pretty clear, assuming that you haven’t already installed a newer version of Java, but it’s darned confusing if you already have a Java 7 (1.7) or Java 8 (1.8) JRE or JDK installed. I’m not a Mac user myself, so narrowing down the exact symptoms was a bit of a challenge. ![]() So far, everybody who’s asked is using a Mac running OS X and they all seem to be running El Capitan 10.11. I’ve had few people ask me about this error recently. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |