Invoke JavaProg.main() from a win32 program: . compile Main.java . compile VC project . set include path for jni.h, which is under java_Home\include . set linking path for jvm.lib, which is under java_Home\lib\jvm.lib . copy Main.class and Main$1.class to the working dir of the VC project (or the sa ...