SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I want the path to java to be added to the path on user login... now this works fine in .bash_profile for root, but it doesnt work for my users.... i get
export: export: No such file or directory
The text in the file is this
export PATH=$PATH:/usr/local/j2sdk1.4.2/bin/
i tried addint to rclocal, but its still not working... andyone any ideas?
If u want it to be global gilty also for ur users ..
If u onlu add it to root/.bash_profile, the users can not source/read it during the login time, but add it to the users/.bah_profile should work .. In this cas u better put that added bash_profile in /etc/skel, so that each time u created an user, that added .bash_profile will be copied into user home dir.
Easiest would be put it in /etc/profile, I recommend also add lines like
export JAVA_HOME=PATH_TO_THE_JAVA_INSTALLATION to the profiles, otherwise some classpaths n many JavaLibraries, runtime couldn't be found if u compiles java-codes as if u put link to javaInstallation/bin/java into /usr/local/bin ..
That links point only to a single java-binary, not to javac, jar n many other tools .. To create so mnay link is absolutely not a clean solution than to add $JAVA_HOME/bin to $PATH ..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.