Forum Stats

  • 3,733,036 Users
  • 2,246,686 Discussions



user11167597 Member Posts: 14

Hello all,

I need your help please.

I installed and configured PATH, JAVA_HOME for the above version on solaris but I continue to get this error. I happen to read on the web that 32 bit version is also need to resolve this.

Please let me know what version would I need and where to get 32 bit?

test> /test/u60/java/jdk1.7.0_79/jre/bin/sparcv9/java -version

Error occurred during initialization of VM

  java/lang/NoClassDefFoundError: java/lang/Object


SunOS 5.10 Generic_150400-26 sun4v sparc sun4v


  • user11167597
    user11167597 Member Posts: 14
    edited October 2015

    After a lot of digging I found a document that mentioned installing 32 and 64 bit in the same directly but it did not specifiy the order. After a trial and error I got it working. I am going to write the steps I took. I hope someone will be benefitted by this.

    Installing Java 1.7.x on Solaris 64 bit

    log on to oracle

    Patches & Updates.

    I downloaded  Oracle JDK 1.7.0  for  Oracle Solaris on Sparc 64 bit and Oracle Solaris on Sparc 32 bit

    Patch 13079846: Oracle JDK 1.7.0

    This was installed on Oracle Database server.

    When you unzip and extract the tar files, these are the only two files that I used.

    jdk-7u91-solaris-sparc.tar.gz     (32-bit)  -->(1.7.0_91)

    jdk-7u91-solaris-sparcv9.tar.gz   (64-bit) -->(1.7.0_91)

    This  install was independent of "root" at OS level or Oracle install

    First extract the 32 bit one in a new JAVA directory.

    Then extract the 64 bit in the same location as above.

    Updated the .profile of the user with the following information.


    export JAVA_HOME


    export CLASSPATH


    export PATH

    These two commands should give the right output:

    1. which java (from any location if the PATH is set correctly)


    2. java -version

    java version "1.7.0_91"

    Java(TM) SE Runtime Environment (build 1.7.0_91-b15)

    Java HotSpot(TM) 64-Bit Server VM (build 24.91-b03, mixed mode)

Sign In or Register to comment.