LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   java cannot be used other than in root (https://www.linuxquestions.org/questions/linux-software-2/java-cannot-be-used-other-than-in-root-30932/)

Qebex 09-21-2002 11:26 PM

java cannot be used other than in root
 
when I log into root, i can do java command, but when I log into other account, I cannot do java command. the error msg is bash : java : command not found.

What can I do?

neo77777 09-21-2002 11:39 PM

Where did you define PATH to java?

Qebex 09-22-2002 09:42 AM

err.. I dunno? how do I check?

MasterC 09-22-2002 09:47 AM

he he he, how did you install java?

j-ray 09-22-2002 04:12 PM

type into your /home/username/.bashrc

export PATH=/usr/java/j2sdk1.4xx/bin:$PATH
(PATH has to point to your sdk/bin)
be sure there is no other export PATH - command in that file
below. if there is a commnd like that place your statement
below that

then

'source ~/.bashrc' logged in as user

that's it
cheers, jens

Qebex 09-23-2002 10:50 AM

err...thanks! I try that out. sort of complicated to me

neo77777 09-23-2002 01:58 PM

It is not, just tell us the steps you performed to install java.

Qebex 09-24-2002 05:17 AM

I used K package manager to install the RPM. Before I do that I remove everthing that is related to java. Java command run fine on root, but no such command with other account. how to make other account to have all the access and features of a root account? Superuser seem to be not enuuf in some case...like java?

MasterC 09-24-2002 05:56 AM

Looks like you are (well until you read the thread) in the same boat as this thread:
http://www.linuxquestions.org/questi...threadid=30908

Cool


All times are GMT -5. The time now is 06:31 PM.