LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Java Grumble Grumble Why Can't i get in in my path Grumble Grumble (https://www.linuxquestions.org/questions/linux-software-2/java-grumble-grumble-why-cant-i-get-in-in-my-path-grumble-grumble-167663/)

Fr0gg 04-08-2004 05:10 AM

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.

iluvatar 04-08-2004 05:15 AM

and with capitals? try export PATH=/bla/bla

you can check if it worked with echo $PATH

succes,
-= iluvatar =-

Fr0gg 04-08-2004 05:18 AM

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?

BaPu 04-08-2004 05:34 AM

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

Fr0gg 04-08-2004 05:39 AM

in my .bashrc i don't see any path info though

BaPu 04-08-2004 05:50 AM

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.

BaPu 04-08-2004 05:52 AM

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

Fr0gg 04-08-2004 06:25 AM

alright I'll do that


All times are GMT -5. The time now is 02:14 PM.