

\SOFTWARE\JavaSoft\ key so I added each with their respective string values pointing to my x86 version (PDFsam is a 32bit program). I looked in the registry after reading this post and there was no. Tried uninstalling/reinstalling and rebooting repeatedly as well as using JavaRa. I Have both 32 and 64 bit versions and they check out fine at the java website in their respective browsers. I was trying to get PDFsam (PDF Split and Merge) to work to no avail.Īt launch it would produce an error stating that it could not find JRE 1.6.0. It seems like it's defaulting to another, system-wide expected location.ĭoes anyone know how I can change this, so that it looks in my application-provided java environment directory? Ideally, this will be an environment variable, as I need to call this application with parameters using a batch file.I would have tagged this as a comment but cant (dont have the rep) just wanted to thank Tilman. I've set my JAVA_HOME environment variable to this location. The problem is, I don't understand WHY it doesn't look in the jre\jre1.6.0_21 directory in my application path. I think I understand what is happening here - I want to use the server version of the jvm.dll file, which is in our jre directory.


But, if I put my 'Orange.exe' in the bin\ directory, then I get the following error:Įrror: no 'server' JVM at 'C:\Program Files\Java\jre6\bin\server\jvm.dll' When I use Java.exe as the launcher, which is located in \jre\jre1.6.0_21\bin, or if I place the copy (call this exectuable 'Orange.exe') I made in this directory, it works just fine. Now, we also have a jre/ directory in our file tree, which is where Java.exe actually resides (we ship our product with the Java environment). This exe is in our bin/ directory of our application file tree. I'm trying to write a launcher ("write" is somewhat of an overstatement here, I'm basically just copying the Java.exe file so that we can get the desired name in the process explorer of windows). I'm running a java application that we distribute as a server-side system.
