| View previous topic :: View next topic |
| Author |
Message |
Kopilman
Joined: 25 May 2006 Posts: 162
|
Hi everyone
I can't use javac
But it is installed on my system
Can someone help me? |
| |
|
|
|
|
Poolkop
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. |
| |
|
|
Kopilman
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) |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Kopilman, learn to use linux |
| |
|
|
amoralis
Joined: 22 Jun 2006 Posts: 21
|
| Kopilman, Set your $PATH accordingly |
| |
|
|
Kopilman
Joined: 25 May 2006 Posts: 162
|
| amoralis, i think it's ok on my path.. where should it be ?? on /etc/profile ? |
| |
|
|
amoralis
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 |
| |
|
|
Klimapol
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 |
| |
|
|
Kopilman
Joined: 25 May 2006 Posts: 162
|
| Klimapol, where do i define java_home on /etc/profile? |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| Somewhere in /etc/profile, typically, yes. |
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|