Jump to content

Wikipedia:Reference desk/Archives/Computing/2016 August 29

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by Scsbot (talk | contribs) at 05:07, 4 September 2016 (edited by robot: archiving August 29). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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)[reply]

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)[reply]
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)[reply]

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)[reply]