This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCJ and C++ (calling Java from C++)


I was wondering if the problem could be related to being a 64bit build. So I 
modified my build to build a 32bit executable, but I get the same problem 
here.

     [exec] Unhandled Java exception:
     [exec] java.lang.LinkageError: unexpected exception during linking: 
org.eclipse.emf.examples.extlibrary.Library
     [exec] at java.lang.VMClassLoader.transformException(java.lang.Class, 
java.lang.Throwable) 
(/opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.0.2/32/libgcj.so.6.0.0)
     [exec] at java.lang.VMClassLoader.resolveClass(java.lang.Class) 
(/opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.0.2/32/libgcj.so.6.0.0)
     [exec] at java.lang.Class.initializeClass() 
(/opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.0.2/32/libgcj.so.6.0.0)
     [exec] at .JvInitClass(java.lang.Class) 
(/opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.0.2/include/c++/gcj/cni.h:31)
     [exec] at .main 
(/home/lothar/workspace/org.eclipse.emf.examples.library.edit/cpp/librarytest/main.cpp:126)
     [exec] at .__libc_start_main (/lib/tls/libc-2.3.5.so)
     [exec] Caused by: java.lang.NullPointerException
     [exec] at java.lang.VMClassLoader.resolveClass(java.lang.Class) 
(/opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.0.2/32/libgcj.so.6.0.0)
     [exec] ...4 more

Lothar
-- 
Lothar Werzinger Dipl.-Ing. Univ.
framework & platform architect
Tradescape Inc.
111 West St. John Street, Suite 200
San Jose, Ca 95113
email: lothar@tradescape.biz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]