| 
      
      
      From: Jost B. <jos...@ya...> - 2004-10-05 22:05:55
      
     | 
| Hi,
I've just checked code into the cvs head which fixes
the gcj "AttachCurrentThread" bug.  
* The thread creation has been pulled to java level
instead of calling AttachCurrentThread. This has the
additional benefit that it should now be possible to
add a thread pool, if desired. 
* The bridge now uses "registerNatives" to inject the
native code references into the JVM. That means for
example that you can compile the server part into a
static binary which does not need any libraries
anymore:
echo "main(int argc,char**argv)
    {java_bridge_main_gcj(argc,argv);}" >start.c
gcj --static -g0 -O2 -fjni -oJavaBridge.srv start.c \
 ../server/JavaBridge.java \
 ../server/natcJavaBridge.c \
 [insert additional paths to .java classes here...] \
 -I$JAVA_HOME/include -I$JAVA_HOME/include/linux  \
 -I..
	
	
		
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 100MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
 |