Results 1 to 4 of 4
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-11-2003 #1Just Joined!
- Join Date
- Sep 2003
- Location
- Greece
- Posts
- 10
Installing j2sdk1.4.2
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?
- 09-11-2003 #2Just Joined!
- Join Date
- Aug 2003
- Location
- USA
- Posts
- 7
Just make sure the path to java and javac is in your PATH. Set CLASSPATH and JAVA_HOME if you need to.
- 09-12-2003 #3Just Joined!
- Join Date
- Sep 2003
- Location
- Greece
- Posts
- 10
When you say my PATH you mean /home/[me]?
And how can i set the CLASSPATH and JAVA_HOME?
- 09-12-2003 #4Linux Engineer
- Join Date
- Sep 2003
- Location
- Knoxhell, TN
- Posts
- 1,078
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:Code:echo $PATH
to add something to the path, typeCode:PATH=/bin;/usr/bin;/sbin;/usr/sbin;/usr/X11/bin
then you can edit /etc/profile and add the lineCode:export PATH=$PATH;<dir to add>;<dir to add>
hope that helps...Code:export PATH=$PATH;<dir to add>
Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr


Reply With Quote
