PDA

View Full Version : Java does not work, tried everything (help will be very appreciated :)



alpha645
23rd November 2006, 06:49 PM
ok, this is the situation: I'm suprised by the power and stability of Fedora. Everything wen't good. Until I wanted to run a java applet. You need to install java for that. I tried 4 different installations (I think). NONE OF THEM WORKED :eek: . Or I might be doing something wrong. Anyway, this is wat I all tried:

- Java installation manual from original Java site (outdated and screwed :eek: )
- Java installation manual from www.mjmwired.com
- Java installation manual from www.fedorafaq.org
- Java installation manual from Stan Finley's site
- Java installation manual from http://forums.fedoraforum.org/showthread.php?t=135568 (sorry Nick :( )

None of them seem to work, or I might be doing something wrong :rolleyes: . I tried to mess around with symlinks and java configurations ;) but that didn't work as well... Please, help me install Java :)

mwette
23rd November 2006, 07:02 PM
I used instructions (for FC5) from fedorafaq (http://www.fedorafaq.org/#java).

alpha645
23rd November 2006, 07:07 PM
That doesn work. It can't even install Java :( The program isn't even available anymore in the repository...

Dan
23rd November 2006, 07:38 PM
OK. first, do you have a Java directory here: /usr/java/jre1.5.0_09 ?

If you do, go to your /home/username/.mozilla/plugins and run the following command as root, from a terminal:
ln -s /usr/java/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so Then shut down your browser, restart it, and have a go at a website that has a java applet to test.

If you don't have the java directory in /usr/, we can fix that too.

Post results please.

Dan

EDIT: Versions corrected!

Dan
23rd November 2006, 08:08 PM
HOLD ON! I Goophed! Lemme edit the above post.

EDIT: OK. Version numbers corrected! Sorry about that!

If this doesn't work, try this thread for directions from scratch!

http://www.fedoraforum.org/forum/showthread.php?t=138594

Dan

alpha645
23rd November 2006, 09:14 PM
I tried the symlink method. Some of the manuals gave a incorrect symlink, I corrected that. Still does not work. Furthermore I even tried to use the plug-in from java's GCC 2.9 compiler (or whatever). I'll try the thread you mentioned, thank :)

alpha645
23rd November 2006, 10:11 PM
Sorry, It still doesn't work. I did not used the minus sign. I created a symlink in the /usr/lib/mozilla/plugin directory, yours didn't work. Perhaps, I made a mistake by adding it to that directory?

Seve
23rd November 2006, 10:16 PM
Hello:
Do you know where you installed jre1.5.0_09 ?

Seve

alpha645
23rd November 2006, 10:27 PM
I think so:

/usr/java/jre1.5.0_09/

That makes the plugin directory:

/usr/java/jre1.5.0_09/plugin/i386/ns7

Right?

I'll try again tommorrow, gotta sleep now :)

Lopov
23rd November 2006, 10:32 PM
I'm guessing he's trying to do the 64bit which doesn't always work. :cool:

Seve
23rd November 2006, 10:32 PM
Hello:
If that is the case then
ln -s /usr/java/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
and or
ln -s /usr/java/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-1.5.0.X/plugins/libjavaplugin_oji.so

Seve

Seve
23rd November 2006, 10:33 PM
I'm guessing he's trying to do the 64bit which doesn't always work. :cool:
Hello:
Good point :)

Seve

Dan
23rd November 2006, 10:33 PM
Hmmm. D'oh! Hadn't though of that. Too much turkey!

Hi Seve, lopov.

Y'all having a good day?

Dan

Lopov
23rd November 2006, 10:43 PM
Hmmm. D'oh! Hadn't though of that. Too much turkey!

Hi Seve, lopov.

Y'all having a good day?

Dan

Yep, having a good day but I'm Canadian, no thanksgiving here right now but Happy Thanksgiving to you guys. :) :cool:

Seve
23rd November 2006, 10:51 PM
Hmmm. D'oh! Hadn't though of that. Too much turkey!

Hi Seve, lopov.

Y'all having a good day?

Dan
Hello Dan:
Hope you are having a great Turkey day. :)
Watched my Lions loose another one ... :eek:

Seve

Dan
23rd November 2006, 10:52 PM
Thanks, lopov

But... some silly difference in calendars shouldn't get in the way of belt-busting gluttony! C'mon guys! There's fresh apple pie in the utility room! Get a plate! :p

