[OpenIndiana-discuss] Java7 on OI
Jim Klimov
jimklimov at cos.ru
Sat Jan 26 18:29:05 UTC 2013
On 2013-01-26 18:00, Alan Coopersmith wrote:
> On 01/26/13 05:11 AM, Ram Chander wrote:
>> I downloaded jre from below url and extracted. But when run, it gives
>> below error. Anything should I install additional ?
>>
>> http://docs.oracle.com/javase/7/docs/webnotes/install/index.html
>>
>> root at hostl~/jre1.7.0_11/bin/amd64# ./java -version
>> Error occurred during initialization of VM
>> java/lang/NoClassDefFoundError: java/lang/Object
>> root at storage2.digital:~/jre1.7.0_11/bin/amd64#
>
> Did you follow the step in the instructions where you install the 32-bit
> version first? A lot of common files, like compiled java bytecode, are
> provided in the 32-bit download and the 64-bit download depends on them.
>
Also, it may help to set JAVA_HOME to the base of your needed java
installation, i.e.
export JAVA_HOME="$HOME/jre1.7.0_11"
export PATH="$JAVA_HOME/bin:$PATH"
You are not required to prepend "amd64/" paths, use "java -d64" instead.
And under Solaris do make sure to have both 32 and 64 bit JDK or JRE
installed, 64-bit overlaying the 32-bit one. Under other OSes these are
independent distros to be installed separately.
//Jim
More information about the OpenIndiana-discuss
mailing list