Results 1 to 5 of 5
I'm trying to get the Java SDK working on my station (I have Suse 8.0). I installed it and everything, but when in my home directory I type 'javac test.java' ...
- 02-09-2003 #1Just Joined!
- Join Date
- Feb 2003
- Location
- fort collins, colorado
- Posts
- 8
Linux and javac problems, please help
I'm trying to get the Java SDK working on my station (I have Suse 8.0). I installed it and everything, but when in my home directory I type 'javac test.java' and I get a file not found error. But, if I go to the directory where I have installed the SDK and type 'javac ...' and it works. How can I get this to work globally?
Also, what's this BBCode thing all about? I'm new to this forum.
- 02-09-2003 #2Just Joined!
- Join Date
- Feb 2003
- Location
- fort collins, colorado
- Posts
- 8
Sorry folks, I meant to say that I am getting a 'command not found' error, not a 'file not found' error.
- 02-09-2003 #3Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
export PATH=$PATH:/path/to/java/bin
- 02-09-2003 #4Just Joined!
- Join Date
- Feb 2003
- Location
- fort collins, colorado
- Posts
- 8
Thanks, it worked. But.....
Thanks a lot, that worked. But what exactly does export mean? What's happening in this line here?
- 02-09-2003 #5Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
It is putting your java bin dir in your path so you dont need to type /path/to/bin/javac everytime you want to use it. I suggest putting that line in your .bash_profile so it is ran evertime you login. $PATH is an enviroment variable and export is a way of adding variables or functions to your enviroment.


Reply With Quote
