Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I am trying to set a classpath for Java (java resides in /usr/java/j2sdk1.4.0_03/bin/ in my case) in Mandrake9. How do I do it? Do put this line:
export PATH=$PATH:/usr/java/j2sdk1.4.0_03/bin/
in both or either:
1.) /etc/bashrc
2.) /etc/profile
and if yes, then where exactly in file? As you've probably guessed by now, I am using bash shell. Thanks for your help!
And it depends on your wants, if you want this to be in the path for all users, then I'd stick it in /etc/profile, but if you want it for specific users only, then the bash_profile is for that.
It doesn't really matter, unless you stick it in an "if, then, else" structure. You can place it at the end of the file and should not have any problems.
You mentioned you were trying to set "classpath" though. If this is the case you want to make it:
Hmmphh, I put my thing in /etc/profile, and now i can't login into either KDE or GNOME, only IceWM works, and even there in shells I can't do anything, not su or ls or anything... How I fix it?
Thanks...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.