Re: [OpenIndiana-discuss] Java7 on OI
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@hostl~/jre1.7.0_11/bin/amd64# ./java -version Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object root@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 ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Java7 on OI
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@hostl~/jre1.7.0_11/bin/amd64# ./java -version > Error occurred during initialization of VM > java/lang/NoClassDefFoundError: java/lang/Object > root@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. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Java7 on OI
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@hostl~/jre1.7.0_11/bin/amd64# ./java -version Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object root@storage2.digital:~/jre1.7.0_11/bin/amd64# ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Java7 on OI
Hi, > How to compile and install java7 ? Is there any pkg readily available ? > Pls help Just use the regular Java 7 for Solaris from Oracle. (Personally, I would recommend *not* using the packaged version. If you download the Solaris x86 and x64 tar.gz files from the Oracle download site, you just have to untar them wherever you wish and you're ready to go.) -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/ ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Java7 on OI
On 2013-01-26 06:30, Ram Chander wrote: How to compile and install java7 ? Is there any pkg readily available ? Pls help "Compile" puzzles me... Do you mean GNU Java (from the GCC stack) or an OpenJava build? I'd just use a standard Sun/Oracle distro package or the tarball, and install that. Don't see a reason why it won't work... //Jim ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
[OpenIndiana-discuss] Java7 on OI
Hi, How to compile and install java7 ? Is there any pkg readily available ? Pls help Regards, Ram ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss