Java command not working, plugin does
I am running MDK 10.1 OE, I installed Suns JRE 1.5 & the plugin is working fine. I downloaded Jbidwatcher & have been unable to get it to run. If I double click on the jar file, I am prompted what I want to open the file with. When I open a terminal & type
java -version I get bash: java: command not found no matter which directory I am in or who I am logged in as. When I go to Sun's website & use their link to test the virtual machine it works fine. I can also double click on the control panel script in usr/java/jre1.5.0/bin & it opens up. Any clues? Thanks |
You will have to set the environment variable's
#locate javac [to see where u have installed java] [***sample output***] : /opt/j2sdk_nb/j2sdk1.4.2/bin/javac open the .bashrc file ---> /root/.bashrc (or) ur_home_folder/.bashrc add the following lines depending on the output of the last command PATH="$PATH:.:/opt/j2sdk_nb/j2sdk1.4.2/bin:." export PATH CLASSPATH="$CLASSPATH:/opt/j2sdk_nb/j2sdk1.4.2/lib:" export CLASSPATH save it and open a ****New terminal**** #echo $PATH [should give u the path to the bin folder u've set ] #echo $CLASSPATH [should give u the path to the lib folder u've set ] |
That did the trick, thanks much.
|
All times are GMT -5. The time now is 06:20 AM. |