Before running the bin file that i downloaded from the Sun site, i removed every installed package related with java. I removed the packages (libraries, development,...) from the Control Center > yast2 modules > install/remove software.
The installation of the bin file was completed with no problems.
When i try to open a terminal and write "java ___.java" i get a message "no such command".
When i wirte "echo $CLASSPATH" i get nothing.
When i write "echo $JAVA_HOME" i get "/usr/lib/java"
I made then some changes in my .bashrc file and i added two new aliases:
"steJava = ......./j2sdk1.4.2/bin/java"
"steJavac = ......./j2sdk1.4.2/bin/javac"
Now i can develop an application using the steJava and steJavac commands, but i think that it is better to set the CLASSPATH and use the original java and javac commands.
Any ideas? :lol:
Just make sure the path to java and javac is in your PATH. Set CLASSPATH and JAVA_HOME if you need to.
When you say my PATH you mean /home/[me]?
And how can i set the CLASSPATH and JAVA_HOME?
the $PATH environment is where Linux searches for programs to execute if you don't supply an absolute path in the command... to check your path, type
it should output something like this:
to add something to the path, type
then you can edit /etc/profile and add the line
export PATH=$PATH;<dir to add>;<dir to add>
hope that helps...
export PATH=$PATH;<dir to add>