LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   setup java using suse (https://www.linuxquestions.org/questions/programming-9/setup-java-using-suse-11433/)

j-ray 01-09-2002 03:18 PM

setup java using suse
 
Hi!
I'd like to install java and a path to execute it using linux/suse distro. I think I should find sth. like "~/.bashrc" or "~/.bash_profile" to edit the path. Only there are no such files. Any help much appreciated!

elist 02-05-2002 09:14 AM

Why not make the path global by putting it in your /etc/.profile file?

gluon 02-07-2002 03:03 AM

Hi,

Try something like

echo "export CLASSPATH=$CLASSPATH:absolute_path_to_your_java_dir/lib" >> .profile

where absolute_path_to_your_java_dir should be /usr/lib/java under SuSE (in fact the java dir is a link to /usr/lib/jdk.1.3)

Whatsmore, if you want to add libraries (eg MySQL drivers...), just copy the .jar file into that absolute_path_to_your_java_dir/lib and it will "automatically" work !

Hope it helps

CU, Gluon


All times are GMT -5. The time now is 12:20 AM.