Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Java on G5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java on G5



Dmitry Markman <email@hidden> wrote:

>7.Set the bundle bit Finder attribute with /Developer/Tools/SetFile.
>For example, /Developer/Tools/SetFile -a B YourApplicationName.app.

Two points:
A) The Developer Tools are not installed by default.
B) The bundle-bit is superfluous for recent Finders.

That is, there is little reason to set the bundle-bit, since the Finder
doesn't care and the tool to do it may not be present.


>I should add that if you are using standard java methods to copy
>JavaApplicationStub you have to set executable permission too.

This is critical. Much more important than the bundle-bit.

The command to do it is:
/bin/chmod a+x pathname

But since exec(String) does not do quoting, you must use the String[] form:
String[] chmod = { "/bin/chmod", "a+x", targetPathname };

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



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.