Re: [Sablevm-developer] Problems with 1.0.3 - java/lang/UnsatisfiedLinkError
Brought to you by:
egagnon
From: Etienne M. G. <eti...@uq...> - 2002-08-22 13:32:15
|
Mark Wielaard wrote: > This seems to be it! ... > mark@multatuli:~$ /usr/local/sablevm/bin/sablevm-debug -Y Hello > Hello World! > > Yeah! If "Hello World" is possible everything else should be possible :) This is great news! As for the --classpath thing: SableVM uses a Java class loader to load application classes. More precisely, the starting point is the java.lang.VirtualMachine class which indirectly invokes the system class loader. The system class loader is the gnu.java.lang.SystemClassLoader class. It is often useful to print debug messages to identify problems, yet, in the VM's class library, invoking System.out.println() has MANY side effects, by potentially changing dramatically the flow of control (due to all the class loading and initialization it causes). For this reason, you will find very convenient "print" methods in the java.lang.VirtualMachine class. If you need them for debugging code in other packages (e.g. java.io.*), you will need to temporarily make the VirtualMachine class "public". Have fun! Etienne -- Etienne M. Gagnon http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |