This discussion is archived
3 Replies Latest reply: Oct 3, 2011 11:15 AM by jschellSomeoneStoleMyAlias RSS

How to statically link to jvm.dll?

892054 Newbie
Currently Being Moderated
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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points