LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-13-2003, 12:16 PM   #1
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Rep: Reputation: 15
Question I totally can not get Java to run (Help!!)


Hi

Last question (I promise). I have for months now, attempted to get Java installed and running on my RedHat 9.1 box and it's been an effort in futility. Even when I use the "plugin finder" from Netscape's site, it always downloads and then tells me "permission denied" - even when I do this from root. What's more is that when I install the BIN file and go that route, I'm STILL not able to run Java applications either through a website or locally. I've about given up on this but thought I'd give it one more shot if any of you geniouses out there care to help a frustrated old man:-).

Thank's!
 
Old 07-13-2003, 12:21 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Go to Java.sun.org and get the 1.4.2 JRE linux .rpm.bin file. Follow the instructions. Check you've got the link to the java VM in your browser's plugin's folder.
 
Old 07-13-2003, 12:27 PM   #3
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
Java.sun.org takes me to a site that say's it's for sale...hmmm....

Last edited by TippyToes; 07-13-2003 at 12:29 PM.
 
Old 07-13-2003, 12:31 PM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
java.sun.com then

Specifically the links are here

Last edited by Proud; 07-13-2003 at 12:36 PM.
 
Old 07-13-2003, 12:40 PM   #5
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
1) First I have to fill out a lengthy form and "register"
2) Then I have to receive the email and verify
3) Next, I have to reply to that email
4) Wait for another email containing information
5) Download the Java SDK (Yeah, if I can FIND IT)
6) Take a 4 year course in advanced scripting
7) Install Java if I'm not to old by then

Thank's but I prefer my Java installations to be easy and pain-free. Sort of like heart surgery only at least they give you an anesthetic first!.
 
Old 07-13-2003, 12:43 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
No no no, not the Standard Developer Kit, just the Java Runtime Environment. Try this.

I used the SDK coz I need to learn Java for Uni.
And that email thing is voluntary, there was a link at the top to skip it iirc.

Last edited by Proud; 07-13-2003 at 12:47 PM.
 
Old 07-13-2003, 01:05 PM   #7
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
Hey Proud...

Ok, I downloaded the file. Do I need to just click on it from root or what exactly to I do with it?. Also what really confuses me is how to add a link to my browser's plugin's folder. How do I do this?

Thank's btw...

Last edited by TippyToes; 07-13-2003 at 01:09 PM.
 
Old 07-13-2003, 01:24 PM   #8
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
Ok, heres what I did and I can run Java applets and such in root but when I try to run them in the user mode, I get a message telling me that I need to install a plugin and I already did that!. Also, I still have no idea how to create a plugin link in my browser (Mozilla) or where I would find the "VM" itself to create such a link or wether the link would be an URL or a path. Anyway here you go...

