LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   JSDK 1.4.3 problem (https://www.linuxquestions.org/questions/linux-software-2/jsdk-1-4-3-problem-144335/)

irfanhab 02-10-2004 02:14 AM

JSDK 1.4.3 problem
 
I downloaded Java sdk 1.4.3 and I cant get it to work.

On linux i type javac in shell, and i t gives unknown command


the location where i installed was predetermined in the installation rpm, which is /usr/java/jsdk1.4.3/bin
how can I set a sort of 'classpath' to the dir, and use the compiler in the shell.

aizkorri 02-10-2004 03:38 AM

add this line to your .bashrc file:

PATH=/usr/java/jsdk1.4.3/bin:$PATH

aizkorri 02-10-2004 03:44 AM

sorry, I forgot to say,
open a new terminal for setting the PATH, then type javac, it should work.

This line is for telling the system where the java binary is.
If you type "which java" it will tell you where it is (if the system knows).


All times are GMT -5. The time now is 04:11 AM.