The Artima Developer Community
Sponsored Link

Java Answers Forum
deploying packages

2 replies on 1 page. Most recent reply: Jul 15, 2002 8:12 AM by vic

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
vic

Posts: 3
Nickname: bikoy
Registered: Jul, 2002

deploying packages Posted: Jul 11, 2002 11:25 AM
Reply to this message Reply
Advertisement
i'm new to web dev't in general and need some help

we currectly have a web app. for Project X.

the jar files used in the web app are in the ff directory:
/opt/www/mywebapp_name/java/mywebapp_name/WEB-INF/lib

For the same project, we now have a java application (myapp) that we will run in 'batch' mode (using cron).

we'll put myapp and related user defined classes in a package and then jar them. say we call it myjar.jar

Question: where should I deploy myjar.jar to? should it be in the same directory where the jar files for the web application (mywebapp) are? again, myapp is a standalone java aplication, not a servlet, not a web application.


Jay Kandy

Posts: 77
Nickname: jay
Registered: Mar, 2002

Re: deploying packages Posted: Jul 12, 2002 6:09 PM
Reply to this message Reply
I dont see a webapps in the path specified. Containers have webapps/a_web_app_name where a_web_app_name hosts an application. Under this is WEB-INF. Under this comes lib and classes. All jars commonly used within a context go into lib. Servlets go into classes.

If your servlets make use of "myjar.jar", most probably it should go into WEB-INF/lib.

Hope that helped,
Jay

vic

Posts: 3
Nickname: bikoy
Registered: Jul, 2002

Re: deploying packages Posted: Jul 15, 2002 8:12 AM
Reply to this message Reply
yes i do have servlets in the classes folder.

however, my question was for a batch java program.
should i put it in the classes folder as well?
if i put them in a jar file, should i instead put it in the lib folder?

thanks.

Flat View: This topic has 2 replies on 1 page
Topic: Removing GUI Compenents Previous Topic   Next Topic Topic: Java /c# for Linux? and more linux questions

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use