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: OT: set memory use for jar in manifest



On Monday, April 26, 2004, at 03:22 PM, Greg Guerin wrote:

"J.P.Lewis" <email@hidden> wrote:

Is there a way to set the -mx memory use parameter?
My application needs more memory than the default, and it
would be a lot cleaner if it could be specified in the .jar
rather than having to distribute a shell file to launch the program.

There is no way to do this in the JAR or its manifest. I find it one of
the more annoying shortcomings of double-clicked jars.

This seems like one of those it would be easy enough to come up with on your own java launcher.
The two ways to do it would seem to be either...
Have the double-clicked jar Runtime launch with the parameters you want parameter list/plist or in some other way specified to use in launching the java Runtime process. Not that I want to get immediately back into a Runtime discussion. In this though I still think java running java is not the preferred way to go.
The preferred way would probably be the same way Apple does. Have a little native launcher stub that reads a parameter list and launches the jvm. I haven't looked at it yet but I think a sample is provided to do this. You might need separate cross-platform executables although I thought 'fat' options were somehow supported?

Mike Hall <mikehall at spacestar dot net>
<http://www.spacestar.net/users/mikehall>
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: OT: set memory use for jar in manifest (From: Greg Guerin <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.