java.library.path fix for MacOS X (7145798)
swingler at apple.com
Sun Feb 19 09:37:21 PST 2012
Sure. Anything except plain "Java" will work for that Info.plist key, technically. "JavaRuntime" is as specific as a descriptor as I've heard so far.
On Feb 18, 2012, at 2:22 PM, Igor Nekrestyanov wrote:
> Would "JavaRuntime" work for plist file?
> On 2/18/12 2:09 PM, Mike Swingler wrote:
>> Oh. Well, the name just seems a little odd to me, since there isn't actually a Java "VM" in there, per-se. Obviously the one hardcode path for the native library path will have to be changed too (or be derived from the same #define).
>> That's why I had originally left the directory "Java" and changed the key to "JVMInfo", since it was info to be consumed by the JVM (technically the launcher). Perhaps key should be "JavaAppLauncher" to be clear about who the information is being handed off to.
>> I just prefer to be pedantically accurate with the labels of these things,
>> Mike Swingler
>> Apple Inc.
>> On Feb 18, 2012, at 12:03 PM, Greg Brown wrote:
>>> Actually, I changed the directory to JavaVM as well, for consistency with the plist entry. Is there any technical reason not to do that? It did not appear to cause any problems during my testing.
>>> On Feb 18, 2012, at 12:01 PM, Michael Hall<mik3hall at gmail.com> wrote:
>>>> On Feb 18, 2012, at 10:42 AM, Mike Swingler wrote:
>>>>> The bundle directory has not been changed to "JavaVM", only the Info.plist key for the dictionary that describes all the Java options. Nothing should be attempting to assemble an (app)/Contents/JavaVM directory.
>>>> After you asked Greg to change the plist key he posted a updated demo that now shows....
>>>> ls /Volumes/SwingSet2/SwingSet2.app/Contents
>>>> Info.plist MacOS PlugIns
>>>> JavaVM PkgInfo Resources
>>>> JavaVM. Something extra got picked up with the plist change maybe?
>>>> But after you mentioning that I did try just changing the directory manually to 'Java' but that doesn't seem to show launching at all and has this in console...
>>>> 2/18/12 10:52:08 AM JavaAppLauncher Could not enumerate Java directory contents.: (
>>>> 0 CoreFoundation 0x00007fff83904784 __exceptionPreprocess + 180
>>>> 1 libobjc.A.dylib 0x00007fff82739f03 objc_exception_throw + 45
>>>> 2 CoreFoundation 0x00007fff839045a7 +[NSException raise:format:arguments:] + 103
>>>> 3 CoreFoundation 0x00007fff83904534 +[NSException raise:format:] + 148
>>>> 4 JavaAppLauncher 0x00000001a4b17bd6 launch + 1078
>>>> 5 JavaAppLauncher 0x00000001a4b17676 main + 102
>>>> 6 JavaAppLauncher 0x00000001a4b17604 start + 52
More information about the macosx-port-dev