LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-21-2002, 11:26 PM   #1
Qebex
Member
 
Registered: Sep 2002
Distribution: Redhat 7.3
Posts: 71

Rep: Reputation: 15
Question 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?
 
Old 09-21-2002, 11:39 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Where did you define PATH to java?
 
Old 09-22-2002, 09:42 AM   #3
Qebex
Member
 
Registered: Sep 2002
Distribution: Redhat 7.3
Posts: 71

Original Poster
Rep: Reputation: 15
err.. I dunno? how do I check?
 
Old 09-22-2002, 09:47 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
he he he, how did you install java?
 
Old 09-22-2002, 04:12 PM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
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
 
Old 09-23-2002, 10:50 AM   #6
Qebex
Member
 
Registered: Sep 2002
Distribution: Redhat 7.3
Posts: 71

Original Poster
Rep: Reputation: 15
err...thanks! I try that out. sort of complicated to me
 
Old 09-23-2002, 01:58 PM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
It is not, just tell us the steps you performed to install java.
 
Old 09-24-2002, 05:17 AM   #8
Qebex
Member
 
Registered: Sep 2002
Distribution: Redhat 7.3
Posts: 71

Original Poster
Rep: Reputation: 15
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?
 
Old 09-24-2002, 05:56 AM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running java as root? ludeKing Programming 7 09-17-2004 12:49 AM
Compiling java files from root crash75uk Linux - Newbie 2 06-27-2004 03:21 PM
suse 9.0 java path for root randomx Linux - Software 2 05-08-2004 07:47 PM
Only Root has Java w/Blackdown! snatale1 Linux - Software 3 01-13-2004 06:34 AM
Setting Java path for root adcripps Linux - General 3 03-16-2002 02:36 PM


All times are GMT -5. The time now is 10:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration