Tuesday, August 13, 2002 08:51 PM
You can do it in two ways:
1) ./java or ./javac
Please note the "./". It tells the shell to look for java and javac in current directory
2) export PATH=$PATH:/home/sid/j2sdk1.4.1/bin
java or javac
You can make it permanent by putting the export line in your start-up script. If, for example, you are using Linux, put it in file .bashrc of your home directory, or in /etc/bashrc if you have root access.