Howto install JAVA 6 JDK on Ubuntu 13.04 12.10

Howto install JAVA 6 JDK on Ubuntu 13.04 12.10

ubuntu

 

 

 

Step 1. Download JAVA 6 jdk from Oracle site

root@OM2:/usr/adm# wget –no-cookies –header “Cookie: gpw_e24=http%3A%2F%2Fwww. oracle.com%2F” http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-lin ux-x64.bin
–2013-04-30 04:56:27– http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jd k-6u32-linux-x64.bin
Resolving download.oracle.com (download.oracle.com)… 82.96.58.30, 82.96.58.46
Connecting to download.oracle.com (download.oracle.com)|82.96.58.30|:80… conne cted.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-linux- x64.bin [following]
–2013-04-30 04:56:27– https://edelivery.oracle.com/otn-pub/java/jdk/6u32-b05/ jdk-6u32-linux-x64.bin
Resolving edelivery.oracle.com (edelivery.oracle.com)… 95.101.198.140
Connecting to edelivery.oracle.com (edelivery.oracle.com)|95.101.198.140|:443… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-linux-x6 4.bin?AuthParam=1367312307_8e76bc4fde966866c204410c830de013 [following]
–2013-04-30 04:56:27– http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jd k-6u32-linux-x64.bin?AuthParam=1367312307_8e76bc4fde966866c204410c830de013
Connecting to download.oracle.com (download.oracle.com)|82.96.58.30|:80… conne cted.
HTTP request sent, awaiting response… 200 OK
Length: 72033964 (69M) [application/octet-stream]
Saving to: `jdk-6u32-linux-x64.bin’100%[======================================>] 72,033,964 505K/s in 1m 45s2013-04-30 04:58:13 (668 KB/s) – `jdk-6u32-linux-x64.bin’ saved [72033964/720339 64]

Step 2:

root@OM2:/usr/adm# chmod 755 jdk-6u32-linux-x64.bin

root@OM2:/usr/adm# ./jdk-6u32-linux-x64.bin

inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-core-io-ui_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-progress-ui_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-openide-loaders_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-javahelp_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-editor-mimelookup_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-core-output2_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-masterfs_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-keyring-impl_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-sendopts_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-core_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-queries_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-keyring_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-queries_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-openide-awt_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-openide-compat_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-spi-actions_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-core-kit_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-openide-options_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-openide-io_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-openide-actions_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-openide-windows_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-settings_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-settings_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-api-visual_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-favorites_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-editor-mimelookup-impl_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-options-api_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-print_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-core-execution_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-swing-plaf_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-openide-io_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-core-ui_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-autoupdate-services_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-swing-plaf_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-templates_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-swing-outline_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-core-windows_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-openide-nodes_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-keyring-impl_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-modules-autoupdate-ui_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-api-annotations-common_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/locale/org-netbeans-api-visual_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-openide-util-enumerations.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-swing-outline.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-openide-compat.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-core-output2.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-modules-applemenu.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-modules-keyring.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-modules-progress-ui.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-openide-explorer.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-modules-masterfs.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-openide-dialogs.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-core-windows.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-api-progress.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-modules-keyring-impl.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-swing-tabcontrol.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-api-annotations-common.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-modules-settings.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-modules-print.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-core.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-openide-options.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-openide-text.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-core-execution.jar
inflating: jdk1.6.0_32/lib/visualvm/platform/modules/org-netbeans-modules-spi-actions.jar
extracting: jdk1.6.0_32/lib/visualvm/platform/.lastModified
creating: jdk1.6.0_32/lib/visualvm/profiler/
creating: jdk1.6.0_32/lib/visualvm/profiler/lib/
inflating: jdk1.6.0_32/lib/visualvm/profiler/lib/jfluid-server-15.jar
creating: jdk1.6.0_32/lib/visualvm/profiler/lib/locale/
inflating: jdk1.6.0_32/lib/visualvm/profiler/lib/locale/jfluid-server_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/lib/locale/jfluid-server_ja.jar
creating: jdk1.6.0_32/lib/visualvm/profiler/lib/deployed/
creating: jdk1.6.0_32/lib/visualvm/profiler/lib/deployed/jdk15/
creating: jdk1.6.0_32/lib/visualvm/profiler/lib/deployed/jdk15/linux-amd64/
inflating: jdk1.6.0_32/lib/visualvm/profiler/lib/deployed/jdk15/linux-amd64/libprofilerinterface.so
creating: jdk1.6.0_32/lib/visualvm/profiler/lib/deployed/jdk16/
creating: jdk1.6.0_32/lib/visualvm/profiler/lib/deployed/jdk16/linux-amd64/
inflating: jdk1.6.0_32/lib/visualvm/profiler/lib/deployed/jdk16/linux-amd64/libprofilerinterface.so
inflating: jdk1.6.0_32/lib/visualvm/profiler/lib/jfluid-server.jar
extracting: jdk1.6.0_32/lib/visualvm/profiler/VERSION.txt
creating: jdk1.6.0_32/lib/visualvm/profiler/update_tracking/
inflating: jdk1.6.0_32/lib/visualvm/profiler/update_tracking/org-netbeans-lib-profiler-common.xml
inflating: jdk1.6.0_32/lib/visualvm/profiler/update_tracking/org-netbeans-modules-profiler.xml
inflating: jdk1.6.0_32/lib/visualvm/profiler/update_tracking/org-netbeans-lib-profiler-ui.xml
inflating: jdk1.6.0_32/lib/visualvm/profiler/update_tracking/org-netbeans-modules-profiler-oql.xml
inflating: jdk1.6.0_32/lib/visualvm/profiler/update_tracking/org-netbeans-lib-profiler-charts.xml
inflating: jdk1.6.0_32/lib/visualvm/profiler/update_tracking/org-netbeans-lib-profiler.xml
creating: jdk1.6.0_32/lib/visualvm/profiler/config/
creating: jdk1.6.0_32/lib/visualvm/profiler/config/Modules/
inflating: jdk1.6.0_32/lib/visualvm/profiler/config/Modules/org-netbeans-lib-profiler-common.xml
inflating: jdk1.6.0_32/lib/visualvm/profiler/config/Modules/org-netbeans-modules-profiler.xml
inflating: jdk1.6.0_32/lib/visualvm/profiler/config/Modules/org-netbeans-lib-profiler-ui.xml
inflating: jdk1.6.0_32/lib/visualvm/profiler/config/Modules/org-netbeans-modules-profiler-oql.xml
inflating: jdk1.6.0_32/lib/visualvm/profiler/config/Modules/org-netbeans-lib-profiler-charts.xml
inflating: jdk1.6.0_32/lib/visualvm/profiler/config/Modules/org-netbeans-lib-profiler.xml
creating: jdk1.6.0_32/lib/visualvm/profiler/modules/
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/org-netbeans-lib-profiler-common.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/org-netbeans-modules-profiler.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/org-netbeans-lib-profiler-ui.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/org-netbeans-modules-profiler-oql.jar
creating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-modules-profiler_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-lib-profiler_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-lib-profiler-ui_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-modules-profiler-oql_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-lib-profiler-charts_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-lib-profiler-charts_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-lib-profiler-ui_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-modules-profiler-oql_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-lib-profiler-common_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-lib-profiler_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-lib-profiler-common_ja.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/locale/org-netbeans-modules-profiler_zh_CN.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/org-netbeans-lib-profiler-charts.jar
inflating: jdk1.6.0_32/lib/visualvm/profiler/modules/org-netbeans-lib-profiler.jar
extracting: jdk1.6.0_32/lib/visualvm/profiler/.lastModified
inflating: jdk1.6.0_32/lib/jexec
inflating: jdk1.6.0_32/lib/jconsole.jar
inflating: jdk1.6.0_32/lib/tools.pack
inflating: jdk1.6.0_32/lib/ct.sym
inflating: jdk1.6.0_32/lib/dt.jar
inflating: jdk1.6.0_32/lib/ir.idl
inflating: jdk1.6.0_32/lib/htmlconverter.jar
inflating: jdk1.6.0_32/lib/orb.idl
inflating: jdk1.6.0_32/lib/sa-jdi.jar
creating: jdk1.6.0_32/man/
linking: jdk1.6.0_32/man/ja -> ja_JP.eucJP
creating: jdk1.6.0_32/man/man1/
inflating: jdk1.6.0_32/man/man1/wsgen.1
inflating: jdk1.6.0_32/man/man1/jstat.1
inflating: jdk1.6.0_32/man/man1/apt.1
inflating: jdk1.6.0_32/man/man1/jar.1
inflating: jdk1.6.0_32/man/man1/jdb.1
inflating: jdk1.6.0_32/man/man1/jps.1
inflating: jdk1.6.0_32/man/man1/xjc.1
inflating: jdk1.6.0_32/man/man1/tnameserv.1
inflating: jdk1.6.0_32/man/man1/jconsole.1
inflating: jdk1.6.0_32/man/man1/rmiregistry.1
inflating: jdk1.6.0_32/man/man1/jstack.1
inflating: jdk1.6.0_32/man/man1/jstatd.1
inflating: jdk1.6.0_32/man/man1/jvisualvm.1
inflating: jdk1.6.0_32/man/man1/extcheck.1
inflating: jdk1.6.0_32/man/man1/policytool.1
inflating: jdk1.6.0_32/man/man1/idlj.1
inflating: jdk1.6.0_32/man/man1/java.1
inflating: jdk1.6.0_32/man/man1/jhat.1
inflating: jdk1.6.0_32/man/man1/jmap.1
inflating: jdk1.6.0_32/man/man1/jarsigner.1
inflating: jdk1.6.0_32/man/man1/keytool.1
inflating: jdk1.6.0_32/man/man1/native2ascii.1
inflating: jdk1.6.0_32/man/man1/orbd.1
inflating: jdk1.6.0_32/man/man1/rmic.1
inflating: jdk1.6.0_32/man/man1/rmid.1
inflating: jdk1.6.0_32/man/man1/appletviewer.1
inflating: jdk1.6.0_32/man/man1/servertool.1
inflating: jdk1.6.0_32/man/man1/jsadebugd.1
inflating: jdk1.6.0_32/man/man1/javaws.1
inflating: jdk1.6.0_32/man/man1/pack200.1
inflating: jdk1.6.0_32/man/man1/schemagen.1
inflating: jdk1.6.0_32/man/man1/javac.1
inflating: jdk1.6.0_32/man/man1/javah.1
inflating: jdk1.6.0_32/man/man1/javap.1
inflating: jdk1.6.0_32/man/man1/unpack200.1
inflating: jdk1.6.0_32/man/man1/serialver.1
inflating: jdk1.6.0_32/man/man1/javadoc.1
inflating: jdk1.6.0_32/man/man1/jinfo.1
inflating: jdk1.6.0_32/man/man1/wsimport.1
inflating: jdk1.6.0_32/man/man1/jrunscript.1
creating: jdk1.6.0_32/man/ja_JP.eucJP/
creating: jdk1.6.0_32/man/ja_JP.eucJP/man1/
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/wsgen.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jstat.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/apt.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jar.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jdb.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jps.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/xjc.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/tnameserv.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jconsole.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/rmiregistry.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jstack.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jstatd.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jvisualvm.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/extcheck.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/policytool.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/idlj.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/java.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jhat.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jmap.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jarsigner.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/keytool.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/native2ascii.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/orbd.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/rmic.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/rmid.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/appletviewer.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/servertool.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jsadebugd.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/pack200.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/schemagen.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/javac.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/javah.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/javap.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/unpack200.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/serialver.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/javadoc.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jinfo.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/wsimport.1
inflating: jdk1.6.0_32/man/ja_JP.eucJP/man1/jrunscript.1
extracting: jdk1.6.0_32/LICENSE
inflating: jdk1.6.0_32/THIRDPARTYLICENSEREADME.txt
inflating: jdk1.6.0_32/src.zip
inflating: jdk1.6.0_32/README.html
creating: jdk1.6.0_32/include/
inflating: jdk1.6.0_32/include/jni.h
creating: jdk1.6.0_32/include/linux/
inflating: jdk1.6.0_32/include/linux/jawt_md.h
inflating: jdk1.6.0_32/include/linux/jni_md.h
inflating: jdk1.6.0_32/include/jvmti.h
inflating: jdk1.6.0_32/include/jawt.h
inflating: jdk1.6.0_32/include/jdwpTransport.h
inflating: jdk1.6.0_32/include/classfile_constants.h
inflating: jdk1.6.0_32/COPYRIGHT
Creating jdk1.6.0_32/jre/lib/rt.jar
Creating jdk1.6.0_32/jre/lib/jsse.jar
Creating jdk1.6.0_32/jre/lib/charsets.jar
Creating jdk1.6.0_32/lib/tools.jar
Creating jdk1.6.0_32/jre/lib/ext/localedata.jar
Creating jdk1.6.0_32/jre/lib/plugin.jar
Creating jdk1.6.0_32/jre/lib/javaws.jar
Creating jdk1.6.0_32/jre/lib/deploy.jar

