• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Build vs Run of Java app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build vs Run of Java app


  • Subject: Build vs Run of Java app
  • From: David Wright <email@hidden>
  • Date: Thu, 21 Apr 2005 12:09:57 +1000

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:
This email sent to email@hidden


  • Prev by Date: Re: Regular Expressions Back-references
  • Next by Date: Undefined Symbols error while linking in Xcode
  • Previous by thread: Re: Creating a new project by using an Applescript script
  • Next by thread: Undefined Symbols error while linking in Xcode
  • Index(es):
    • Date
    • Thread