LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-19-2006, 06:23 PM   #1
davidleroux1
Member
 
Registered: Oct 2004
Location: columbus oh
Distribution: mepis
Posts: 109

Rep: Reputation: 15
export path command


I am installing java for azureous
when I add my link to the java plugin
the mozilla brouser does not start.
I think this is because java
is not set up right in the path

I think (99% sure) I installed java as root
so as a non root user
I open a konsole
and in bash I type

$PATH="$PATH:/usr/java/jre1.5.0_06/bin:."
$export PATH
$java -version

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

I then re-open a konsole or even do (session new knosole)
then I type

$ java -version
bash: java: command not found
 
Old 01-19-2006, 06:41 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The changes you made to your path only last for that session. To make the changes permanent, you need to add the following line to either /etc/profile or ~/.bash_profile (~ means your home directory):

Code:
export PATH="$PATH:/usr/java/jre1.5.0_06/bin:."
 
Old 01-19-2006, 06:56 PM   #3
davidleroux1
Member
 
Registered: Oct 2004
Location: columbus oh
Distribution: mepis
Posts: 109

Original Poster
Rep: Reputation: 15
I think found the right file in my home directory
so I added the code but I think I
have to reboot to activate.
There must be another command to
use so I dont have to reboot

I tried export path but didnt work

also

I also was not sure about the /etc/profile
I think this is the right profile.

it looks like this, is this the right file?

# /etc/profile -*- Mode: shell-script -*-
# (c) MandrakeSoft, Chmouel Boudjnah <chmouel@mandrakesoft.com>

loginsh=1

# Users generally won't see annoyng core files
[ "$UID" = "0" ] && ulimit -S -c 1000000 > /dev/null 2>&1

if ! echo ${PATH} |grep -q /usr/X11R6/bin ; then
PATH="$PATH:/usr/X11R6/bin"
 
Old 01-19-2006, 07:27 PM   #4
davidleroux1
Member
 
Registered: Oct 2004
Location: columbus oh
Distribution: mepis
Posts: 109

Original Poster
Rep: Reputation: 15
firefox does not open

I can now see java if I open a konsole

but firefox does not open if I put a link

ln -s /usr/java/jre1.5.0_06/plugin/i386/ns7-gcc29/libjavaplugin_oji.so

in either directory

/usr/lib/mozilla-firefox-1.0.6/plugins

or this one

/usr/lib/mozilla/plugins
 
Old 01-19-2006, 07:57 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
No, you don't have to reboot for changes to your profile to take effect. Use one of the following source or '.' commands:

Code:
source /etc/profile
. /etc/profile
source ~/.bash_profile
. ~/.bash_profile
 
Old 01-19-2006, 08:34 PM   #6
davidleroux1
Member
 
Registered: Oct 2004
Location: columbus oh
Distribution: mepis
Posts: 109

Original Poster
Rep: Reputation: 15
what about the plugin

the java works now from the shell but

not in fire fox

see my last post about the link to the plugin
 
Old 01-19-2006, 09:08 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Try removing the link to /usr/java/jre1.5.0_06/plugin/i386/ns7-gcc29/libjavaplugin_oji.so and using a link to /usr/java/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so instead.
 
Old 01-19-2006, 09:19 PM   #8
davidleroux1
Member
 
Registered: Oct 2004
Location: columbus oh
Distribution: mepis
Posts: 109

Original Poster
Rep: Reputation: 15
that worked thanks

thanks again
 
Old 01-19-2006, 09:22 PM   #9
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
No problem
 
  


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
export PATH Question Loosewheel Linux - Software 5 01-18-2006 02:44 PM
PATH export in etc/profile.local adds dir twice tongar Linux - Newbie 3 06-16-2005 04:56 PM
export $PATH inside script gmitra Programming 3 02-01-2005 09:34 AM
'export PATH' does not work lemuel Linux - Newbie 7 01-30-2005 12:39 PM
export PATH disappears twallstr Linux - General 4 12-13-2004 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:12 AM.

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