DIGIT-ARC read-only archive · snapshot: July 23, 2026

please help:javasdk installation on linux

4 posts · originally from https://geek.digit.in/community/threads/please-help-javasdk-installation-on-linux.103127/

S
sidsikka Original post #1
Nov 28, 2008 at 8:43 PM
thiis is my first post here....
i need help in installing javasdk on my linux opensuse 8.0
i have the bin file, followed instructions on the net and installed in /usr/java directory.
now comes the problem of setting the environment variables::
wen i set d environment variables it runs perfectly n java compiler is detected, but on restarting the gnome terminal it again gives the error:
javac:command not found.
wat is to be done in order to not to set the environment variables again n again before compiling a .java file.
if someone has successfully installed javasdk on a linux system, please be kind enuf to tell the procedure in little bit of detail...:neutral:
thanking in anticipation::::eek:
Faun
Faun #2
Nov 28, 2008 at 9:21 PM
Best thing is to install any java based software, it will set environment automatically.

Download vuze or netbeans or zoomr or eclipse and run it, it will set it up automatically.

Second option is to add export in .bashrc
damked
damked #3
Nov 29, 2008 at 10:10 AM
Add your environment variables to file .bash_profile which resides in your home directory.
You may have to create it if it is not already present. Add following line to it:
export PATH=$PATH:/usr/java/jdkx.x.x_xx/bin
(jdkx.x.x_xx may change according to your settings)
When you start gnome terminal or any other like kterm or rxvt, .bash_profile file will be read and you don't have to set the path each time.:)

If you want to set the path for all users, add the line to /etc/profile file (as root):!:
S
Nov 30, 2008 at 10:56 PM
thanks damked
its done....