I have wasted a lot of time after installing JDK 1.7_79 64bit version because my solaris was 64bit. After installing only 64bit, when i started Weblogic i was getting below error.
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Objectv
After searching error i have found that JDK 1.7 require both 32bit and 64bit version because it uses some libraries from 32bit.
below are the steps i followed to resolve above error.
Solaris JDK manual installation
JAVA -Manually Installing JRE/JDK on Solaris
As we all know, there are many ways of installing and configuring packages and patches on Solaris. Here are some methods to install the Java Development Runtime Environment (JRE) and the Java Development Kit (JDK) on Solaris. Java has multiple web sites dedicated to supporting the java effort. This article will only use two of these site for installation methods.
Download the JDK from the Oracle website
If you browser is setup to allow the site to determine your systems information it will automatically take you the recommended download links. As in my case for Solaris x86:
Java Downloads for Solaris - Recommended Version 7 Update 79
Download both of the files (32/64bit) to a temporary work directory and un-compress and untar them.
# cd /tmp
# gunzip -dc jdk-7u79-solaris-i586.tar.gz
# gunzip -dc jdk-7u79-solaris-x64.tar.gz
This recreates a jdk1.7.0_79 directory containing the updates for the JDK software.
Check the current directory listings.
# ls /usr/jdk/instances
jdk1.6.0
Move the updated jre to a directory consistent with the other JRE packages.
mv jdk1.7.0_79 /usr/jdk/instances/jdk1.7.79
Again check the current directory listings.
# cd /usr/jdk
# ls -l
total 9
drwxr-xr-x 5 root bin 5 Sep 16 16:08 instances
lrwxrwxrwx 1 root root 18 Jul 14 11:11 jdk1.6.0_26 -> instances/jdk1.6.0
lrwxrwxrwx 1 root root 18 Sep 14 16:09 latest -> jdk1.6.0
Remove the latest link to the older jdk directory.
# rm latest
Create current links to the newer jdk.
# ln -s instances/jdk1.7.79 jdk1.7.0_79
# ln -s jdk1.7.0_79 latest
optional:
Remove the old link to the java application and relink it to the new release.
# rm java
# ln -s jdk/latest java
Check your work
# java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b10)
Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)
doing above solved my issue.
======================================================
below are the steps for firfox upgrade
The browser should most likely be kept consistent with the JRE.
stop firefox
# cd /usr/lib/firefox/plugins
# rm libnpjp2.so
# ln -s /usr/jdk/jdk1.7.0_79/jre/lib/i386/libnpjp2.so libnpjp2.so
start firefox
Using oracle.com/technetwork/java
Download the JDK(s) from the Oracle Java web site. The JDK contains the JRE and will be installed when installation is complete. http://www.oracle.com/technetwork/java/index.html
Under the Technologies listing, click on the "Java SE” link.
Followed by clicking on the “Downloads” tab above the “Java SE at a Glance” heading.
Again, Followed by clicking on the “Java Platofrm (JDK) 7u7” icon.
From the “Java SE Development Kit 7 Downloads” page you must “Accept License Agreement” button to continue with the download. As in my case again I will donwload the Solaris x86/Solaris x64 releases.
Solaris x86 - 91.86 MB - jdk-7u79-solaris-i586.tar.gz
Solaris x64 - 14.95 MB – jdk-7u79-solaris-x64.tar.gz
Download both of the files (32/64bit) to a temporary work directory and un-compress and untar them.
# cd /tmp
# gzcat -dc jdk-7u79-solaris-i586.tar.gz | tar xf -
# gzcat -dc jdk-7u79-solaris-x64.tar.gz | tar xf -
This recreates a jdk1.7.0_79 directory containing the updates for the JDK software.
Check the current directory listings.
# ls /usr/jdk/instances
jdk1.5.0 jdk1.6.0
Move the updated jre to a directory consistent with the other JRE packages.
mv jdk1.7.0_07 /usr/jdk/instances/jdk1.7.79
Again check the current directory listings.
# cd /usr/jdk
# ls -l
total 9
drwxr-xr-x 5 root bin 5 Sep 4 16:08 instances
lrwxrwxrwx 1 root root 18 Jul 14 11:11 jdk1.6.0_26 -> instances/jdk1.6.0
lrwxrwxrwx 1 root root 8 Sep 4 16:09 latest -> jdk1.6.0
drwxr-xr-x 4 root bin 4 Jul 14 11:04 packages
Remove the latest link to the older jdk directory.
# rm latest
Create current links to the newer jdk.
# ln -s instances/jdk1.7.0 jdk1.7.0_79
# ln -s jdk1.7.0_79 latest
Yet, Again check you directory listing.
# cd /usr/
l# s -ld java
lrwxrwxrwx 1 root root 12 Sep 4 16:12 java -> jdk/jdk1.6.0
Remove the old link to the java application and relink it to the new release.
# rm java
# ln -s jdk/latest java
Check your work
# java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b10)
Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)
# /usr/java/bin/amd64/javac -version
javac 1.7.0_79
The browser should most likely be kept consistent with the JRE.
stop firefox
# cd /usr/lib/firefox/plugins
# rm libnpjp2.so
# ln -s /usr/jdk/jdk1.7.0_79/jre/lib/i386/libnpjp2.so libnpjp2.so
start firefox