set up path,classpath in linux(slaware9) for java
i downloaded j2sdk in my linux.dont know how to set up path and classpath in linux.i am using slackware9.please help
|
|
I'll just paste my answer to a similar question posted on knoppix.net:
Quote:
|
Quote:
If you update the system via CD, you're quite likely to have a new /etc/profile and need to make the changes again or merge the two files... Also, making changes to a central file like profile isn't necessarily a good idea for n00bs. I'd suggest making a file /etc/profile.d/java.sh and make it look like this :) (modify to match your paths ;}) Code:
#!/bin/sh Tink |
or you could edit .bash_profile in your home directory (something like /home/*user*/.bash_profile --when you have to type in the file you want to open, type .bash_profile). and add the line :
:/usr/java/j2sdk1.4.2_01/bin to the end of your PATH line |
Thanks a loooot
i edited the /etc/profile and set the path .javac is now working.
|
All times are GMT -5. The time now is 02:56 AM. |