Re: installer problem



In article <Hn5Ug.14290$j7.331243@xxxxxxxxxxxxxx>,
"patrick" <networkone@xxxxxxxxxx> wrote:

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

There's nothing in your sample that shows what's actually contained in
the "command" variable, so I'm guessing it's basically just
"keytool.exe" or something close. If that's the case, then it seems
likely that the system's search path is being used to locate the
keytool.exe file, which you don't want. If you've bundled a JRE with
the application, you want to ensure that you use its keytool.exe by
specifying the path relative to your application's starting point.
--
Steve W. Jackson
Montgomery, Alabama
.



Relevant Pages

  • Re: MatLab GUI doesnt appear
    ... I tried both command lines, none of them worked:(They caused this message: ... to specify an alternate JRE, but MATLAB cannot find it. ... It seems that it's a Java related problem, eventhough I've installed the Sun Java Runtime Environment 6 architecture dependent AND independent files, according to Synaptic. ...
    (comp.soft-sys.matlab)
  • Re: Error when I open PSQL 9.1 Control Center
    ... To fix this: ... Uninstall all copies of the JRE. ... If you issue the command "java -version" from the command line, ...
    (comp.databases.btrieve)
  • Re: installer problem
    ... patrick. ... I run the installer on a machine with a JRE 1.6 already ... where command is a keytool.exe command. ...
    (comp.lang.java.programmer)
  • Re: newbie: to pipe the result of a program as commandlineparameter for another.
    ... the answer to your question would be: use xargs or put the ... > second command between apostrophes. ... OK, life's happy, remove all jre* files in the /tmp heirarchy. ... To unsubscribe, ...
    (freebsd-questions)
  • Java on 5.3
    ... When I check "Java console" on Mozilla, ... Moreover, such a command as ... pkg_add -r jre ...
    (comp.unix.bsd.freebsd.misc)