In order to faithfully emulate production, the dev_appserver only loads
application code from WEB-INF/classes and WEB-INF/lib. If you want to avoid
copying the jars into WEB-INF/lib, you could soft link them instead.

On Sat, Mar 19, 2011 at 7:21 AM, Benjamin Muschko <
[email protected]> wrote:

> Didier,
>
> Thanks for your reply. I am not using Eclipse. Instead I was trying to
> run KickStart.main() within an existing Java process for a build
> plugin. The Ant page you mentioned simply copies the JARs into WEB-INF/
> lib. In the meantime I found a workaround for what I was trying to do.
> Still...I'd still be interested to know if you can add additional JARs
> when calling KickStart.main().
>
> Thanks,
>
> Ben
>
> On Mar 19, 1:21 am, Didier Durand <[email protected]> wrote:
> > Hi,
> >
> > You will be ok if you add not only 1 single gae jar (appengine-tools-
> > api.jar) but all those (about 2) appearing in the GAE sdk library on
> > Eclipse when you create a new project + those needed to run locally.
> >
> > The simplest way for you is to follow he hints given inhttp://
> code.google.com/appengine/docs/java/tools/ant.html
> >
> > regards
> >
> > didier
> >
> > On Mar 18, 8:55 pm, Benjamin Muschko <[email protected]>
> > wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > I have a question about the runtime classpath that is being used when
> > > starting up a local development server. It is required to set
> > > appengine-tools-api.jar in the classpath a parameter. My application
> > > directory "web_app_dir" does not include some of the libraries that
> > > are required at runtime (see below someother.jar); they sit in a
> > > different directory. I tried to add them using the -cp parameter but
> > > they don't seem to get evaluated. I get a
> > > java.lang.NoClassDefFoundError. This is the call I make:
> >
> > > java -cp /home/ben/dev/tools/appengine-java-sdk-1.4.2/lib/appengine-
> > > tools-api.jar:/home/ben/dev/someother.jar
> > > com.google.appengine.tools.KickStart
> > > com.google.appengine.tools.development.DevAppServerMain web_app_dir
> >
> > > Can somebody please shed some light on this? Are only the libraries
> > > used that sit in web_app_dir/WEB-INF/lib? Is there any way I can add
> > > additional libraries using an parameter?
> >
> > > Thanks,
> >
> > > Ben
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to