Re: Cocoa & Java on Intel fails with "Java for ppc cannot run in this configuration"
Re: Cocoa & Java on Intel fails with "Java for ppc cannot run in this configuration"
- Subject: Re: Cocoa & Java on Intel fails with "Java for ppc cannot run in this configuration"
- From: Alexander Hartner <email@hidden>
- Date: Sun, 7 May 2006 11:52:17 +0100
Thanks for your feedback so far. I made some progress, but still
didn't manage to get it working. My first problems was the
Architectures were not set. After I updated the project target to
native and set the architectures to Intel and PPC I was able to build
a Universal binary. During the update of the target the following
error messages were reported. So I added a new build step "Build Java
Resources" and moved my Java classes from Compile Sources to it.
After that the updated succeeded without problems.
The problem I have not is that in this configuration I am unable to
call my Java classes from PPC as well. It seems that by build
configuration does not support Java. This is something that has been
plaguing me for some time. Before the upgrade of the target I was
using a Legacy Application Target to get the Java options. I have
also tried to configure the Info.plist file as shown below. The
upgrade changed the target to a Cocoa Application, I believe.
If you have any suggestions or maybe an example project file, please
let me know.
Native Target Upgrade Log for Project 'AddressBook4LDAP'
AddressBook4LDAP
Target AddressBook4LDAP cannot be upgraded because it contains the
following files in its Sources build phase which are not supported by
the native build system:
Connector.java
Target 'AddressBook4LDAP' will be copied rather than upgraded.
Upgraded as 'AddressBook4LDAP (Copied)'.
Upgrade postprocessing
Configuring dependencies of upgraded targets
Configuring inclusions of products of upgraded targets
Setting active target to 'AddressBook4LDAP (Copied)'
Setting active executable to 'AddressBook4LDAP (Copied)'
Upgrade process finished.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>AddressBook4LDAP</string>
<key>CFBundleIconFile</key>
<string>AB4LDAP_2</string>
<key>CFBundleIdentifier</key>
<string>com.apple.myCocoaApp</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>j2Anywhere.com</string>
<key>CFBundleVersion</key>
<string>0.0.15</string>
<key>NSJavaNeeded</key>
<string>YES</string>
<key>NSJavaPath</key>
<array>
<string>AddressBook4LDAP.jar</string>
</array>
<key>NSJavaRoot</key>
<string>Contents/Resources/Java</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSAppleScriptEnabled</key>
<string>YES</string>
<key>CFBundleHelpBookFolder</key>
<string>AddressBook4LDAP Help</string>
<key>CFBundleHelpBookName</key>
<string>AddressBook4LDAP Help</string>
</dict>
</plist>
Thanks
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden