title: How to find 32-bit jvm.dll from a batch file
body: <p>I've got a java app that I'm setting up as a Windows Service using <a href="http://commons.apache.org/daemon/procrun.html" rel="nofollow">Procrun</a>.  This app needs to use a 32-bit version of java because of one of the third party libraries used in the app.  I'm trying to write a batch script for users to be able to install the service, similar to <a href="http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html#Installing_services" rel="nofollow">service.bat</a> in the tomcat bin directory. </p>
  
  <p>Procrun uses a --Jvm parameter when installing a service.  This parameter can either be set to  auto or you can specify the full path to the jvm.dll.  I need to find a way to see if 32-bit java is installed and where that jvm.dll is located.</p>
  
  <p>How can I find the 32-bit jvm.dll from a batch file?</p>
  
  <p>I've seen similar questions that say to use java -version to see if its 32-bit or 64-bit, but just because the current version of java is 64-bit that doesn't mean they don't also have 32-bit installed.</p>
  
  <p>Thanks</p>