in your xcode project, double-click on your main target. in
Info.plist entries->Simple View look up the "Pure Java Specific"
section. there you can find a list of stuff in the classpath. add
your jars to the classpath.
you can also choose to include the jars in your main jar. this you
can do by going (in the target window) into Build Phases->Link Binary
With Libraries , look up the jars and check "merge". if your jars do
not appear here, be sure to check their target flag in the project
browser (or check "add to target" when using the Add-Files dialog).
this is for xcode 2.2, the naming is a bit different but similar in
xcode 1.5 i think.
best, -sciss-
Am 03.05.2006 um 17:30 schrieb 谢纲:
Hi,all
I want to use some classes of Jar file. So I use the "javac -
classpath some.jar" to
compile my java file, and run it in console. It works well. But
when I try
to use Xcode to build and run my app, there are some problems.
I import the jar files using "add existing files". Then I build
it,there is
no problem. But when I run it, there are some errors. These errors
say that
there are some classes that can not be found.
I don't kown why this happens.
Thks!
_______________________________________________
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