Re: Program compiles, but does not run
Re: Program compiles, but does not run
- Subject: Re: Program compiles, but does not run
- From: Greg Guerin <email@hidden>
- Date: Fri, 9 Jan 2009 15:15:10 -0700
Brigit Ananya wrote:
I am new to XCode, and I am trying to port a Java application from
the PC to the Mac. The program compiles, but does not run.
Which version of Mac OS X? Xcode?
Is your Xcode project built by Ant? Does it have a build.xml file?
In general, you don't need to recompile Java source to run it on the
Mac. Jar-files are already cross-platform. You can just copy the
jar file(s) and put them in an app-bundle with a suitable Info.plist,
icon-file, etc. An exception to this is if you use JNI libraries,
which do need to be compiled for Mac OS X.
When I try to run the ...app, I get the message that the main class
is not specified, etc.
The message you posted suggests that the Info.plist is incorrect.
Please post the XML contents of your Info.plist.
When I try to run the ...jar, I do not get the message that the
main class is not specified, but I do get the message that there is
no Manifest section for bouncycastle, etc.
This suggests that your Manifest does not specify the signatures for
one or more bouncycastle classes.
Why do I need org/bouncycastle/asn1/DEREnumerated.class, and how
would I have to specify it in Manifest?
Are you directly using or referencing any bouncycastle classes? If
so, exactly how are you including these classes in your build? That
is, are you merging the bouncycastle jar into another jar, copying a
jar-file into the app-bundle, or something else.
If you are not using or including any bouncycastle classes, even
indirectly, then you'll have to tell us what classes or jars you are
including.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden