LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-25-2004, 03:08 AM   #1
barrys
Member
 
Registered: Sep 2003
Location: London
Distribution: Susi 9.1, Man10 amd64, Man10.1
Posts: 243

Rep: Reputation: 30
java on firefox path missing?


I have downloaded the java on firefox on Madrake 10.0 beta 2 and still cannot get it to work.

Somewhere, someone must have got this to work? In both Mozilla and Firefox I have the plugin in the plugin directory.

I have tried to load other j2re apps and I get the message java command not found and to specify the full path to the Sun JRE java command.

This leads me to believe that my problem is that the rpm loading has not modfied my path to add the java directory.

Anyone, know how to change this as I am not sure how to modify the path, or am I following the wrong track?
 
Old 02-25-2004, 06:29 AM   #2
Ice9
Member
 
Registered: Jun 2002
Location: Belgium
Distribution: Sidux
Posts: 313

Rep: Reputation: 30
You have to specify the path to java in your .bash_profile

Edit the .bash_profile file (is located in your home/your_id directory
$ kwrite .bash_profile

Add the line
/usr/java/j2reversionnumber/bin
to your path.

Also don't forgtet to create symbolic links to the java executables in /usr/bin
# cd /usr/bin
# ln -s /usr/java/j2reversionnumber/bin/* /usr/bin

It should work now, to check

# su to normal user
$ which java

You should get something like

[user@localhost user]$ which java
/usr/bin/java
 
Old 03-22-2004, 01:03 AM   #3
Cerb
LQ Newbie
 
Registered: Mar 2004
Location: Belgium
Distribution: Mandrake 9.1
Posts: 12

Rep: Reputation: 0
Quote:
Originally posted by Ice9
You have to specify the path to java in your .bash_profile

Edit the .bash_profile file (is located in your home/your_id directory
$ kwrite .bash_profile

Add the line
/usr/java/j2reversionnumber/bin
to your path.

Also don't forgtet to create symbolic links to the java executables in /usr/bin
# cd /usr/bin
# ln -s /usr/java/j2reversionnumber/bin/* /usr/bin

It should work now, to check

# su to normal user
$ which java

You should get something like

[user@localhost user]$ which java
/usr/bin/java

You say add the line /usr/java/j2reversionnumber/bin

My .bash_profile
Quote:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
~
~
~
So where do i add in that line? Sorry for the beginners question but i'm really sucky in this things
 
Old 03-22-2004, 02:51 AM   #4
Ice9
Member
 
Registered: Jun 2002
Location: Belgium
Distribution: Sidux
Posts: 313

Rep: Reputation: 30
Well, you see that you already have a line that mentions a path.
Simply add another one under the one you already have, like this

PATH=$PATH:$HOME/bin
PATH=$PATH:$/usr/java/j2revisionnumber/bin

and don't forget to substitute the actual revision number of your java environment!!
My path looks like this

PATH=$PATH:$HOME/bin
PATH=$PATH:$/usr/java/j2re1.4.2_03/bin
 
Old 03-22-2004, 06:09 AM   #5
Cerb
LQ Newbie
 
Registered: Mar 2004
Location: Belgium
Distribution: Mandrake 9.1
Posts: 12

Rep: Reputation: 0
I've done all these things and still Java is not working


Don't know what to do now
 
Old 03-22-2004, 07:10 AM   #6
Ice9
Member
 
Registered: Jun 2002
Location: Belgium
Distribution: Sidux
Posts: 313

Rep: Reputation: 30
If you type
which java
in a terminal, what does it return?

Also, you say you've got the plugins in your plugin directories for both Mozilla and Firefox?
Which file did you make the symbolic link point to?
Does java work in Mozilla?

Last edited by Ice9; 03-22-2004 at 07:34 AM.
 
Old 03-23-2004, 06:02 AM   #7
Cerb
LQ Newbie
 
Registered: Mar 2004
Location: Belgium
Distribution: Mandrake 9.1
Posts: 12

Rep: Reputation: 0
not much i think he don't knows the command wich, but i'm tryong to instal a VM not a plugin for mozilla
 
Old 03-23-2004, 06:25 AM   #8
Ice9
Member
 
Registered: Jun 2002
Location: Belgium
Distribution: Sidux
Posts: 313

Rep: Reputation: 30
hmmm, I thought you were trying to get java to work with firefox.
Anyway, go to my tips section, scroll down a little and if you follow the instructions for installing the java VM it should work, I did it countless times and several people have followed these instructions and had it to work.

Open a terminal window and type
$ rpm -qa j2r*
It should return something like
$ rpm -qa j2r*
j2re-1.4.2_03-fcs

If it doesn't return anything you didn't install the j2re rpm or something went wrong during the install.

Uninstall it with
rpm -e j2re-1.4.2_03-fcs (substitute your own revision number here)

And then follow the instructions from my tips section, it should work.
 
Old 03-23-2004, 07:02 AM   #9
Cerb
LQ Newbie
 
Registered: Mar 2004
Location: Belgium
Distribution: Mandrake 9.1
Posts: 12

Rep: Reputation: 0
Quote:
Originally posted by Ice9
hmmm, I thought you were trying to get java to work with firefox.
Anyway, go to my tips section, scroll down a little and if you follow the instructions for installing the java VM it should work, I did it countless times and several people have followed these instructions and had it to work.

Open a terminal window and type
$ rpm -qa j2r*
It should return something like
$ rpm -qa j2r*
j2re-1.4.2_03-fcs

If it doesn't return anything you didn't install the j2re rpm or something went wrong during the install.

Uninstall it with
rpm -e j2re-1.4.2_03-fcs (substitute your own revision number here)

And then follow the instructions from my tips section, it should work.

Oké in will try
 
Old 03-23-2004, 07:58 AM   #10
Cerb
LQ Newbie
 
Registered: Mar 2004
Location: Belgium
Distribution: Mandrake 9.1
Posts: 12

Rep: Reputation: 0
Ice9 thx man i'm not the easyest person in the world when it comes to Linux but you made linux live a little easyer for me, many many thanks i got java working in no time with your help.



Echt bedankt he (ik merkte dat je belg bent ;-) )
 
Old 03-23-2004, 08:02 AM   #11
Ice9
Member
 
Registered: Jun 2002
Location: Belgium
Distribution: Sidux
Posts: 313

Rep: Reputation: 30
No problemo, glad I could help.

I'm from Belgium yes, but I could be speaking french ....
But I'm not

Anyway, graag gedaan!
 
  


Reply



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
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Firefox + Java (*Missing Plugins? wtf*) itz2000 Linux - Software 20 11-02-2005 11:34 AM
Path to java mherring Linux - Software 1 05-04-2005 07:11 PM
firefox realplayer plugin PATH edM Slackware 6 02-18-2005 06:24 PM
Java can't find package, but PATH set correctly (j2se1.4.0, java.util.regex package) Ethan Programming 5 02-06-2004 09:55 PM

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

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