Re: Java version optimization
Re: Java version optimization
- Subject: Re: Java version optimization
- From: Freek Dijkstra <email@hidden>
- Date: Fri, 14 May 2004 08:55:46 +0200
Hi,
I just post here the quick solution to my problem.
>
I have a problem trying to write code that is optimized for java 1.4 with
>
Xcode. I hope some people can get me on my way. Replies to the java-dev list
>
or me directly, to avoid cross-posting.
The problem was related to the way the Java VM target was set by XCode.
>
Now, when I try this in Xcode, I get the following Exception while executing
>
the code in my Cocoa project:
>
java.lang.SecurityException: Prohibited package name: java.nio.channels
>
at java.lang.ClassLoader.defineClass(ClassLoader.java:474)
>
>
2004-05-14 00:15:11.652 MyApp[3434] Unknown class `MyAppAppDelegate'
>
in nib file, using `NSObject' instead.
The solution to this is NOT to use the "Target VM version" in the "Java
Compiler Settings", but to set the "Target VM Version" in the "Pure Java
Specific" Info.plist settings. If set to 1.3+ the code seems to be optimized
and backward compatible as planned.
For full describtion, see my posting to java-dev with topic
"Java VM target issues".
Kind regards,
Freek Dijkstra
PS: Sorry if I posted to the wrong list, but the nib error made me belief it
was cocoa-related. If there was a prize for giving the most unhelpfull
errors, this would make a change. :-)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.