Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-01-2012, 11:48 AM
|
#16
|
Member
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215
Original Poster
Rep:
|
Here is my output:
Quote:
MyDevNVR:/home/myusername # echo $PATH
/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/myusername/java/jrel.7.0_04/bin
MyDevNVR:/home/myusername # PATH=$(echo $PATH | sed -e 's#:/usr/lib64/jvm/jre/bin/##')
MyDevNVR:/home/myusername # echo $PATH
/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/myusername/java/jrel.7.0_04/bin
|
Anything I'm doing wrong here??
Thanks for your help
|
|
|
06-01-2012, 11:49 AM
|
#17
|
Member
Registered: Jun 2012
Location: Missouri, USA
Posts: 236
Rep:
|
Quote:
Originally Posted by HarryBoy
re: PATH=$(echo $PATH | sed -e 's#:/usr/lib64/jvm/jre/bin/##')
The path did not get removed...
Thanks
|
I thought you will spot the mistake there but you are matching a closing '/' which isn't in the $PATH. So try with
Code:
PATH=$(echo $PATH | sed -e 's#:/usr/lib64/jvm/jre/bin##')
instead of
Code:
PATH=$(echo $PATH | sed -e 's#:/usr/lib64/jvm/jre/bin/##')
|
|
|
06-01-2012, 11:57 AM
|
#18
|
Member
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215
Original Poster
Rep:
|
Here is my output:
Quote:
echo $PATH
/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/myusername/java/jrel.7.0_04/bin
MyDevNVR:/home/myusername # PATH=$(echo $PATH | sed -e 's#:/usr/lib64/jvm/jre/bin/##')
MyDevNVR:/home/myusername # echo $PATH
/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/myusername/java/jrel.7.0_04/bin
|
|
|
|
06-01-2012, 12:00 PM
|
#19
|
Member
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215
Original Poster
Rep:
|
yes your suggestion worked thanks
|
|
|
06-01-2012, 12:14 PM
|
#20
|
Member
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215
Original Poster
Rep:
|
I am back to the same problem I had at the beginning of a previous post grrrr
http://www.linuxquestions.org/questi...ibrary-938046/
If you know how to fix this I am forever in your debt...
Regards..
|
|
|
06-04-2012, 12:35 PM
|
#22
|
LQ Newbie
Registered: Jan 2006
Location: Bel Air MD
Distribution: Fedora
Posts: 16
Rep:
|
Well, you did this:
export PATH=$PATH:/home/myusername/java/jrel.7.0_04/bin
do this instead, putting new path IN FRONT of old path. That'll fix ya!
export PATH=/home/myusername/java/jrel.7.0_04/bin:$PATH
As far as editing the default path is concerned, check for profile files in /etc.
|
|
|
06-04-2012, 12:41 PM
|
#23
|
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,906
|
Wonders why they are messing with $PATH?
it is not that difficult to install Java. and you certainly do not need to be messing with $PATH.
1) Use the package manager your distro comes with
2) failing that follow the steps on Oracle's page
|
|
|
All times are GMT -5. The time now is 03:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|