Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

problem with setting Java environment variables in Linux

Thread view: 
Leo - 21 Mar 2006 12:41 GMT
Dear All,

In root mode, I added following lines to /root/.bashrc

export JAVA_HOME=/opt/SUNWappserver
export CATALINA_HOME=/opt/tomcat

Later, I found that if I am not super user,
echo $JAVA_HOME returns blank.

Only in root mode,
echo $JAVA_HOME returns /opt/SUNWappserver

I thought anything in root is available to general users. Why is not
this time?

Thank you very much.
James Westby - 21 Mar 2006 17:48 GMT
> Dear All,
>
[quoted text clipped - 11 lines]
> I thought anything in root is available to general users. Why is not
> this time?

That's not true. This is the correct behaviour (on my distro at least).

James
Gordon Beaton - 21 Mar 2006 17:49 GMT
> In root mode, I added following lines to /root/.bashrc

[...]

> I thought anything in root is available to general users. Why is not
> this time?

If you have questions about Linux or bash, there are more appropriate
groups than this one, which is about programming in Java.

That said, root is a user (much) like any other, so changes to root's
login files affect root only. If you want to change everyone's
environment, look for appropriate files in /etc.

/gordon

Signature

[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.