Re: Error occurred during initialization of VM java/lang/NoClassDefFoundError:java/lang/Object

Discussion in 'Java' started by TsanChung, Aug 21, 2008.

  1. TsanChung

    TsanChung Guest

    On Aug 20, 6:24 pm, Mark Space <> wrote:
    > TsanChung wrote:
    > > I downloaded jdk-6u7-solaris-sparcv9.tar.Z and installed it by these
    > > commands:
    > > # zcat jdk-6u7-solaris-sparc.tar.Z | tar -xf -
    > > # pkgadd -d . SUNWj6rtx SUNWj6dvx SUNWj6dmx

    >
    > > # /usr/jdk/instances/jdk1.6.0/bin/sparcv9/java -version
    > > Error occurred during initialization of VM
    > > java/lang/NoClassDefFoundError: java/lang/Object

    >
    > It's missing or can't find rt.jar, right?
    >
    > How does the Solaris version find it's runtime files?  Can you show us
    > where rt.jar is?


    # find / -name rt.jar
    /usr/j2se/jre/lib/rt.jar
    /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar

    root# echo $PATH
    /usr/sbin:/usr/bin:/root/bin:/usr/local/bin:/opt/SUNWspro/bin:/usr/ccs/
    bin:.

    $ echo $PATH
    .:/usr/sbin:/usr/bin:/opt/SUNWspro/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/
    openwin/bin:/opt/sfw/bin

    Why rt.jar is not in /usr/jdk/instances/jdk1.6.0?
    TsanChung, Aug 21, 2008
    #1
    1. Advertising

  2. TsanChung

    Mark Space Guest

    TsanChung wrote:

    > # find / -name rt.jar
    > /usr/j2se/jre/lib/rt.jar
    > /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar
    >


    >
    > Why rt.jar is not in /usr/jdk/instances/jdk1.6.0?


    Beats me. I'm not really a Solaris person. I think rt.jar is the
    issue, you'll have to find someone who knows more about Solaris to track
    down where the install when wrong, but I think rt.jar is the issue.
    Mark Space, Aug 21, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page