No necessitate for Galternatives; run the below command in its place:
Sudo update-alternatives --config java
You will observe something like this:
Code:
abc@abc-laptop:~$ sudo update-alternatives --config java
There are 3 options for the alternative java.
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1062 auto mode
1 /usr/bin/gij-4.4 1054 manual mode
2 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1051 manual mode
3 /usr/lib/jvm/java-6-sun/jre/bin/java 65 manual mode
You'd wish java-6-sun in its place of the Open JDK alternative. The next step is to setup a symlinks between the accurate Sun Java plug-in, and Firefox's plug-in folder that is:
Code:
Sudo in -s /usr/local/java/jre1.6.0_21/jre/lib/amd64/libnpjp2.so /usr/lib/Mozilla/plug-in/libjavaplugin.so
If libnpjp2.so resides in a dissimilar directory in your installation, and your Firefox plug-in is in a dissimilar directory, alter the path as required. After that start again any browsers you have release. Install.jsp to observe if it is documented or type:
In the Firefox's URL bar to test for Sun Java.
Bookmarks