|
From: Leif M. <lei...@ta...> - 2009-11-06 20:57:33
|
Jason, The Professional Edition has a way to execute a script before launching the JVM. You could use that opportunity to copy a fresh copy of the java.exe over to MyProgram.exe so you make sure you always have the correct file. I have not played with the auto update feature in the past. How is it triggered? Is it automatic? I would think that any JVMs need to be stopped before updating their files. Is that the case? If I understood how you made use of this a little better, it may be possible to get make the Wrapper support these JVM updates more directly. Cheers, Leif On Sat, Nov 7, 2009 at 12:00 AM, <Jas...@sc...> wrote: > > Hi, > > This isn't solely related to wrapper processes, but I've had a lot of hassle > with Sun's auto-updating mechanism trashing the installed JRE on Windows. > > You end up with: > > C:\>java -version > Error occurred during initialization of VM > java/lang/NoClassDefFoundError: java/lang/Object > > It seems to be the fact that I am using the Invocation API > (http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/invocation.html), mostly > so that users see "MyProgram.exe" rather than "java.exe" in the task > manager. The wrapper calls my executable which parses all arguments > similarly to java.exe but creates its own VM. Unfortunately the installer > doesn't notice that my program is running and merrily installs, trashing > itself in the process. > > Anyone else suffered similarly? Any known workarounds? > > Jason Chown > Sony Computer Entertainment Europe Limited > http://eu.playstation.com > |