On 8/3/07, Aubrey Li <[EMAIL PROTECTED]> wrote: > Hi all, > I'm trying a Java program, using the same version of SUN JVM(jre1.6.0_02) > > With the option I made it works on windows: > "C:\software\myprogram\>"C:\Java\jre1.6.0_02\bin\java" -XX:+Aggressive > Heap -Xms800m -Xmx800m -Xmn400m -XX:+UseParallelGC -Xss64k spec.jbb.JBBmain > -pro > pfile SPECjbb.props" > > But the same option failed on solaris express: > [EMAIL PROTECTED]/jre1.6.0_02/bin/amd64/java -Xms800m > -Xmx800m -Xmn400m -XX:+AggressiveHeap -XX:+UseParallelGC -Xss256k > spec.jbb.JBBmain -propfile SPECjbb.props > Error occurred during initialization of VM > java/lang/NoClassDefFoundError: java/lang/Object > > Any help and suggestions are really appreciated.
It's wired. If I changed to use java installed in the distribution, I got error -------- Exception in thread "main" java.lang.NoClassDefFoundError: spec/jbb/JBBmain". -------- Then I think I have to extract jbb.jar to jbb folder and add path option "-classpath ./jbb" OK, now it works. I'm not JAVA expert, I don't understand why jbb.jar need to be exacted on solaris but not necessary on windows. Is it expected behavior? Please guide me if I'm on the wrong way. Thanks, -Aubrey _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org