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 20:49:43 -0700
Putting jars in the extensions folder is really the recommended course
of action? That seems crazy. That means *all* my apps get those
jars, when I only want them to be there for my WO work!
If I build to a .war, does it do things right?
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.
>
> > 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:
> > email@hidden
> >
> > This email sent to email@hidden
> >
>
>
_______________________________________________
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