Difference between revisions of "Java"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 13: | Line 13: | ||
On SLES 11 x64 | On SLES 11 x64 | ||
* [[open a console]] | * [[open a console]] | ||
+ | * downgrade java to sr8 as to be seen in the screenshot below: | ||
+ | |||
+ | [[File:Snapshot-java.png]] | ||
+ | |||
* install java 1.6: | * install java 1.6: | ||
yast -i java-1_6_0-ibm | yast -i java-1_6_0-ibm |
Revision as of 15:55, 8 June 2011
There are three types of Java Software:
- Java Applications
- These are normal applications that happen to be written in Java. An example is sweetHome3D.
- Java Applets
- These are little programs that are executed in your web browser. Your browser must support Java.
- Java WebStart
- This is a technology that lets you start an application over the web. You do not have to install anything (but Java WebStart). This can be found on embedded web servers often.
Java plugin
Installing the java plugin for web browsers is a pain, so I describe it here. The description is for Firefox 3.
SLES 11 x64
On SLES 11 x64
- open a console
- downgrade java to sr8 as to be seen in the screenshot below:
- install java 1.6:
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/
- restart your firefox twice
- 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
- http://plugindoc.mozdev.org/linux-amd64.html#java-sun - how to install the 64-bit java plugin