Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
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.
|
|
01-19-2006, 06:23 PM
|
#1
|
Member
Registered: Oct 2004
Location: columbus oh
Distribution: mepis
Posts: 109
Rep:
|
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
|
|
|
01-19-2006, 06:41 PM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
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:."
|
|
|
01-19-2006, 06:56 PM
|
#3
|
Member
Registered: Oct 2004
Location: columbus oh
Distribution: mepis
Posts: 109
Original Poster
Rep:
|
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"
|
|
|
01-19-2006, 07:27 PM
|
#4
|
Member
Registered: Oct 2004
Location: columbus oh
Distribution: mepis
Posts: 109
Original Poster
Rep:
|
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
|
|
|
01-19-2006, 07:57 PM
|
#5
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
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
|
|
|
01-19-2006, 08:34 PM
|
#6
|
Member
Registered: Oct 2004
Location: columbus oh
Distribution: mepis
Posts: 109
Original Poster
Rep:
|
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
|
|
|
01-19-2006, 09:08 PM
|
#7
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
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.
|
|
|
01-19-2006, 09:19 PM
|
#8
|
Member
Registered: Oct 2004
Location: columbus oh
Distribution: mepis
Posts: 109
Original Poster
Rep:
|
that worked thanks
thanks again
|
|
|
01-19-2006, 09:22 PM
|
#9
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
No problem
|
|
|
All times are GMT -5. The time now is 05:12 AM.
|
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
|
|