LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-01-2012, 11:48 AM   #16
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16

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
 
Old 06-01-2012, 11:49 AM   #17
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
Posts: 236

Rep: Reputation: 64
Quote:
Originally Posted by HarryBoy View Post
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/##')
 
Old 06-01-2012, 11:57 AM   #18
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
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
 
Old 06-01-2012, 12:00 PM   #19
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
yes your suggestion worked thanks
 
Old 06-01-2012, 12:14 PM   #20
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Original Poster
Rep: Reputation: 16
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..
 
Old 06-01-2012, 06:45 PM   #21
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,906
Blog Entries: 29

Rep: Reputation: 537Reputation: 537Reputation: 537Reputation: 537Reputation: 537Reputation: 537
Have you tried just following the instructions from Oracle?

How do I download and install Java for my Linux computer? - https://www.java.com/en/download/help/linux_install.xml

What are the Linux x64 self-extracting binary installation instructions for Java ? - https://www.java.com/en/download/hel...64_install.xml

Or using YAST?

Release Notes for SUSE Linux Enterprise Desktop 11 - http://www.novell.com/linux/releasen...SE-SLED/11/#37
 
Old 06-04-2012, 12:35 PM   #22
dgodbey
LQ Newbie
 
Registered: Jan 2006
Location: Bel Air MD
Distribution: Fedora
Posts: 16

Rep: Reputation: 1
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.
 
Old 06-04-2012, 12:41 PM   #23
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,906
Blog Entries: 29

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


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
[SOLVED] Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ... chytraeus Slackware 10 11-27-2010 11:04 AM
Created USB bootable Ubuntu persistent install Cant install Java murph98 Linux - Newbie 3 05-26-2008 08:09 AM
I am trying to install Java on Ubuntu. How to install it? ussr_1991 Linux - Software 4 07-24-2007 02:50 PM
java does not install in opt but install in usr bbmak Linux - Software 6 10-03-2005 12:13 AM
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:17 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