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: Double clickable script question[Explanation of SOLUTION]



Doug Zwick <email@hidden> wrote:

>> -[NSJavaVirtualMachine initWithClassPath:] cannot instantiate a Java
>> virtual machine
>>
>> my java app quits "unexpectedly" and yet Safari opens anyway!
>
>I suspect something is fundamentally messed up in your
>XCode project. Try building and running a simple test
>case from the command line using javac and java, like
>this code put into file ExecTest.java:

I think the problem is an NSJavaNeeded key being set to YES in the
Info.plist.  Change the setting to NO and the error message should go away.
Or remove the key entirely, though that might cause Xcode to helpfully add
it back, again set to YES.

If that's the problem, it's a long-standing problem in Xcode, and even in
PB, as I vaguely recall.  Some templates are wrong, so please be sure to
file a bug-report.

  -- 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



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.