web hosting and development forums
Web Design and Development Forums Archive


Index - JAVA programming forum

problem with using javac


Post reply

Hi everyone I can't use javac But it is installed on my system Can someone help me?
Kopilman, doesn't work is useless. Tell me what it is, what you want it to do, and what it is doing.
I want to compile a java file For that i use javac But when i type javac it says command not found ( running linux)
Kopilman, learn to use linux
Kopilman, Set your $PATH accordingly
amoralis, i think it's ok on my path.. where should it be ?? on /etc/profile ?
Kopilman, That's one place to put it.. Echo "$PATH=$PATH:/path/to/the/dir/containing/javac" >> ~/.bashrc Then logout/login and you should be set
Kopilman, define a JAVA_HOME to point to where you installed your JDK Then add $JAVA_HOME/bin to your path
Klimapol, where do i define java_home on /etc/profile?
Somewhere in /etc/profile, typically, yes.
Klimapol, thanks, i updated my java package and i didn't remember to change the path.




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com