Dan

Hi Seve! Yeah! fat dumb and happy right now. Letting the tryptophan do it's magic!

Re: Watched my Lions loose another one ...
Hee hee hee! Just like politicians... doomed to disappoint!

Dan

alpha645
24th November 2006, 07:07 AM
I'm not using 64-bit ;) . I'll try the 2 options Seve gave :)

alpha645
24th November 2006, 07:11 AM
Nope, still doesn't work. I enabled java in Firefox..... . Anymore suggestions ?

Seve
24th November 2006, 07:17 AM
Hello:
At the moment the only suggestion I have is to follow the instructions here: http://stanton-finley.net/fedora_core_5_installation_notes.html#Java
This was written for FC5 however, it is still relevant to FC6, just pay attention to the version of jre that you are using.

Seve

leigh123linux
24th November 2006, 07:29 AM
if you are using 64 bit use this file
http://ftp2.skynet.be/pub/ftp.blackdown.org/JDK-1.4.2/amd64/02/j2re-1.4.2-02-linux-amd64.bin

[leigh@localhost ~]$ su
Password:
[root@localhost leigh]# cd D*
[root@localhost Desktop]# dir
argument j2re-1.4.2-02-linux-amd64.bin output.txt
[root@localhost Desktop]# chmod a+x j2re-1.4.2-02-linux-amd64.bin
[root@localhost Desktop]# cp j2re-1.4.2-02-linux-amd64.bin /opt
[root@localhost Desktop]# cd /opt
[root@localhost opt]# dir
j2re-1.4.2-02-linux-amd64.bin
[root@localhost opt]# ./j2re-1.4.2-02-linux-amd64.bin
Sun Microsystems, Inc.
Binary Code License Agreement
for the
JAVATM 2 RUNTIME ENVIRONMENT (J2RE), STANDARD EDITION,
VERSION 1.4.2_X

SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT

Do you agree to the above license terms? [yes or no]
yes
Verifying archive integrity...OK
Uncompressing Blackdown Java 2 Standard Edition Runtime Environment v1.4.2-02 for Linux/amd64............................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. ...................................
Creating ./j2re1.4.2/lib/rt.jar
Creating ./j2re1.4.2/lib/jsse.jar
Creating ./j2re1.4.2/lib/charsets.jar
Creating ./j2re1.4.2/lib/ext/localedata.jar
Creating ./j2re1.4.2/lib/plugin.jar
Creating ./j2re1.4.2/javaws/javaws.jar
[root@localhost opt]# ln -sf /opt/j2re1.4.2/plugin/amd64/mozilla/libjavaplugin_oji.so /usr/lib64/mozilla/plugins/libjavaplugin_oji.so
[root@localhost opt]#

leigh123linux
24th November 2006, 07:44 AM
edit use jre1.4.3 as jre1.4.2 doesn't work

http://ftp2.skynet.be/pub/ftp.blackdown.org/JDK-1.4.2/amd64/03/j2re-1.4.2-03-linux-amd64.bin

alpha645
24th November 2006, 04:06 PM
okay, it's still doesn't work. I DO NOT USE 64-bit Linux. I have a few questions:

- Do I need to install the plugin into the usr/lib/mozilla directory or in the usr/lib/firefox-1.5.0.8 (I use Firefox 1.5.0.8) ?

- Install Java under su - or su (no '-') ?

- I got java installed under /usr/java/java etc..... Is that correct?

BTW, Stanton Riley's method does not work either :(

mwette
24th November 2006, 04:24 PM
You don't install the plugin you use a symbolic link ("ln -s").
The link should be in /usr/lib/mozilla/plugins. If done right you should be able to check via "ls -l":


# ls -l /usr/lib/mozilla/plugins/libjavaplugin_oji.so
lrwxrwxrwx 1 root root 77 Nov 8 20:13 /usr/lib/mozilla/plugins/libjavaplugin_oji.so -> /usr/lib/jvm/java-1.5.0-sun-1.5.0.09/jre/plugin/i386/ns7/libjavaplugin_oji.so

alpha645
24th November 2006, 04:49 PM
Output:

lrwxrwxrwx 1 root root 58 nov 24 16:47 /usr/lib/mozilla/plugins/libjavaplugin_oji.so -> /usr/java/jre1.5.0_09/plugin/i386/ns7/libjavaplugin_oji.so

