• 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
Re: New java class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New java class


  • Subject: Re: New java class
  • From: Art Isbell <email@hidden>
  • Date: Thu, 6 Apr 2006 16:15:10 -1000

On Apr 6, 2006, at 4:06 PM, netBrackets wrote:

I simply want to add a new Java class to my webojbects project in xcode.  I choose File->New File and pick Webobjects Java Class as the type of file in the wizard.  I add it to my ApplicationName target and neither of the other ones.  The java file is created fine and looks like this:

import com.webobjects.foundation.*;
import com.webobjects.eocontrol.*;

public class temp {

}

Then, when I compile my build, making no  other changes to the file, I get a compiler error that the imported packages in the new class (temp) don't exist.  I have many other Java classes in this same project which import these same exact packages, and they compile fine.  How can this be???

Because JavaFoundation.framework and JavaEOControl.framework are not in the ApplicationName target (nor should they be).  I can't think of a reason why a Java source file would ever be in the ApplicationName target.  Try removing temp.java from the ApplicationName target and adding it to the Application Server target which should also contain JavaFoundation.framework and JavaEOControl.framework.

Aloha,
Art

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: New java class
      • From: netBrackets <email@hidden>
References: 
 >New java class (From: netBrackets <email@hidden>)

  • Prev by Date: New java class
  • Next by Date: Re: Problem of Building project converted from Objective C
  • Previous by thread: New java class
  • Next by thread: Re: New java class
  • Index(es):
    • Date
    • Thread