3 Replies Latest reply: Oct 3, 2011 1:15 PM by jschellSomeoneStoleMyAlias RSS

    How to statically link to jvm.dll?

    892054
      I've created a JNI based application, a C++ program that calls methods in a Java class. This works great so long as jvm.dll exists in the path. I'd like to remove that restriction, and not have any dependency on jvm.dll. How can I build my application such that jvm is statically linked? My environment is VS2010, i tried changing "Code Generation: Runtime Library to Multi-Threaded (/MT)" (instead of DLL) but it was still dependent on the DLL.

      Any other ideas?

      Thanks
      Simon