Re: newbie needs help/advice
Re: newbie needs help/advice
- Subject: Re: newbie needs help/advice
- From: John Watson <email@hidden>
- Date: Sun, 19 Jun 2005 21:37:00 -0700
I'm a senior java web applications engineer already. I know web apps,
I know sql, I know design patterns, I know java. :) I've read lots
of people raving about WO, so I want to learn what it can do for me.
I'm primarily an IDEA user, so I'm used to a pretty sophisticated IDE.
XCode just feels like it does everything in the most complicated way
possible. I guess it seems to me that if I want to add a WO component
to my project, XCode should be smart enough to know that it only makes
sense to add it to the Application target, rather than defaulting it
to the wrong target. There should be some place where I can say "add
this jar to my project" and it should handle it for me. It feels like
it doesn't do the simple stuff that I've come to expect from a modern
IDE. Just frustrating, you know?
John
On 6/19/05, Kieran Kelleher <email@hidden> wrote:
>
> See below.......
>
> Regards,
> -Kieran
> ________________________________________________________________
> Blog: http://webobjects.webhop.org/
>
>
> On Jun 19, 2005, at 10:54 PM, John Watson wrote:
>
> > So, I'm a WO newbie (as I'm sure there will be more coming with XCode
> > 2.1). So far, there are two things which just seem really difficult
> > to me and I don't see why.
> >
> > 1. Adding external jars to the project. What is the recommended way
> > of doing this? I don't like the merge option (which does work for
> > me). Is there a way to get the darn jars to be copied to the
> > classpath without too much effort?
> >
>
> Any jars you want, just drop them in /Library/Java/Extensions directory
> and use the appropriate import statement in any java class to use
> functionality from those jars. Very simple. For example drop the
> jakarta commons lang .jar:
> http://jakarta.apache.org/site/downloads/downloads_commons-lang.cgi
> into that directory and simply use:
> import org.apache.commons.lang.StringUtils;
>
> in your class and use any of the StringUtils functionality for example.
>
> This is the simplest way. Put them in /Library/Java/Extensions
> directory in both dev and deploy machines.
>
>
> > 2. I just added another WO Component to a toy project I'm working on
> > and it won't build because it says it can't find any of the WO classes
> > (my initial "Main" component builds just fine). Why is this hard?
> > Shouldn't xcode automatically make this work for me if I add a new WO
> > component to the project?
> >
>
> When you add a new file/component, it ALWAYS asks which target to add
> the files to. You should select Application for your server-side
> classes. Think about it, almost everything is "Application" target.
> Only static images and the like will be "WebServer" target. Thus when
> building the final app, the correct files will go in the application
> server and the correct files will go on the web server which may be a
> different machine on the network.
>
>
> > I just don't understand why xcode seems so hard to use. Am I just
> > missing something obvious?
> >
>
> Just study the online help a little on the topic of targets and/or
> build styles. Typically there is a development target that builds an
> all in one package for development execution, an application target for
> the end application server classes/code/etc and a web server target for
> files that end up on the web server. Each file in your project, whether
> it be a code file, text file, properties file or an image file should
> logically be destined to one or more target destinations.
>
> > Thanks,
> > John
>
>
_______________________________________________
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