Still no Java :(

Dan
24th November 2006, 05:03 PM
okay, it's still doesn't work. I DO NOT USE 64-bit Linux. I have a few questions:

- Do I need to install the plugin into the usr/lib/mozilla directory or in the usr/lib/firefox-1.5.0.8 (I use Firefox 1.5.0.8) ?

- Install Java under su - or su (no '-') ?

- I got java installed under /usr/java/java etc..... Is that correct?

BTW, Stanton Riley's method does not work either :( Whoops! I think I see a problem.

I think your Java is one directory too deep.

the path to your java installation should be:


/usr/java/jre1.5.0_09 Not

/usr/java/java/jre~
Your links may not be hitting the target because of that.

Dan

mwette
24th November 2006, 05:12 PM
What does "ls -l /etc/alternatives/java" give you?

alpha645
24th November 2006, 08:32 PM
To TangledWeb:

I think that is wrong, I think my path gave a wrong impression of the installation:

/usr/java/jre1.5.0_09/plugin/i386/ns7 is the path to the plugin directory so... (sorry)

To mwette

Your command gave:

lrwxrwxrwx 1 root root 35 nov 23 20:08 /etc/alternatives/java -> /usr/lib/jvm/jre-1.4.2-gcj/bin/java

Will that help?

mwette
24th November 2006, 09:59 PM
lrwxrwxrwx 1 root root 35 nov 23 20:08 /etc/alternatives/java -> /usr/lib/jvm/jre-1.4.2-gcj/bin/java


This may be aproblem, but I couldn't tell you why. You mentioned that you
followed instructions from all the recommendations, but did you ever run
the alternatives command?

Also, when you run firefox, what does typing "about:plugins" in the URL
field tell you about java? Does it show anything?

[EDIT the about-plugins should be "about : plugins" without spaces]

alpha645
24th November 2006, 10:12 PM
This may be aproblem, but I couldn't tell you why. You mentioned that you
followed instructions from all the recommendations, but did you ever run
the alternatives command?

Also, when you run firefox, what does typing "about:plugins" in the URL
field tell you about java? Does it show anything?

[EDIT the about-plugins should be "about : plugins" without spaces]

I knew about the plugins command. It doesn't show anything from Java. What about those alternative commands?

ZeusZon
24th November 2006, 10:26 PM
http://clunixchit.blogspot.com/2006/10/fc6-java-plugin-for-firefox.html

In terminal:
mkdir ~/.mozilla/plugins/
ln -s /usr/lib/gcj-4.1.1/libgcjwebplugin.so .mozilla/plugins/

No additonal installs necessary for me.

This instantly works for me in Firefox. There are some security risks mentioned in that link. But I don't mind to take the risk. Just checked a java internet speed test applet and works fine.

Seve
24th November 2006, 10:37 PM
Hello Alpha:
I see you are still at it?

Anyway, the quick fix, if you have not solved this at this point.

Shut down firefox and
Log out of user
and log in as root
then open your file browser [nautilus]
then go to where you installed java jre1.5.0_09
find the plugin directory /jre1.5.0_09/plugin/i386/ns7/
and copy the libjavaplugin_oji.so
to
/usr/lib/mozilla/plugins/
and to
/usr/lib/firefox-1.5.0.8/plugins/

log out of root and log in as user, then open up firefox and type
about:plugins
and see what happens


Seve

Dan
24th November 2006, 11:23 PM
Ya know, Seve,

I'm thinking, "Too many Chiefs, not enough Injuns!" :eek:

And "Too many installs, not enough deletes." :cool:

Therefore, I leave poor Alpha to you. I'm out. :p

P.S. Hope the day is going well!

Dan

Seve
24th November 2006, 11:48 PM
Hello Dan:
Yes, you are probably right.
How is beryl working for you?

The day is going well. :)

Seve

mwette
24th November 2006, 11:50 PM
Hello Alpha:
I see you are still at it?

Anyway, the quick fix, if you have not solved this at this point.

Shut down firefox and
Log out of user
and log in as root
then open your file browser [nautilus]
then go to where you installed java jre1.5.0_09
find the plugin directory /jre1.5.0_09/plugin/i386/ns7/
and copy the libjavaplugin_oji.so
to
/usr/lib/mozilla/plugins/
and to
/usr/lib/firefox-1.5.0.8/plugins/

