• 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: newbie creating object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie creating object


  • Subject: Re: newbie creating object
  • From: Mike Schrag <email@hidden>
  • Date: Tue, 11 Dec 2007 23:38:28 -0500

newtable = new thetable();

That is a rather odd / poor choice of name for an entity. May I suggest a tutorial?
...
I don't see that this has _anything_ do with with Xcode vs Eclipse. You have an error in your code somewhere. Is there any more to the error message than that?
I agree 100% ... This seems like just Java programming problems here.

A couple points here that I suspect are affecting you:
1) If you're using the default project templates, they put the sample classes in packages, like a proper WO app should
2) If you setup your model to not put your entity classes in packages, they will generate in the Java default package
3) Java does not allow classes in packages to import classes that are NOT in packages (this is a restriction of the Java language, not Eclipse)
4) Corollary: Define your entities class names to be in a package
5) If you have a Java build error in your class, unless you know what you're doing, your app isn't going to run. It's not worth trying until you correct every Java build error that appears in Problems view first. I would put $10 on the error you are seeing is an InvocationTargetException chained to an Eclipse injected CompileError because you attempted to execute code that uses a class that isn't imported.
6) Once your classes ARE properly in packages, cmd-shift-o = organize imports = automatically guess the imports for your code


ms

_______________________________________________
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


References: 
 >newbie creating object (From: Theodore Petrosky <email@hidden>)
 >Re: newbie creating object (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: newbie creating object
  • Next by Date: WO In Around DC/ MD/ VA For Windows?
  • Previous by thread: Re: newbie creating object
  • Next by thread: Re: newbie creating object
  • Index(es):
    • Date
    • Thread