Wikipedia:Reference desk/Archives/Computing/2016 August 29
Computing desk | ||
---|---|---|
< August 28 | << Jul | August | Sep >> | August 30 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
August 29
[edit]Scala IDE
[edit]I have the Scala IDE installed and I'm trying to learn the language. I tried compiling and running a program today and got "Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object" in the console. This is on a Mac running OS X 10.11. I have Java 8 Update 101 installed. I thought that the error in the console might be trying to tell me that the version of Java couldn't be found or some such thing. This is a screenshot of the preferences panel of the IDE. Is it pointing at the wrong JRE? If so, where would I find the correct version of the JRE?
Or, am I completely off base?
Thanks! †Dismas†|(talk) 23:34, 29 August 2016 (UTC)
- You are definitely on the right track - you pointed at a Java 1.7 (Java 7) installation (though in your screenshot, the full paths are not visible! Expand your Location viewer...) You probably have multiple JREs installed, (and that's perfectly okay), but you need to point to the Java 8 installation. The default location is /Library/Java/, but if you used a non-standard installation, it could be in ~/Library/ or lots of other locations... see, e.g., Important Java Directories on Mac OS X.
- You should be able to browse for the correct location by clicking the "Add..." button. You can use the currently-selected Java SE 7 location as a good place to start looking; then navigate up the directory tree until you find the Java 8 version.
- Nimur (talk) 00:44, 30 August 2016 (UTC)
- This is interesting... The Java control panel says I have Java 8 but I can't find any file with 1.8 in the name... And running the "/usr/libexec/java_home" command that is on that page you linked to only brings up 1.7. †Dismas†|(talk) 01:42, 30 August 2016 (UTC)
After an uninstall and reinstall of Java, it's all set. I'm getting different errors but they're errors that I expected. Thanks for the assist! †Dismas†|(talk) 02:25, 30 August 2016 (UTC)