<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Could it be that the OpenJDK is installed ok but the path did not get<br>
set into the user $PATH environment? Perhaps that is why running<br>
greenfoot from the term said "You may need to edit the<br>
/usr/bin/greenfoot launch script." - that script possibly contains a<br>
setting that points to the path of the openJDK. So you can sudo edit<br>
that script and fix the path in there.<br></blockquote><div><br></div><div>I had a look at that script and it looks in /usr/lib/jvm/* for all possibilities.</div><div><br></div><div>If the JDK, Oracle or OpenJDK, was installed, it would be there, also, "java -version" wouldn't work if $PATH was incorrect.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Or you can find and add the openjdk path to your global environment<br>
path, so it is seen by the system - you can see how to do this here:<br>
<a href="http://askubuntu.com/questions/175514/how-to-set-java-home-for-openjdk" target="_blank">http://askubuntu.com/questions/175514/how-to-set-java-home-for-openjdk</a><br>
<br></blockquote><div><br></div><div>The other issue is that that script uses it's own environment variable, $JAVAPATH, not $JAVA_HOME or $JDK_HOME like the norm is. It also unsets that variable at the start.</div><div>
No idea why they don't look for the normal known variables :-/</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Good luck and happy learning,<br>
wesley<br>
<span><font color="#888888"><br>
--<br>
--<br>
Wesley<br>
</font></span><div><div><br>
--<br>
ubuntu-za mailing list<br>
<a href="mailto:ubuntu-za@lists.ubuntu.com" target="_blank">ubuntu-za@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-za" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-za</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Johan Mynhardt<br><br>Netiquette Guidelines: <a href="http://tools.ietf.org/html/rfc1855" target="_blank">http://tools.ietf.org/html/rfc1855</a><br>

<a href="tel:%2B2772%20432%208108" value="+27724328108" target="_blank">+2772 432 8108</a> |johanmynhardt[at]<a href="http://gmail.com" target="_blank">gmail.com</a><div><a href="https://google.com/+JohanMynhardt" target="_blank">https://google.com/+JohanMynhardt</a><br>
<a href="http://nuvolari.co.za" target="_blank">http://nuvolari.co.za</a> | <a href="http://johanmynhardt.co.za/" target="_blank">http://johanmynhardt.co.za/</a><br>
<a href="http://mythumbprint.mobi/johanmynhardt" target="_blank">http://mythumbprint.mobi/johanmynhardt</a><br></div></div>
</div></div>