Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-14-2007, 08:22 AM   #1
usual suspect
 
hobey19's Avatar
 
Join Date: Jun 2002
Location: not here
Posts: 2,051
ubuntu - java doesn't work

i have installed Java runtime environment based on the directions on ubuntu guide but whenever i load a page in firefox requiring java (ie logmein), i get the pop-down saying additional plugins are needed. i hit install, and then it says that it cannot automatically install it, and wants me to manually install it. i know java is installed because it shows up under Applications->Internet.

any advice is appreciated
craig
__________________
the universe is against this current wave of success i'm having. -johnny drama, entourage
hobey19 is offline   Reply With Quote
Old 02-14-2007, 11:44 AM   #2
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
When you installed Java, did you get the agreement popup? If not, try reinstalling it.
faulkner132 is offline   Reply With Quote
Old 02-14-2007, 11:59 AM   #3
Member (11 bit)
 
Join Date: Apr 2003
Posts: 1,525
I read through your guide quickly, but I believe it specifically says that it will not update your browser plugins. If you look in /usr/lib/jvm/jre1.6.0/plugin/i386/ns7 you will see a file named "libjavaplugin_oji.so". You have to create a link to that file in your mozilla/plugins directory. I don't know where that firefox plugin directory is located in ubuntu as I don't have it installed at the moment. It's usually in /usr/lib/mozilla-firefox or /usr/lib/mozilla. But no matter where it is, the idea is the same; you have to create that link to libjavaplugin_oji.so in the firefox plugin directory and java will then work in firefox.
kilgoretrout is offline   Reply With Quote
Old 02-14-2007, 12:56 PM   #4
usual suspect
 
hobey19's Avatar
 
Join Date: Jun 2002
Location: not here
Posts: 2,051
faulkner: yes, i did get the agreement, it took over the terminal window until i agreed

kilgoretrout: i never did that, but it must have at some point, because libjavaplugin_oji.so is in the plugins folder

thanks

craig
hobey19 is offline   Reply With Quote
Old 02-14-2007, 03:03 PM   #5
Member (8 bit)
 
jglen490's Avatar
 
Join Date: Mar 2002
Location: An ancient aircraft hangar.
Posts: 185
If you go into Firefox and in the URL entry box you type in:

Code:
about:plugins
does java show up. If not then the soft link is not set up correctly. Come on back, either way .
jglen490 is offline   Reply With Quote
Old 02-14-2007, 04:03 PM   #6
usual suspect
 
hobey19's Avatar
 
Join Date: Jun 2002
Location: not here
Posts: 2,051
nope, its not in there. what is the best way to go about making that link properly? thanks for the help jglen, its much appreciated

craig
hobey19 is offline   Reply With Quote
Old 02-14-2007, 09:28 PM   #7
Member (8 bit)
 
jglen490's Avatar
 
Join Date: Mar 2002
Location: An ancient aircraft hangar.
Posts: 185
Sorry for the delay, it's been a busy day!

I would like you to open a terminal and cd to the /etc/alternatives directory. Then enter the following shown in BOLD:


Code:
john@john-laptop:/etc/alternatives$ ls -al fire*
lrwxrwxrwx 1 root root 59 2006-12-31 00:31 firefox-homepage -> /usr/share/doc/kde/HTML/en/kubuntu/about-kubuntu/index.html
lrwxrwxrwx 1 root root 56 2006-12-31 00:31 firefox-homepage-locales -> /usr/share/doc/kde/HTML/en/kubuntu/about-kubuntu/locales
lrwxrwxrwx 1 root root 68 2007-01-03 22:49 firefox-javaplugin.so -> /usr/lib/jvm/java-1.5.0-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so
john@john-laptop:/etc/alternatives$
If your results are the same then someting really fishy is going on, or perhaps you pulled down the wrong Ubuntu package. You can still recover by checking to ensure that you actually do have the libjavaplugin_oji.so library file by entering the following as shown in BOLD:

Code:
john@john-laptop:/etc/alternatives$ sudo find / -name libjavaplugin*
/usr/lib/firefox/plugins/libjavaplugin.so
/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386/libjavaplugin_jni.so
/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386/libjavaplugin_nscp_gcc29.so
/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386/libjavaplugin_nscp.so
/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so
/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/mozilla/plugins/libjavaplugin.so
/usr/lib/mozilla-snapshot/plugins/libjavaplugin.so
Again see if the response is similar. I suspect it may show a different path to the libjavaplugin_oji.so file. If so make note of the actual location, or highlight and copy the path name that shows "/i386/ns7/" without the "gcc29" part.

Now cd to your mozilla plugins directory as shown:

Code:
john@john-laptop:~/.mozilla$ cd ~/.mozilla/plugins
john@john-laptop:~/.mozilla/plugins$ ls -a
.  ..  .DS_Store  flashplayer.xpt  libflashplayer.so  libnpsoplugin.so
john@john-laptop:~/.mozilla/plugins$
within that directory, enter (and replace my PATH with yours):

Code:
ln -s /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/plugin/i386/ns7/libjavaplugin_oji.so
Enter:

ls -al

and you should see a the link show up.

Go back to Firefox and in the URL box enter:

Code:
about:plugins
and hopefully it will show up in the plugins list.

If it doesn't, then go back to Ubuntu and pull down the Firefox Java Plugins file again.

Good luck, and happy Linux work!
jglen490 is offline   Reply With Quote
Old 02-14-2007, 10:21 PM   #8
usual suspect
 
hobey19's Avatar
 
Join Date: Jun 2002
Location: not here
Posts: 2,051
the link was not there, and i made the link as you said, but it still isn't in aboutlugins

i tried to install the plugin to no avail. i am probably going to remove all the java packages tomorrow and start from scratch. thanks for all your help

craig
hobey19 is offline   Reply With Quote
Old 02-15-2007, 08:01 AM   #9
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
Go to the terminal and type:
Code:
sudo firefox
This will open Firefox with root permissions.

Now go install the Java plugin from Sun's site and then close the browser once installation is complete.
faulkner132 is offline   Reply With Quote
Old 02-15-2007, 03:25 PM   #10
usual suspect
 
hobey19's Avatar
 
Join Date: Jun 2002
Location: not here
Posts: 2,051
sorry for taking so long to get back to you, i didn't get an email saying someone had responded. i ended up completely removing everything and reinstalling and remaking the link, and all is well. i swear i didn't do anything differently, but apparently i did.

thanks for all of your help
craig
hobey19 is offline   Reply With Quote
Old 02-15-2007, 03:33 PM   #11
Member (8 bit)
 
jglen490's Avatar
 
Join Date: Mar 2002
Location: An ancient aircraft hangar.
Posts: 185
Sometimes stuff just happens like that. Glad you're now on your way.
jglen490 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sun Java doesnt work(grey boxes with nothing) lostplanet Web Design / Development 4 06-07-2005 04:24 PM
Port access from Java mattg2k4 Web Design / Development 0 02-25-2004 02:48 AM
newbie needs help with java scarruth2 Internet, Web Applications, & The Cloud 2 02-21-2004 04:48 PM
Java scarruth2 Web Design / Development 0 02-20-2004 04:55 AM
Microsoft Wins Stay on Order to Add Java morriswindgate General Discussion 7 02-05-2003 09:34 AM


All times are GMT -5. The time now is 05:58 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2