Installing Java on Ubuntu… cont.

Continuing from yesterday. I pulled these up from antbook.org
the other recommend galternatives for alternative implementations that’s available.. Sounds cool I guess I give it a try.
sudo apt-get install galternatives
you can fire it up by typing galternatives in the terminal..
I played around with it.. Looks interesting.

According to these instructions the author suggests setting up symlink that points to:usr/lib/jvm/java-6-sun

from terminal you need to get to the root:

cd /
sudo mkdir /usr/java
sudo ln -s /usr/lib/jvm/java-6-sun /usr/java/jdk
If I understand the rational to this, I can switch to different jdk’s and and not screw around with resetting environment variables.
As I recall, I had Opencascade install melting down on the install because I wasn’t using the C-shell and BASH shells correctly.
According to the instructions I need to JDK declarations to the tail end of /etc/bash.bashrc:
export JAVA_HOME=/usr/java/jdk
export JDK_HOME=$JAVA_HOME
export PATH=$PATH:$JAVA_HOME/bin
It think I understand what’s going on here, but not positive.
Btw. It just took me about an hour to figure out but the don’t but spaces around the equal sign doh!!.. (Learn something new every day)

Now I need to create a file to set up a file for csh:
But first. Time for bed…

Btw… I called it right on American Idol…

Leave a Reply

You must be logged in to post a comment.