Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Setting -Xmx dynamically at launch time under 64bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting -Xmx dynamically at launch time under 64bit



Using a bash script instead of a JavaApplicationStub in the application bundle allows for changing the parameters. However, this breaks the handleOpenFile() functionality: the event signal never arrives at the handleOpenFile ApplicationEvent event. Some similar concepts were previously proposed in this thread:

This sample lets you to do whatever checks you need to do in native, start the JVM based on your own parameters, and then parks itself in CFRunLoop() to wait for the AWT to start:
<http://developer.apple.com/mac/library/samplecode/simpleJavaLauncher>

What about a java launcher stub. Use Runtime exec to launch a java process. I think this is what the Apache common launcher project code amounts to. It is based on the Tomcat or some such product launcher code and uses a ant task approach but I think in the end just amounts to Runtime exec'd java. Assuming you can decide at Runtime what parameters you want to use.

Do these also break the double-click-on-a-data-file mechanisms? Any thoughts how one could get around this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

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 © 2011 Apple Inc. All rights reserved.