For inquiries please contact: Sun Microsystems, Inc., 4150
Network Circle, Santa Clara, California 95054, U.S.A.
(LFI#124423/Form ID#011801)

Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: j2re-1_4_1_03-fcs-linux-i586.rpm
Done.
[root@localhost bandit]# ./j2re-1_4_1_03-fcs-linux-i586.rpm
bash: ./j2re-1_4_1_03-fcs-linux-i586.rpm: cannot execute binary file
[root@localhost bandit]# rpm -q j2re-1_4_1_03-fcs-linux-i586.rpm
package j2re-1_4_1_03-fcs-linux-i586.rpm is not installed
[root@localhost bandit]#

Could it be that I'm trying to run an i586 instead of an i386 file?

- Still very confused

Last edited by TippyToes; 07-13-2003 at 01:28 PM.
 
Old 07-13-2003, 01:36 PM   #9
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
You dont run the file to install it. Try the official instructions.
I found the installation automatically added the symbolic link and changed other things, so I didnt need to do anything after the rpm command

If you have a processor better than I think a P2, then you have at least i586 architecture and can run i586, i386 and all below.

Last edited by Proud; 07-13-2003 at 01:41 PM.
 
Old 07-13-2003, 02:13 PM   #10
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
It's installed...it is not installed...it's installed...it is not...er...well...see for yourself (this thing can't seem to make up it's mind)...

[bandit@localhost bandit]$ su
Password:
[root@localhost bandit]# rpm -iv j2re-1_4_1_03-fcs-linux-i586.rpm
Preparing packages for installation...
package j2re-1.4.1_03-fcs is already installed
[root@localhost bandit]# rpm -e j2re-1_4_1_03-fcs-linux-i586.rpm
error: package j2re-1_4_1_03-fcs-linux-i586.rpm is not installed
[root@localhost bandit]#

Last edited by TippyToes; 07-13-2003 at 02:17 PM.
 
Old 07-13-2003, 02:23 PM   #11
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Man rpm says:

From erasing/uninstalling packages, use the PACKAGE_NAME not PACKAGE_FILE, so without the i586.rpm etc stuff.
So it seems to be installed. Next exact problem?

Last edited by Proud; 07-13-2003 at 02:25 PM.
 
Old 07-13-2003, 02:42 PM   #12
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
Well, I was able to uninstall the old one and install the new but when I go to a site that uses Java, I still get the same old message telling me that I need to install the Java-application/X mime thingy. Here the printout...

[bandit@localhost bandit]$ su
Password:
[root@localhost bandit]# rpm -e j2re
[root@localhost bandit]# rpm -iv j2re-1_4_1_03-fcs-linux-i586.rpm
Preparing packages for installation...
j2re-1.4.1_03-fcs
[root@localhost bandit]#

What now?
 
Old 07-13-2003, 03:02 PM   #13
Tuvok
Member
 
Registered: Mar 2003
Distribution: FreeBSD 6.1, NetBSD 3.0.1
Posts: 170

Rep: Reputation: 30
TippyToes,

Since Mozilla is in constant development with new releases in every few months, I generally install it in my home directory. This is how I do it, plus installing java:

1.Download the latest Mozilla (get Mozilla 1.3.1, Mozilla 1.4 has issues with java).
2.Extract it in your home directory.
3.Click the "mozilla-installer" directory, click the "mozilla-installer" Shell script which will open a "Mozilla installer" window.
4.Click "Next"->"Accept"->"Change" for the destination directory and make the directory /home/TippyToes/mozilla.
5.Click "Next"->"Yes" and finally "Ok".
6.Visit a site which requires java, a window with "Default plugin" will pop-up, follow instructions to install java.
7. Once done, make a link (with icon) of your new installed Mozilla on taskbar, desktop and menus.

Notice: you don't need to be a root to do all those.
Good luck.
 
Old 07-13-2003, 03:16 PM   #14
TippyToes
Member
 
Registered: Jun 2003
Posts: 130

Original Poster
Rep: Reputation: 15
I am using Mozilla 3.1 and I just went to a site (javaboutique.com) and tried to display a Java applet which is when I was proposed to download the Java plugin. However, after downloading it, I received a message that said "permission denied". This has happened to me a number of times before too. Any suggestions?. This is really getting to be a hassle.

Last edited by TippyToes; 07-13-2003 at 03:22 PM.
 
Old 07-13-2003, 03:28 PM   #15
Tuvok
Member
 
Registered: Mar 2003
Distribution: FreeBSD 6.1, NetBSD 3.0.1
Posts: 170

Rep: Reputation: 30
TippyToes,

You didn't get me right; your Mozilla has been installed as "root"; mine was installed as "user" (i.e. Tuvok). Your mozilla was probably installed in the "/etc/local" directoy or another. I installed my Mozilla in my home director "/home/tuvok." When I install Mozilla, I never need to log as "root" to install anything. Do you get it? If you follow my how-to, install it in your home director, you should be able to install java without hickups.
 
  


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
User account goes totally bonk, no applications can run anymore. Baldorg Linux - General 5 07-28-2005 11:51 AM
compile and run java pelegk2 Programming 3 10-05-2004 09:28 AM
Getting Java Runtime To Run tsuehpsyde Fedora 2 05-03-2004 12:54 AM
Mozilla 1.5 and Java (totally exasperating!) TippyToes Linux - Software 2 01-06-2004 04:57 AM
Java applets run fine in Konqueror, but won't run in MS IE. OAnimal Linux - Software 7 12-04-2002 06:32 AM

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

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