Difference between revisions of "Java"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 9: Line 9:
 
<ul>
 
<ul>
 
<li> for every user (in this case ''root'')
 
<li> for every user (in this case ''root'')
 +
<ul>
 
<li> make sure the Mozilla plugin directory exists:</li>
 
<li> make sure the Mozilla plugin directory exists:</li>
 
  mkdir -p /''root''/.mozilla/plugins
 
  mkdir -p /''root''/.mozilla/plugins
 
<li>link the plugin from java to mozilla: </li>
 
<li>link the plugin from java to mozilla: </li>
 
</li>
 
</li>
 +
</ul>
 
</ul>
 
</ul>
 
  ln -s /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/libnpjp2.so /''root''/.mozilla/plugins/
 
  ln -s /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/libnpjp2.so /''root''/.mozilla/plugins/

Revision as of 13:28, 8 December 2010

Java plugin

Installing the java plugin for web browsers is a pain, so I describe it here.

SLES 11 x64

On SLES 11 x64

yast -i java-1_6_0-ibm
  • for every user (in this case root)
    • make sure the Mozilla plugin directory exists:
    • mkdir -p /root/.mozilla/plugins
    • link the plugin from java to mozilla:
ln -s /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/amd64/libnpjp2.so /root/.mozilla/plugins/
  • test if it works by surfing to about:plugins

Debian

ln -s /opt/j2sdk1.4.2_04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
 /usr/lib/mozilla-firefox/plugins

generic

  • find out what your jre directory is. In its lib/amd64 path you will find libnpjp2.so
  • find out what your mozilla plugin directory is
  • Link libnpjp2.so to from the one directory to the other
  • Verify this has worked by surfing to about:plugins

See also