Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Jar Launcher annoyance



David Leader wrote:

>1. Some of the jars of my old simple app don't show this problem (compiled
>against 1.1)
>2. Some third party complex jars don't show this problem (1.4)
>3. My problem jars only show the problem if I quit using the red button or
>the Windows-style internal menu item on the jar, not if quit using the
>quit on the application menu.
>
>So perhaps I should recompile the old simple app (made on OS 9) against
>the current JVM and see if it is the code or the >version.

Just one question this time:

When the red button or the internal menu item is activated, do they lead to
a direct call to exit()?

What might be happening is that those pathways are leading to an exit()
that has a non-zero status, which the parent Jar Launcher process is then
interpreting as a failure.  It's the only reason I can think of that Jar
Launcher would complain like that.

If your code isn't intercepting the application-menu Quit, then that
eventually leads to exit(0), IIRC, so Jar Launcher wouldn't complain about
that exit pathway.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.