[Sablevm-developer] Re: [Sablevm-user] can't create vm
Brought to you by:
egagnon
From: Chris P. <chr...@ma...> - 2004-03-28 17:41:18
|
Hi, You can probably help most by learning a little of gdb and stepping through the execution. e.g. $ gdb sablevm TestProgram (gdb) break main <-- set a breakpoint in the main method (gdb) 'r' <-- for run (gdb) list <-- to list source and then use 's' (step) and 'n' (next) and 'break' to get to the problem. 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 you 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. You're looking for a point where JNI_CreateJavaVM () returns JNI_ERR and thus causes the "cannot create vm" message to be printed. Cheers, Chris P.S. I can't add this to the wiki right now because I can't connect to www.sablevm.org ... canning yuan wrote: > Hi, I'm the teammate of QianLi. Our problem isn't still unsolved. > We installed the sablevm as following: > > 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=/usr/local > $ make > $ make install > But we get "can't create vm" error, when we run test program. we have > read the information in FAQ. But it still can't work. > Thanks in advance. > > > > canning > > > ------------------------------------------------------------------------ > *Do You Yahoo!?* > 完全免费的雅虎电邮,马上注册获赠额外60兆网络存储空间 > <http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.mail.yahoo.com> |