LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-08-2004, 05:10 AM   #1
Fr0gg
LQ Newbie
 
Registered: Apr 2004
Location: Naperville, IL
Distribution: SUSE 9.0
Posts: 7

Rep: Reputation: 0
Java Grumble Grumble Why Can't i get in in my path Grumble Grumble


Hello I'm using suse 9.0 and well for like 5 days now I seem to have lost my path. I was wondering if sombody on here knows were it went. You see i want to add /usr/java/j2re1.4.2_04/bin to the path. I've tried export path = I've tried set path= i've looked in every single config file as far as my little eye can see. So Now I shall cusult the wizzard of oz. Please wizzard grant me a brain....... Or at least some sleep been a few days know you know.... LOL but for serious If somebody could help me figure this out that would be great.
 
Old 04-08-2004, 05:15 AM   #2
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
and with capitals? try export PATH=/bla/bla

you can check if it worked with echo $PATH

succes,
-= iluvatar =-
 
Old 04-08-2004, 05:18 AM   #3
Fr0gg
LQ Newbie
 
Registered: Apr 2004
Location: Naperville, IL
Distribution: SUSE 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
Man the wizzard is fast And really does know all no i wasn't using capitals. Is that a permanent entry or no all mighty wizzard?
 
Old 04-08-2004, 05:34 AM   #4
BaPu
LQ Newbie
 
Registered: Mar 2003
Location: France
Distribution: debian, gnome 2.6,kernel 2.6.4
Posts: 11

Rep: Reputation: 0
If you type PATH=/usr/java/j2re1.4.2_04/bin
echo $PATH will return
/usr/java/j2re1.4.2_04/bin

So if you want to keep your path, you should do as follow
export PATH=/usr/java/j2re1.4.2_04/bin:${PATH}

However it won't be permanent.
I have edited .bashrc in order to make it permanent. But there should be another way
 
Old 04-08-2004, 05:39 AM   #5
Fr0gg
LQ Newbie
 
Registered: Apr 2004
Location: Naperville, IL
Distribution: SUSE 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
in my .bashrc i don't see any path info though
 
Old 04-08-2004, 05:50 AM   #6
BaPu
LQ Newbie
 
Registered: Mar 2003
Location: France
Distribution: debian, gnome 2.6,kernel 2.6.4
Posts: 11

Rep: Reputation: 0
It's normal
But you can add a line like this one
export PATH=/usr/java/j2re1.4.2_04/bin:${PATH}

Every time you launch bash it will tell him to add usr/java/j2re1.4.2_04/bin to his PATH
It works quite well

Again, I believe there is a better way to do it. But I am not aware of it.
 
Old 04-08-2004, 05:52 AM   #7
BaPu
LQ Newbie
 
Registered: Mar 2003
Location: France
Distribution: debian, gnome 2.6,kernel 2.6.4
Posts: 11

Rep: Reputation: 0
If you don't where to add it. Add it at the end of your .bashrc file just beofre the ultimate fi
You will have to launch a new shell to check if it is working
 
Old 04-08-2004, 06:25 AM   #8
Fr0gg
LQ Newbie
 
Registered: Apr 2004
Location: Naperville, IL
Distribution: SUSE 9.0
Posts: 7

Original Poster
Rep: Reputation: 0
alright I'll do that
 
  


Reply



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
Path to java mherring Linux - Software 1 05-04-2005 07:11 PM
changing the java path Alwyn Linux - Newbie 4 01-24-2005 05:35 AM
Java can't find package, but PATH set correctly (j2se1.4.0, java.util.regex package) Ethan Programming 5 02-06-2004 09:55 PM
setting path for java ahernaiz Programming 4 03-25-2003 04:30 PM
java sdk and $PATH mxr Linux - Newbie 1 10-18-2001 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 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
Open Source Consulting | Domain Registration