LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-20-2009, 02:19 PM   #1
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Rep: Reputation: 25
Symlink for Java on Debian Lenny


I am a bit confused on how Web Browsers find the plugins for Java ? Also, where are those plugins ? Finally, what type of configuration do I need for my web browser to perfectly work with Java ?

I have installed Java-6-openjdk for a couple of my apps that needed Java to run. I haven't got any problem at all there

I modify /etc/profile as such
1 put the Java binary path into my PATH --> /usr/lib/jvm/java-6-openjdk/jre/bin
2 used the JAVA_HOME command

That did it just fine for my apps

Then I was browsing a bit and suddenly stumbled upon a website that I couldn't actually open due to a lack of java plugins.

Now I have read in many places that I would need to create a symlink of the java path and put into /usr/local/bin for my web browser to use those plugins

1 Would that really be necessary ?
2 Would the plugins actually be in the java binary ? or Would I have to create a symlink for another Java folder ?
3 Finally, where would be the best place to actually put the symlink ? I have read that people put that kind of symlink into /usr/local/bin. What about you Guys ?

Thanking you for your help

Last edited by riganta; 01-20-2009 at 02:19 PM. Reason: clarity
 
Old 01-21-2009, 07:24 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Where you put the symlink will depend on how you have your system configured and which web browser you use. What you have to symlink to is /usr/lib/jvm/java-6-openjdk/jre/plugin/i386/ns7/libjavaplugin_oji.so. If you are using firefox you can put the link in /home/<username>/.mozilla/plugins and java will work for that user. However, most distros have configured the default web broser to look in certain directories for their plugin links so you don't have to separately create links for every user.
 
Old 01-21-2009, 08:13 AM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
apt-get install openjdk-6-jre icedtea-gcjwebplugin

or use Sun's Java apt-get install sun-java6-jre sun-java6-plugin

Either way you shouldn't have to mess with making symlinks.
 
1 members found this post helpful.
Old 01-21-2009, 09:49 AM   #4
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
May be slightly irrelevant but here it goes.

I use alternatives quite often to manager such stuff (specially in case of multiple instances of same program).

It provides a handy way of handling sym-links using master-slave relations.

Code:
man update-alternatives
 
Old 01-21-2009, 12:35 PM   #5
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by craigevil View Post
apt-get install openjdk-6-jre icedtea-gcjwebplugin

or use Sun's Java apt-get install sun-java6-jre sun-java6-plugin

Either way you shouldn't have to mess with making symlinks.
Thanks 'craigevil' got it working now by installing icedtea-gcjwebplugin without having to create a symlink for Java.
 
Old 02-20-2009, 01:12 PM   #6
columbiasts1
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian stable
Posts: 29

Rep: Reputation: 15
craigevil:

May I ask where you found the information regarding the gcjwebplugin and how to link it to the browser. I have read countless pages of documentation, Googled, etc and finally found this post telling how to install the plugin. I had just recently upgraded to Debian 5.0 and installed the openjdk-6 and never found anything stating how to link your browser to the plugin. Any help would be appreciated.

By the way: Your suggestion worked for me as well.

~Thanks
 
Old 02-20-2009, 03:24 PM   #7
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
apt-cache search java
 
Old 03-10-2010, 11:50 AM   #8
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Rep: Reputation: 17
This will not work with Debian Lenny, Firefox, and manually download the latest Java plugin file.

You have to following these instruction instead.

https://jdk6.dev.java.net/plugin2/#INSTALLATION

Unix Platforms (Solaris and Linux)

Place a symlink to .../jre/lib/{i386,sparc}/libnpjp2.so into either your Firefox 3 firefox/plugins directory or your ~/.mozilla/plugins directory. Remove any stray preexisting symlinks to the libjavaplugin_oji.so library.

You may switch back to using the classic Java Plug-In by removing the symlink to libnpjp2.so and reinstalling a symlink to libjavaplugin_oji.so from the same JRE.

Thanks, Lex
 
Old 03-10-2010, 02:37 PM   #9
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Quote:
This will not work with Debian Lenny, Firefox, and manually download the latest Java plugin file.
What do you mean this will not work with Lenny?.

Last edited by the trooper; 03-10-2010 at 02:41 PM.
 
Old 03-11-2010, 09:22 AM   #10
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Rep: Reputation: 17
the trooper, this does not work with Firefox 3.6. If you have a Firefox < 3.6 the solutions above will work. In this thread many tried but they also failed and this is what I experiencing.

http://www.pubbs.net/firefox/201001/52395/

or this with no reply

http://forums.sun.com/thread.jspa?threadID=5284744

I tried it with the latest Firefox and it does not work. What I mentioned above almost worked, linking to "libnpjp2.so" but in the end it does not work either. I might go back to an older Firefox since I do need the Java plugin to work. If I find a solution I will post.
 
Old 03-11-2010, 10:01 AM   #11
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Rep: Reputation: 17
[ SOLUTION SOLVED ]
Here is the solution.

Download the latest Java Runtime Environment at the time of writing this [2010/March/11]it was jre-6u18-linux-i586.bin. I have a 32 bit install of Debian Lenny environment.


Move the file to this directory /usr/lib/jvm/ if it does not exist create it like this.

Code:
sudo mkdir /usr/lib/jvm/
Move the downloaded plug-in to “/usr/lib/jvm/ “
Code:
 sudo  mv  jre-6u18-linux-i586.bin /usr/lib/jvm/
Change to where you moved the file
Code:
 sudo  cd /usr/lib/jvm/
Make it executable
Code:
 sudo  chmod a+x  jre-6u18-linux-i586.bin
Execute it
Code:
 sudo  ./jre-6u18-linux-i586.bin
Hit enter until you get to the end of the you better agree to this stuff and type “yes”

Update Alternatives
Code:
sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 50
Go to Firefox plug-ins install directory. This might not be the same place as mine “/opt/firefox/plugins”
Code:
sudo cd /opt/firefox/plugins
Make a symbolic link in your Firefox install directory
Code:
sudo ln -s /usr/lib/jvm/jre1.6.0_10/lib/i386/libnpjp2.so
Test
http://time.gov/timezone.cgi?Eastern/d/-5/java#

You will see the time.

You can do this also but it did not work for me.

http://java.com/en/download/help/lin...all.xml#enable
“If you install Firefox 1.5 or later, you can enable the Java Console menu item in the Tools menu. Change directories to the Firefox extensions directory, then unzip ffjcext.zip there.
cd /usr/lib/firefox-1.4/extensions
unzip /usr/java/jre1.6.0/lib/deploy/ffjcext.zip
 
1 members found this post helpful.
  


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
Updating Debian Etch to Debian Lenny bartock Debian 4 02-09-2008 08:15 AM
Where do I put the symlink to java rickh Debian 6 05-09-2005 06:22 AM
trouble creating symlink for java/mozilla MightyKC Linux - Software 1 03-03-2005 11:40 PM
Java symlink mobo Fedora 5 03-19-2004 08:50 AM
Java plugin Symlink not working? Davin Linux - Software 4 02-07-2004 07:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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