• 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
xcode 3 java package problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Expanding build settings in a secondary .plist
  • Next by Date: Re: Expanding build settings in a secondary .plist
  • Previous by thread: Re: Xcode has no rule to process .xib files in one of my projects
  • Next by thread: Re: xcode 3 java package problem
  • Index(es):
    • Date
    • Thread