cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

JVM shutdown hook not working in custom JVM within Editor 5.3

ptc-953960
1-Newbie

JVM shutdown hook not working in custom JVM within Editor 5.3

I'm off the standard JVM when running Editor 5.3. We use either:


# Java VM Version 11.2-b01 -- Sun Microsystems Inc.
set javavmpath= 'C:\Program
Files\Java\jdk1.6.0_12\jre\bin\client\jvm.dll';

# Java VM Version 14.1-b02 -- Sun Microsystems Inc.
set javavmpath= 'C:\Program Files\Java\jre6\bin\client\jvm.dll';

My results are the same for either version of the JVM.

If anyone is interested in this esoteric problem, then I invite them to
test on their platform (with the stock JVM shipped with their version)
and report their results.

I've been trying to take advantage of the Java method
"File.createTempFile(...)" where the temporary file thus created can be
flagged for automatic destruction upon the termination of the JVM by
calling the "deleteOnExit()" method.

Unfortunately, it appears this may not work in Windows due to two bugs.
A work-around has been proposed at:


machine, as defined by the Java Language Specification."

I'm wondering what needs to be done to make the sample program below work.

To that end, I have created a sample file which demonstrates that the
shutdown hook works in a JVM you create in a DOS console whereas in the
Arbortext JVM, it does not. ...




































































































0 REPLIES 0
Top Tags