Java(TM) SE Development Kit 6 successfully installed.

Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Oracle products, services and training
* Access to early releases and documentation

Product and system data will be collected. If your configuration
supports a browser, the JDK Product Registration form will
be presented. If you do not register, none of this information
will be saved. You may also register your JDK later by
opening the register.html file (located in the JDK installation
directory) in a browser.

For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html

Press Enter to continue…..

Done.
root@OM2:/usr/adm#

root@OM2:/usr/adm# mkdir -p /usr/lib/jvm
root@OM2:/usr/adm# mv jdk1.6.0_32 /usr/lib/jvm/
root@OM2:/usr/adm# update-alternatives –install /usr/bin/javac javac /usr/lib/j vm/jdk1.6.0_32/bin/javac 1
update-alternatives –install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_32/bin/ja va 1
update-alternatives: using /usr/lib/jvm/jdk1.6.0_32/bin/javac to provide /usr/bi n/javac (javac) in auto mode
root@OM2:/usr/adm# update-alternatives –install /usr/bin/java java /usr/lib/jvm /jdk1.6.0_32/bin/java 1
root@OM2:/usr/adm# update-alternatives –install /usr/bin/javaws javaws /usr/lib /jvm/jdk1.6.0_32/bin/javaws 1
update-alternatives: using /usr/lib/jvm/jdk1.6.0_32/bin/javaws to provide /usr/b in/javaws (javaws) in auto mode
root@OM2:/usr/adm# update-alternatives –config javac
update-alternatives –config java
There is only one alternative in link group javac (providing /usr/bin/javac): /u sr/lib/jvm/jdk1.6.0_32/bin/javac
Nothing to configure.
root@OM2:/usr/adm# update-alternatives –config java
update-alternatives –config javawsThere are 2 choices for the alternative java (providing /usr/bin/java).Selection Path Priority Status
————————————————————
* 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto m ode
1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
2 /usr/lib/jvm/jdk1.6.0_32/bin/java 1 manual modePress enter to keep the current choice[*], or type selection number: 2
There are 2 choices for the alternative java (providing /usr/bin/java).Selection Path Priority Status
————————————————————
* 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto mode
1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
2 /usr/lib/jvm/jdk1.6.0_32/bin/java 1 manual modePress enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/jdk1.6.0_32/bin/java to provide /usr/bin/java (java) in manual mode
root@OM2:/usr/adm# java -version
java version “1.6.0_32”
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode)
root@OM2:/usr/adm#

Step 4: Make sure it’s correct link in this  folder

root@OM2:/usr/adm# ls -la /etc/alternatives/java*
lrwxrwxrwx 1 root root 33 Apr 30 05:49 /etc/alternatives/java -> /usr/lib/jvm/jdk1.6.0_32/bin/java
lrwxrwxrwx 1 root root 34 Apr 30 05:48 /etc/alternatives/javac -> /usr/lib/jvm/jdk1.6.0_32/bin/javac
lrwxrwxrwx 1 root root 35 Apr 30 05:48 /etc/alternatives/javaws -> /usr/lib/jvm/jdk1.6.0_32/bin/javaws
root@OM2:/usr/adm#

That’s all. Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>