> invoke.o(.text+0xc4):invoke.c: undefined reference to `_imp__JNI_GetDefaultJavaVMInitArgs@4' > invoke.o(.text+0xdd):invoke.c: undefined reference to `_imp__JNI_CreateJavaVM@12' This is quite likely due to the fact that these methods are declared as JNIEXPORT (__declspec(dllexport) on Win32) and will not be normally available if libgcj is not built as a DLL. However, you can try the latest binutils snapshot for MinGW: http://prdownloads.sourceforge.net/mingw/binutils-2.13.90-20030111-1.tar.gz that includes the feature of auto-exporting from an EXE if __declspec(dllexport) is used for functions. This *should* resolve your problem. Ranjit.