NoClassDefFoundError when running java tool under Xcode

Posted by pancake on Stack Overflow See other posts from Stack Overflow or by pancake
Published on 2010-04-23T11:48:51Z Indexed on 2010/04/23 11:53 UTC
Read the original article Hit count: 205

Filed under:
|

Hi all,

I'm trying to create a Java Tool by using Xcode. I've already changed my build.xml to have Xcode target java 1.6 and not 1.3 so I can use generics. I'm getting no build errors and using 'javac' and 'java' in the terminal works. Now I want it to work in Xcode as well. I keep getting the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: MyClass

where 'MyClass' is the class containing the main method. It probably has something to do with the classpath, which as the build.xml prescribes is "${bin}". There is a bin folder in my project folder, and it contains all the .class files needed to run the program.

If anybody could help me, it'd be great!

© Stack Overflow or respective owner

Related posts about java

Related posts about xcode