xcode 3 java package problem
xcode 3 java package problem
- Subject: xcode 3 java package problem
- From: Dave Mihalik <email@hidden>
- Date: Sun, 24 Feb 2008 01:16:09 -0500
The following used to work with Xcode 2.4
Step 1: Create a new Java Tool project called test1
Step 2: Enter the following code in the test1.java text file:
package mypackage.mytest
public class test1
{
public static void main(final argv[])
{
System.out.println("test")
}
}
Step 3: Edit the manifest file to look like this:
Main-Class: mypackage.mytest.test1
Step 4: Build and Go
This used to work in Xcode 2.4 but I get the following error in Xcode 3:
Exception in thread "main" java.lang.NoClassDefFoundError: test1
If I open a terminal window and change directories to the test1 folder,
I can compile with this command:
javac -d bin src/test1.java
and execute with this command from the src folder:
java mypackage.mytest.test1
How to I get my program to compile properly from the Xcode 3 IDE?
Any help is appreciated
_______________________________________________
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