Ok. I downloaded and installed the JDK 1.4.0_01 in /usr/java/j2sdk1.4.0_01
I, then, under my /root directory, I edited the .bash_profile which now displays this:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc]; then
.~/.bashrc
fi
# User specific environment and startup programs
JAVA_HOME=$JAVA_HOME:/usr/java/j2sdk1.4.0_01
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
export USERNAME BASH_ENV PATH JAVA_HOME CLASSPATH
Now, here is my situation:
When I log-in to Linux using "root" and activate the command prompt, and type:
$
java -version
It works! But I heard that other than for installing software, one should always create a profile and not use "root" too much (because of the imminent danger of human error), so I created a user by the name of "untz". When I logged into Linux as "untz" and wrote a simple Java
Applet, it didn't recognize the:
$ javac -verbose ButtonApplet.java
It didn't recognize the "javac" command! If anyone can help me with this, I would appreciate it, because I am yearning to start all of my future development on Linux, and don't really want to use "root" too much as the user. Also, if anyone sees any errors (in my .bash_profile), I would appreciate it if they can inform me.
Thanks again,
Unnsse