log out of root and log in as user, then open up firefox and type
about:plugins
and see what happens


Seve

I have had bad luck with copying where instructions say use a symbolic link.
And I agree with our webbed friend, too many installs. I will venture with
the following. There are many places firefox looks for the plugin. My guess
is that one of these locations has an incorrect link and that is hosing everything
up.

Alpha, here is my suggestion. Look in all places where libjavaplugin could be
for firefox. Make sure that you are only tring one location. The possibilities are


/usr/lib/mozilla/plugins/
/usr/lib/firefox-1.5.0.7/plugins/
/usr/lib/firefox-1.5.0.8/plugins/
~/.mozilla/plugins

now, make a symbolic link to the ns7 libjavaplugin_oji.so from /usr/lib/mozilla/plugins

Dan
25th November 2006, 12:11 AM
Hello Dan:
Yes, you are probably right.
How is beryl working for you?

The day is going well. :)

Seve Dunno! haven't installed it yet. Took my favorite girlfriend to lunch, and we wasted a good chunk of the day sitting in a cafe making goofy faces at each other. :p

Maybe tonight I'll get it installed. Gotta admit, this compiz thing is growing on me. :)

Dan
25th November 2006, 06:17 AM
How is beryl working for you?

RE: Beryl.

Holy Striped Yellow Cat-Fuzz! :eek:

Ya gotta know, that for an old smoke-eater, the burn effect was just about all this old f*rt could take, and not squeal with glee! Damn near brought tears to my eyes! :D

Dan

Seve
25th November 2006, 06:49 AM
RE: Beryl.

Holy Striped Yellow Cat-Fuzz! :eek:

Ya gotta know, that for an old smoke-eater, the burn effect was just about all this old f*rt could take, and not squeal with glee! Damn near brought tears to my eyes! :D

Dan
Hello Dan:
Hope you enjoyed lunch :)
Yes, I hadn't tried beryl until yesterday, it has a certain wow factor.

Seve

Dan
25th November 2006, 07:05 AM
Hello Dan:
Hope you enjoyed lunch :)
Yes, I hadn't tried beryl until yesterday, it has a certain wow factor.

Seve Evening Seve,

I certainly did! And it certainly does! Everything good-to-go up North tonight?

Dan

Seve
25th November 2006, 07:09 AM
Hello Dan:
Yes, everything is fine, haven't been feeling too good today. Not sure exactly what the reason for it is ?
Hey, did yo fix up alpha or is he still in the beta phase?

Seve

Dan
25th November 2006, 07:18 AM
Dunno! He seems to be MIA. I'd hate to guess how many Java installs and links he's got scattered hither and yon. Had something similar happened over on Andrew's thread trying to correct the old i586 Anaconda bite, and install nVIDIAdrivers. He was moving a hundred miles per hour, and trying ten things at once, and the whole thing finally gobstopped on him. Sounds like he re-installed 4-5 times.

It's kind of frustrating, though. If you could just reach across the net, and grab their mouse, a two hour problem could be reduced to a thirty second fix. Makes you really respect those poor old phone tech support dweebs! :)

Dan

Dan
25th November 2006, 07:24 AM
haven't been feeling too good today. Not sure exactly what the reason for it is ? Get nailed by a virus, or just the creepin' crud?

Seve
25th November 2006, 08:07 AM
Get nailed by a virus, or just the creepin' crud?
Hello Dan:
Not sure what to say ..... it may be just
the creepin' crud ?

Seve

alpha645
25th November 2006, 03:45 PM
Zeuszon, THANKS ! It worked. 2 simple commands in my console did the trick. And for anyone else who tried to help, thank you :)

ZeusZon
26th November 2006, 01:24 AM
I'm pleased it worked out for you.

John the train
28th November 2006, 09:26 PM
Thanks, Alpha645, seve, TangledWeb ( hi Dan! ) mwette and ZeusZon. I was having some serious frustration getting Java installed, following this thread I found an answer that worked for me. I went into the .../java/ directory as root and was able to create a symlink, then moved that physically, first to /home/, then on down into /mozilla/plugins. Came out, re-started Firefox, ' about:plugins ' and bingo, we have Java! Thanks again guys.

Dan
28th November 2006, 11:41 PM
You're welcome, John. :)