dcsimg
<P>Want to run java tools javac and java? </P>
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sid_northfield
Posted On:   Tuesday, August 13, 2002 06:40 PM



I have downloaded the j2sdk.
It is located at /home/sid/j2sdk1.4.1


I have navigated to the bin directory



[root@localhost bin]#java

bash: java: command not found.

[root@localhost bin]#javac

bash: javac: command not found.



Helpppppppp.

What can I do?


Re: <P>Want to run java tools javac and java? </P>

Posted By:   zhaohua_meng  
Posted On:   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.

About | Sitemap | Contact