Re: [Sablevm-developer] Problems with 1.0.3 - java/lang/UnsatisfiedLinkError
Brought to you by:
egagnon
From: Mark W. <ma...@kl...> - 2002-08-21 22:53:23
|
Hi, On Wed, 2002-08-21 at 18:30, Mark Wielaard wrote: > > I didn't have time to recompile and do the next steps but from the > output I suspect the following piece of code in java.io.FileInputStream: > > public > FileInputStream(FileDescriptor fd) throws SecurityException > { > // Hmmm, no other exception but this one to throw, but if the > descriptor > // isn't valid, we surely don't have "permission" to read from it. > if (!fd.valid()) > throw new SecurityException("Invalid FileDescriptor"); > This seems to be it! After I just commented out that part and recompiled I got: mark@multatuli:~$ /usr/local/sablevm/bin/sablevm-debug -Y Hello java.lang.ClassNotFoundException: Hello at gnu.java.lang.SystemClassLoader.findClass(SystemClassLoader.java:73) at java.lang.ClassLoader.loadClass(ClassLoader.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:259) at java.lang.VirtualMachine.main(VirtualMachine.java:79) I haven't yet figured out why that is but this is progress. And when I copy Hello.class to /usr/local/sablevm/lib/sablevm/classes-1.0.1/ I get: mark@multatuli:~$ /usr/local/sablevm/bin/sablevm-debug -Y Hello Hello World! Yeah! If "Hello World" is possible everything else should be possible :) I am very happy because this means that there might be some issues on PowerPC but it seems there is not something major wrong. Hopefully I will have some time this weekend to clean up what I have and look at where/why the valid() really fails and why my sablevm cannot find anything besides inside its own bootclasspath directory. Good night, Mark |