P
patrick
I make an installer for my java application with install4j, bundling a
static JRE 1.5 . I run the installer on a machine with a JRE 1.6 already
installed.
I run the application and it runs OK up to this line:
Process proc = Runtime.getRuntime().exec(command);
where command is a keytool.exe command.
This gives an exception error:
Registry key 'Software\JavaSoft\JavaRuntimeEnvironment\CurrentVersion'
has value '1.6', but '1.5' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
Any idea how to fix this?
Does the keytool.exe start a second JVM ??
Looks like it does and gets confused between 2 different installed versions
of the JRE.
Deleting a java.dll or uninstalling a JRE would not be nice option to fix
this.
patrick
static JRE 1.5 . I run the installer on a machine with a JRE 1.6 already
installed.
I run the application and it runs OK up to this line:
Process proc = Runtime.getRuntime().exec(command);
where command is a keytool.exe command.
This gives an exception error:
Registry key 'Software\JavaSoft\JavaRuntimeEnvironment\CurrentVersion'
has value '1.6', but '1.5' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
Any idea how to fix this?
Does the keytool.exe start a second JVM ??
Looks like it does and gets confused between 2 different installed versions
of the JRE.
Deleting a java.dll or uninstalling a JRE would not be nice option to fix
this.
patrick