Re: [Sablevm-developer] Re: [Sablevm-user] can't create vm
Brought to you by:
egagnon
From: Etienne G. <gag...@uq...> - 2004-03-28 23:07:10
|
Or, even better... You could do as suggested in the FAQ, and run sablevm as follows: $ strace sablevm HelloWorld If you don't have strace already installed on your Debian machine, you can install it as follows: $ su $ apt-get install strace $ exit strace will give very long output, so you should probably write: $ strace sablevm HelloWorld 2> strace.out to send the error output into a file called "strace.out". You could then look at its content to try identifying the problem. You should look for error messages in "open()" calls, i.e. return value of -1 with an error code starting with an E, like in the following: open("/home/egagnon/work/share/sablevm/sablevm-classpath/java/lang/Object= =2Eclass", O_RDONLY) =3D -1 ENOENT (No such file or directory) If you are unable to decipher this, you can also send us a copy of the strace.out file *IF* it is not too big (e.g. < 40 Kb of data). Good luck! Etienne PS: My preferred debugger is ddd. You can install it as shown above, but with the command "apt-get install ddd". Chris Pickett wrote: > Hi, >=20 > You can probably help most by learning a little of gdb and stepping > through the execution. >=20 > e.g. > $ gdb sablevm TestProgram > (gdb) break main <-- set a breakpoint in the main method > (gdb) 'r' <-- for run > (gdb) list <-- to list source >=20 > and then use 's' (step) and 'n' (next) and 'break' to get to the proble= m. >=20 > Probably it is easier to run gdb through an interface like emacs (M-x > gdb) or ddd, because they update where you are in the source file as yo= u > issue commands. Personally I like emacs because it doesn't depend on X= > -- try splitting emacs vertically with 'C-x 3' and then running gdb in > one window / frame / whatever-they're-called -- I think the default > splits horizontally and you don't get to see so much source at once. >=20 > You're looking for a point where JNI_CreateJavaVM () returns JNI_ERR an= d > thus causes the "cannot create vm" message to be printed. >=20 > Cheers, > Chris >=20 > P.S. I can't add this to the wiki right now because I can't connect to= > www.sablevm.org ... >=20 > canning yuan wrote: >=20 >>Hi, I'm the teammate of QianLi. Our problem isn't still unsolved. >>We installed the sablevm as following: >>=20 >>su >>$ tar -xzvf sablevm-classpath-1.1.1.tar.gz >>$ cd sablevm-classpath-1.1.1 >>$ ./build_classpath --no-gtk /usr/local >>$ cd .. >>$ tar -xzvf sablevm-1.1.1.tar.gz >>$ cd sablevm-1.1.1 >>$ ./configure --enable-debugging-features --disable-no-reorder-blocks >> --prefix=3D/usr/local >>$ make >>$ make install=20 >>But we get "can't create vm" error, when we run test program. we have=20 >>read the information in FAQ. But it still can't work. >>Thanks in advance. >> = =20 >> >> = =20 >>canning >> >> >>-----------------------------------------------------------------------= - >>*Do You Yahoo!?* >>=CD=EA=C8=AB=C3=E2=B7=D1=B5=C4=D1=C5=BB=A2=B5=E7=D3=CA=A3=AC=C2=ED=C9=CF= =D7=A2=B2=E1=BB=F1=D4=F9=B6=EE=CD=E260=D5=D7=CD=F8=C2=E7=B4=E6=B4=A2=BF=D5= =BC=E4=20 >><http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.mail.yahoo.com> >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dc= lick > _______________________________________________ > Sablevm-developer mailing list > Sab...@li... > https://lists.sourceforge.net/lists/listinfo/sablevm-developer >=20 >=20 --=20 Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |