LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   java: command not found (https://www.linuxquestions.org/questions/linux-software-2/java-command-not-found-102597/)

inteliblake 10-10-2003 05:52 PM

java: command not found
 
I have installed java via all their different versions and I am still not getting this required command. When I type java, just get, java: command not found. Any idea on how to fix this? Java installed it self into /usr/java/... but no command :(

hw-tph 10-10-2003 06:46 PM

You have to add the java bin directory to your path. Search these forums - the question seems to pop up once a day. :)

hw

mossy 10-10-2003 06:51 PM

mine does the same when I type in java.
so that is not a problem - mine works fine.

Did the installation go without any problems?

mossy 10-10-2003 07:05 PM

ALSO does Java show in your browser extensions ?

NB you may find the answer in one of the many Java related threads already in the forum - run a search - particularly something like -
link java
if you did not link the files yet.

simplico 10-10-2003 08:56 PM

here is a simple way to fix ur java problem.

use any text editor and go to your home folder, e.g, /home/*blake*
and open a file by the name .bash_profile

add :/usr/java/j2sdk1.4.2_01/bin at the end of ur $PATH variable (make sure to change the path i used to fit the location of your java bin directory).


All times are GMT -5. The time now is 10:47 AM.