LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-29-2007, 08:03 PM   #1
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Rep: Reputation: 30
java installation


I already downloaded java runtime file, jre-1.5.0-linux-i586-rpm.bin but when i run it from mozilla firefox 2, it prompt "could not be opened,because the associated helper application does not exist. Change the association in your preference." What does it means ?

Rgds
Daniel
 
Old 01-29-2007, 09:22 PM   #2
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 33
How to install java on Fedora:
http://fedoraproject.org/wiki/JavaFA...ab3dc3dca40118

Please visit the FAQ link in my signature. You need it badly.
 
Old 01-30-2007, 08:58 AM   #3
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Sepero
How to install java on Fedora:
http://fedoraproject.org/wiki/JavaFA...ab3dc3dca40118

Please visit the FAQ link in my signature. You need it badly.
I don't know which file should i install. is it the jpackage ?

Rgds
Daniel
 
Old 01-30-2007, 07:32 PM   #4
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 33
Quote:
issue the following command as root:

yum install java-1.4.2-gcj-compat
What part about the instructions on that page do you not understand? I don't see any 'jpackage'.

Last edited by Sepero; 02-01-2007 at 02:06 AM.
 
Old 01-30-2007, 10:15 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Type ./jre-1.5.0-linux-i586-rpm.bin
(Assuming that's the actual name of the file)

Instructions here:

http://www.java.com/en/download/help/5000010500.xml#rpm

Last edited by Junior Hacker; 01-30-2007 at 10:16 PM.
 
Old 01-30-2007, 11:11 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
In my collection of .rpms I have this: jre-1_5_0_09-linux-i586.rpm
I cannot find it through a Google search or at Sun Java's site, I believe I renamed it when I acquired it in the past, removing the .bin, I just tried to install LimeWireLinux on my Fedora 6 x86_64 and got an error because LimeWire requires a minimum java version-1.4, so I went to the directory where that file is and installed it with rpm install command:

rpm -ivh jre-1_5_0_09-linux-i586.rpm

Then installed LimeWireLinux rpm with similar command without error and am downloading. I've always used this particular file when I run into that problem, installing it the same way and everything appears to be cool, one simple command, easy to remove also as it is in rpm data base. I have a multi-boot system with multiple copies of same operating systems for casual use and testing purposes. I'm not saying that is what you should do, but it works for me.

Last edited by Junior Hacker; 01-30-2007 at 11:14 PM.
 
Old 01-31-2007, 09:31 PM   #7
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Junior Hacker
Type ./jre-1.5.0-linux-i586-rpm.bin
(Assuming that's the actual name of the file)

Instructions here:

http://www.java.com/en/download/help/5000010500.xml#rpm
It got error like below after i type that command;
./jre-1_5_0_10-linux-i586-rpm.bin: line 1: syntax error near unexpected token `<'
./jre-1_5_0_10-linux-i586-rpm.bin: line 1: `<HTML><HEAD><TITLE>Error</TITLE></HEAD><BODY>'

Rgds
Daniel
 
Old 01-31-2007, 10:59 PM   #8
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Alright

I was just recommending installation instructions from Sun Java's site based on the name of the file.
Did you try Sepero's quote from his/her second post, I visited that site Sepero mentioned, and that appears to be what you should try. Assuming you are trying to install this in a Fedora system as you did not mention specifically. I know under your distributions list you have Fedora 3 & Solaris, but that's not to say that you are trying to install this in Fedora. As for the "helper application" error you originally got, I'm at a lost.
If you are installing Java because another application you are trying to install asks for a version above 1.4, maybe you should check the update site for your specific distribution and see which is the latest java rpm and attempt to install it, in any case, if this is Fedora 3, try what Sepero says. The jpackage according to the blue jpackage link says it is for building Java packages.
 
Old 02-03-2007, 01:53 AM   #9
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Junior Hacker
Alright

I was just recommending installation instructions from Sun Java's site based on the name of the file.
Did you try Sepero's quote from his/her second post, I visited that site Sepero mentioned, and that appears to be what you should try. Assuming you are trying to install this in a Fedora system as you did not mention specifically. I know under your distributions list you have Fedora 3 & Solaris, but that's not to say that you are trying to install this in Fedora. As for the "helper application" error you originally got, I'm at a lost.
If you are installing Java because another application you are trying to install asks for a version above 1.4, maybe you should check the update site for your specific distribution and see which is the latest java rpm and attempt to install it, in any case, if this is Fedora 3, try what Sepero says. The jpackage according to the blue jpackage link says it is for building Java packages.
ok i read Sepero's post and i try the "yum install java-1.4.2-gcj-compat" but it prompt
'Parsing package install arguments
Nothing to do' .

Rgds
Daniel
 
Old 02-03-2007, 01:55 AM   #10
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Sepero
What part about the instructions on that page do you not understand? I don't see any 'jpackage'.
ok i got the following msg after yum install java-1.4.2-gcj-compat
Parsing package install arguments
Nothing to do
 
Old 02-03-2007, 02:48 AM   #11
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Maybe it's installed already, would have been nice to know which distribution this is.

In Fedora 6, if you go through main menu/system/Add/Remove Software, (while on the internet) and let it scan for a while, (this is yum also), then click on the "List" tab, you would have a large list of packages, the ones with a check mark next to them are packages installed, to remove a package you remove the check mark and hit "Apply". To add a package you put a check mark in the empty box and hit "Apply".
You should have something similar if this is Fedora, check and see what's the scoop, maybe it's already installed which is why you can't install it.
 
Old 02-03-2007, 03:53 AM   #12
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I noticed in your profile you changed from Fedora 3 to Fedora 6.

Here's what I do.

In KDE, click on main menu/system/more applications/File Manager super user mode, go to the directory where you have the jre-1_5_0_10-linux-i586-rpm.bin file, right click on it and select "Rename", change the name so it is like this:

jre-1_5_0_10-linux-i586-rpm

Remove the .bin from it's name. Now from terminal as root, go to the same directory and issue rpm install command as such:

rpm -ivh jre-1_5_0_10-linux-i586-rpm

And hit enter, rpm will install it and that should do it.
 
Old 02-03-2007, 05:06 AM   #13
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 33
Here is a guide to installing Sun's Java.
http://ubuntuguide.org/wiki/Fedora_f...ozilla_Firefox

JH, does "yum search java" list java packages available through yum? The package "java-1.4.2-gcj-compat" might not be available anymore.

The reason I ask is because, if possible, it is always, always, always, better to install from your package manager (yum).
 
Old 02-03-2007, 09:21 PM   #14
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Junior Hacker
I noticed in your profile you changed from Fedora 3 to Fedora 6.

Here's what I do.

In KDE, click on main menu/system/more applications/File Manager super user mode, go to the directory where you have the jre-1_5_0_10-linux-i586-rpm.bin file, right click on it and select "Rename", change the name so it is like this:

jre-1_5_0_10-linux-i586-rpm

Remove the .bin from it's name. Now from terminal as root, go to the same directory and issue rpm install command as such:

rpm -ivh jre-1_5_0_10-linux-i586-rpm

And hit enter, rpm will install it and that should do it.
Sorry for not mentioned which distro I use, just upgraded from fc3 to fc6. After renaming the .bin, it got error
error: open of <HTML><HEAD><TITLE>Error</TITLE></HEAD><BODY> failed: No such file or directory. I try 'java version' and i get the following error message,

Exception in thread "main" java.lang.NoClassDefFoundError: version
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: version not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
 
Old 02-04-2007, 12:36 AM   #15
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Same error you got trying to install it the way Sun Java recommends.

Well, I'm just about out of suggestions, but the more we keep talking about it, the more this thread will be seen as it will stay towards the top of the first page.

Have you tried un-installing the java-1.4.2-gcj-compat via main menu/system/Add\Remove Software by removing the check mark and hit apply, then re-try installing the newer one you have using the two methods starting with the one from Sun Java's site with the link I provided. you can re-name it back to jre-1_5_0_10-linux-i586-rpm.bin to try Sun's instructions. Also, there is a newer version at Sun Java's site, version 1.6 I believe, try it also. If all fails you can turn around and issue command from terminal:

yum install java

Or if that does not work use full name as such:

yum install java-1.4.2-gcj-compat

Last edited by Junior Hacker; 02-04-2007 at 12:38 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java installation??? win2suse Linux - Software 1 08-30-2006 08:45 AM
JAVA JRE installation to view java applet through browser dipenchaudhary Linux - Software 1 01-23-2006 09:20 AM
Java Installation kaplan71 Debian 2 12-30-2005 09:39 AM
java installation Prageem Linux - Software 4 09-20-2005 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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