Re: newbie creating object
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