[kaffe] Two question about use gcj precompiled

Libo Jiao lbjiao at minigui.org
Wed Feb 27 02:19:46 PST 2008


Hi all,

I have fixed fixup.c  and followed the FAQ.gcj did it.  I get the files
as below:
HelloWorldApp.so
_fixup_HelloWorldApp.cc 
_fixup_HelloWorldApp.o
_fixup_HelloWorldApp.so

When I run it. it is failed:

/usr/local/kaffe/bin/kaffe HelloWorldApp
java.lang.ClassNotFoundException: HelloWorldApp not found in
java.lang.ClassLoader
$1{urls=[file:/home/lbjiao/work/kaffe/build/test/regression/HelloWorldApp.so], parent=null}


Any idea?

Thanks and Regards

Libo


PS: The cvs diff result as follow:

Index: fixup.c
===================================================================
RCS file: /cvs/kaffe/kaffe/developers/fixup.c,v
retrieving revision 1.1
diff -r1.1 fixup.c
27c27
< #define STARTS_WITH(x, y, b)  (sscanf(x, ##y"%s", b) == 1)
---
> #define STARTS_WITH(x, y, b)  (sscanf(x, y"%s", b) == 1)
395,396c395,402
< "#include <java/lang/Class.h>
< #include <unistd.h>
---
> "#include <java/lang/Class.h>\n"
> "#include <unistd.h>\n"
> "\n"
> "extern \"C\"\n"
> "\n"
> "void __kaffe_i386_gcj_fixup(void);\n"
> "\n"
> "";
398,400d403
< extern \"C\" void __kaffe_i386_gcj_fixup(void);
< 
< ";



在 2008-02-26二的 17:17 +0800,Libo Jiao写道:
> Hi all,
> 
> I'm trying to use gcj precompiled. I have 2 question when I do it.
> 
> 1  Refer to FAQ.gcj,  I have to use the fixup create a so-called fixup
> module. But I don't compile fixup. the compile information as follow:
> 
> ////////////////////////////////
> 
> # gcc -o fixup fixup.c
> 
> fixup.c:395: error: missing terminating " character
> In file included from fixup.c:396:
> /usr/include/unistd.h:226: error: expected expression before 'typedef'
> fixup.c:398: error: stray '\' in program
> fixup.c:398: error: missing terminating " character
> fixup.c:400: error: missing terminating " character
> fixup.c:443:1: error: pasting "," and "JV_PREFIX" does not give a valid preprocessing token
> fixup.c:446:1: error: pasting "," and "CLASS_PREFIX" does not give a valid preprocessing token
> fixup.c:449:1: error: pasting "," and "VTABLE_PREFIX" does not give a valid preprocessing token
> 
> ///////////////////////////////////
> 
> 2. Refer to FAQ.gcj "How do I compile Kaffe's class libraries?", if I want to compile kaffe's class libraries, I have to create .o file for all class files of glibj.zip and  kaffe-vminterface.jar.  I don't know if kaffe need else file.
> 
> 
> Thanks and Regards,
> Libo
> 
> 
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
> 





More information about the kaffe mailing list