Tex Clayton wrote:
>Our application accesses the KeyChain and may listen for incoming
>network connections (does Bonjour count?), so we expect to sign the
>application in the future. From what I see in the Release Notes, we
>can no longer ask users to modify the Java/VM Options/Properties in
>the Info.plist to adjust the heap size, set properties, etc.
>
>Am I missing something? Is there any way to sign an application
>without including the Info.plist? Is there a (not-yet-documented)
>way to specify properties and/or VM options other than the Info.plist?
If you have Xcode installed, ask Spotlight about:
code signing
There's a "Code Signing Guide" in the /Developer/Documentation tree.
Without Xcode installed, search here:
<http://developer.apple.com/search/search.html>
for:
code signing guide
The way to have user-modifiable properties is to put them in a file stored
outside the app-bundle. Then in your code, load the properties-file early
in your app's startup. WHere you put the properties file is up to you. I
have variously used:
~/Library/Preferences/
~/Library/Application Support/
~/.yourAppProfile
/Library/Preferences/
/Library/Application Support/
I've done this many times and it works fine for most properties. In my
experience, the ones it won't work for are not ones that users are likely
to change, e.g. java.awt.headless. YMMV.
Modifiable VMOptions will be a harder one to work around. Sorry, no ideas
for that yet, but it's still early days.
-- 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