Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-08-2003, 04:46 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
Setting java path for normal user

Good afternoon everyone,
I have set java up as a root user and have run some simple java programs. However, when I return to a regular user I can no longer run java programs. Where should I set the path? I know I am supposed to edit the bash profile but I'm not sure where in the file I should put the information. Thanks in advance for your replies!

Old 07-08-2003, 05:07 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Put a file named that sets the
paths into /etc/profile.d

Old 07-08-2003, 05:07 PM   #3
Senior Member
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
in your .bash_profile file add the following lines

** NOTE: the following assumes that Java is installed in /usr/local/j2sdk1.4 **



if java is installed somewhere other than /usr/local/j2sdk1.4 simply change the value of JAVA_HOME

after you make these changes to .bash_profile logout and log back in. problem should be solved.


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
Setting Java Path gtkmike SUSE / openSUSE 1 05-09-2005 05:05 PM
add path to normal user acbenny Linux - General 6 08-07-2004 11:24 PM
Setting the PATH for Java bruce64 Linux - Software 9 09-22-2003 12:19 PM
setting path for java ahernaiz Programming 4 03-25-2003 05:30 PM
Setting Java path issues... jmizza Linux - Newbie 8 02-27-2002 09:23 PM > Forums > Linux Forums > Linux - Software

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

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