Hello i have installed java-1_8_0-openjdk-devel via yast in openSUSE Leap 42.1 , now how do i install and set it up as the system default(like for java,javac,jar,javaws etc.) and also use java-1_8_0-openjdk-plugin for the browser plugin by using update-alternatives ?( how to install the respective firefox plugin ?)
This is the current addon i can see in firefox- IcedTea-Web Plugin (using IcedTea-Web 1.6.1 (suse-1.2-x86_64))
These are my current configs - As you can see there are only jre* options in --config java and there are lot of java-1_8_0-openjdk* folders in /usr/lib64/jvm/) . Please help on how to proceed from here, planning to use tools like android studio, Intellij IDEA etc…
update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib64/jvm/jre-1.8.0-openjdk/bin/java 1805 auto mode
1 /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java 1705 manual mode
2 /usr/lib64/jvm/jre-1.8.0-openjdk/bin/java 1805 manual mode
update-alternatives --config javac
There is only one alternative in link group javac (providing /usr/bin/javac): /usr/lib64/jvm/java-1.8.0-openjdk/bin/javac
Nothing to configure.
update-alternatives --config jar
update-alternatives: error: no alternatives for jar
update-alternatives --config javaws
update-alternatives: error: no alternatives for javaws
update-alternatives --config javaplugin
There are 2 choices for the alternative javaplugin (providing /usr/lib64/browser-plugins/javaplugin.so).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib64/java-1_8_0-openjdk-plugin/lib/IcedTeaPlugin.so 18020 auto mode
1 /usr/lib64/java-1_7_0-openjdk-plugin/lib/IcedTeaPlugin.so 17147 manual mode
2 /usr/lib64/java-1_8_0-openjdk-plugin/lib/IcedTeaPlugin.so 18020 manual mode
Press enter to keep the current choice
[li], or type selection number[/li]
Should the update-alternatives be install and set for the following things too ?
jexec,appletviewer,apt,extcheck ,idlj,jarsigner ,javadoc, javafxpackager, javah, javap,java-rmi.cgi,jcmd ,jconsole,jcontrol,jdb,jhat,jinfo,jmap,jmc,jps,jrunscript,jsadebugd,jstack,jstat,jstatd,jvisualvm,keytool,native2ascii,orbd,pack200,policytool,rmic,rmid ,rmiregistry,schemagen,serialver,servertool,tnameserv,unpack200,wsgen,wsimport,xjc, java_vm
Will the man pages be available for everything ? or should it be installed ? Should JAVA_HOME User Environment Variable be specified in .bashrc ?