| View previous topic :: View next topic |
| Author |
Message |
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
|
Hi everyone
I can't use javac
But it is installed on my system
Can someone help me?
Reply with quote
|
| |
|
|
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
|
Kopilman, doesn't work is useless. Tell me what it is, what you want it to do, and what it is doing.
Reply with quote
|
| |
|
|
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
|
I want to compile a java file
For that i use javac
But when i type javac it says command not found ( running linux)
Reply with quote
|
| |
|
|
BigDaddy Enthusiastic Coder
Joined: 26 May 2006 Posts: 147
| |
amoralis New Programmer
Joined: 22 Jun 2006 Posts: 21
| |
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
|
amoralis, i think it's ok on my path.. where should it be ?? on /etc/profile ?
Reply with quote
|
| |
|
|
amoralis New Programmer
Joined: 22 Jun 2006 Posts: 21
|
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
Reply with quote
|
| |
|
|
Klimapol Enthusiastic Coder
Joined: 27 May 2006 Posts: 134
|
Kopilman, define a JAVA_HOME to point to where you installed your JDK
Then add $JAVA_HOME/bin to your path
Reply with quote
|
| |
|
|
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
| |
Klimapol Enthusiastic Coder
Joined: 27 May 2006 Posts: 134
| |
| Page 1 of 2 |
Goto page 1, 2 Next |
|