Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Difference between java 4 and java 5, 'java' spawns additional process id?

843798Jan 16 2008
Hi,

I use a shell script to start java from another program, e.g:

#!/bin/csh
exec java -jar MyJar

This will startup my java app. However; in java 4 it uses the same process id as the shell, meaning I can also end the process via that ID.

In java 5 the exec keyword does no longer seem to work as the java process now gets a new, higher process ID so killing my 'startup' ID results in a killed shell, but the java continues :-(

Anyone can confirm this feature and or has a solution?

Kind Regards

Marc
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 13 2008
Added on Jan 16 2008
0 comments
210 views