APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Java VM problem with EJS post and replies

Return to the Java VM problem with EJS thread
Login to post to this thread

Correct java version, EJS not finding it
Scott Garland
2 Posts

Hello,

Typing "java -version" into my terminal confirms that I have the latest version of java.

Its directory path is "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk"; however, the EJS console incorrectly has "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home" listed.

The field containing this path text is not editable within the EJS console, and typing the correct path in the "Launch EJS in this alternate Java VM" field does not solve the problem.

This issue has some very strange effects on EJS. All of the code text looks terrible, the run look and feel is not affected by the run look and feel options, and one of my .ejs programs will not open anymore and crashes my computer when I try.

I recently updated my Macbook Pro to Mountain Lion and I suspect that this may have some correlation to this issue.

Thanks for your help,
Chad


Replies to Correct java version, EJS not finding it

Re: Correct java version, EJS not finding it -
Francisco Esquembre
228 Posts

Hi Chad,

I also have a Mountain Lion Mac Book Pro. The EJS Console lists by default the following Java folder:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

I have no idea why Java reports its default installation is /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home.

However, try to type
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
in your "Launch EJS in this alternate Java VM" field and see if this fixes the problem.

I assume that you installed Java correctly (see http://osxdaily.com/2012/08/01/install-java-in-os-x-mountain-lion/)

Paco



Re: Re: Correct java version, EJS not finding it -
Scott Garland
2 Posts

Awesome, this worked great!

Thanks Paco!



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book