Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build vs Run of Java app



Dear XCode users

This is my first message to the list, I have tried to answer my question by searching the archives, but no luck!

I have taken the following steps:

1. Created new Java Swing Application in XCode
2. Added my java code
3. Added some jar files that I need (jaxb-api.jar, etc)
4. Compiled my application with no errors

When I run the application I get the java.lang.NoClassDefFoundError error, which indicates to me that the built application does not know where the .jar files are located. Using the console I would normally use a classpath option to solve this.

So I tried creating a Copy Files build phase (to executables/$JAVAROOT) and manually adding each .jar file to the classpath in the "Pure Java Specific" section of the target. Unfortunately, this I still get the same error. I also tried manually copying the .jar files into the bundle, but again no luck when running the executable.

Any suggestions on what I am doing wrong, I've already spent too much time on this issue!

Regards

David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/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.