Re: jar files

2005-08-24 Thread Tim Funk
Personally - I prefer jar files. Its one file to keep track of. Instead of 
100's of .class files. When you start building up your library - you start to 
get a large directory of WEB-INF/classes. It much easier to manage them as 
jar files.


-Tim

Mott Leroy wrote:
This probably sounds like a very newbie question, but for your own 
application classes, (not third party), is there any particular reason 
to jar them and put them into WEB-INF/lib vs compiling them as class 
files to WEB-INF/classes? The classloader won't blindly just load the 
whole jar will it? For an applet, using Jars makes some sense to avoid 
continually downloading class files, what are the advantages for web 
applications?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jar files

2005-08-24 Thread Mott Leroy
Ultimately, after a build, it's just a war file, so that's not really 
an issue for me.


Tim Funk wrote:
Personally - I prefer jar files. Its one file to keep track of. Instead 
of 100's of .class files. When you start building up your library - you 
start to get a large directory of WEB-INF/classes. It much easier to 
manage them as jar files.


-Tim

Mott Leroy wrote:

This probably sounds like a very newbie question, but for your own 
application classes, (not third party), is there any particular reason 
to jar them and put them into WEB-INF/lib vs compiling them as 
class files to WEB-INF/classes? The classloader won't blindly just 
load the whole jar will it? For an applet, using Jars makes some sense 
to avoid continually downloading class files, what are the advantages 
for web applications?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JAR Files needed

2002-10-29 Thread Julius Davies

Brian Brookwell,

Officially, you need J2EE (Java 2, Enterprise Edition).  Go to http://java.sun.com to 
download it.  After installing J2EE you'll find a jar file called j2ee.jar which 
contains everything you need to compile servlets.

Personally, I just dip into $TOMCAT/common/lib and use the jar files in there.  For my 
own web applications I tend to need servlet.jar, activation.jar and mail.jar.  
These are just subsets of j2ee.jar.

yours,

Julius Davies, Programmer, CUCBC
Email: [EMAIL PROTECTED], Ph: 604.730.6385




 -Original Message-
 From: Brookwell Brookwell [mailto:BrookwellB;MacEwan.ca]
 Sent: Tuesday, October 29, 2002 10:17 AM
 To: [EMAIL PROTECTED]
 Subject: JAR Files needed
 
 
 This is the first time I've tried getting a servlet running 
 under Linux.  We're using TOmcat and I'd like to know what 
 JAR files are needed tocompile the servlet.
 
 Brian Brookwell
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: JAR Files needed

2002-10-29 Thread Garrett Smith

Add servlet.jar to your classpath:
CATALINA_HOME/common/lib/servlet.jar

You do this with an Ant task if you're using Ant.

Garrett

--- Julius Davies [EMAIL PROTECTED] wrote:
 
 Brian Brookwell,
 
 Officially, you need J2EE (Java 2, Enterprise Edition).  Go to
 http://java.sun.com to download it.  After installing J2EE you'll find a jar
 file called j2ee.jar which contains everything you need to compile
 servlets.
 
 Personally, I just dip into $TOMCAT/common/lib and use the jar files in
 there.  For my own web applications I tend to need servlet.jar,
 activation.jar and mail.jar.  These are just subsets of j2ee.jar.
 
 yours,
 
 Julius Davies, Programmer, CUCBC
 Email: [EMAIL PROTECTED], Ph: 604.730.6385
 
 
 
 
  -Original Message-
  From: Brookwell Brookwell [mailto:BrookwellB;MacEwan.ca]
  Sent: Tuesday, October 29, 2002 10:17 AM
  To: [EMAIL PROTECTED]
  Subject: JAR Files needed
  
  
  This is the first time I've tried getting a servlet running 
  under Linux.  We're using TOmcat and I'd like to know what 
  JAR files are needed tocompile the servlet.
  
  Brian Brookwell
  
  
  --
  To unsubscribe, e-mail:   
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail: 
  mailto:tomcat-user-help;jakarta.apache.org
  
  
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 


=
http://dhtmlkitchen.com/
JSP | Servlets | DHTML 

Garrett Needs A Job

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Jar files not included in built webapp

2001-08-29 Thread rks

Have you tried Ant? From what you
describe, it sounds like you'd find
it very useful.

Thanks,

Rk
x77309

On Wed, 29 Aug 2001, alex reuter wrote:

 Hello List,
 I am using the build script from tomcat 3.2.3 to compile and distribute my
 webapps.  I have a number of jar files included in the lib folder inside my
 working directory, but when I build the webapp, the jar files are not
 included anywhere inside the WEB-INF directory.

 Am I missing something or misunderstanding how this is supposed to work?  Up
 until now I've used the system classpath but now I need to use separate
 versions of the same jar files in different servlets.

 Thanks,
 Alex






RE: Jar files not included in built webapp

2001-08-29 Thread alex reuter

I believe the build script I am using does in fact use ant:

C:\jdk1.3\bin\java -classpath %CP%;%CLASSPATH%
org.apache.tools.ant.Main -Dtomcat.home=%TOMCAT_HOME% %1 %2 %3 %4 %5 %6 %7
%8 %9

So ant accomplishes what I am looking for, I just have to use it correctly?
Odd.  Not that I am complaining, but every other  feature of tomcat I have
used so far has been amazingly easy to set up.  I guess I just got spoiled.

Any tips or pointers or wise-cracks would be appreciated.

Thanks,
Alex


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 10:50 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Jar files not included in built webapp


Have you tried Ant? From what you
describe, it sounds like you'd find
it very useful.

Thanks,

Rk
x77309

On Wed, 29 Aug 2001, alex reuter wrote:

 Hello List,
 I am using the build script from tomcat 3.2.3 to compile and distribute my
 webapps.  I have a number of jar files included in the lib folder inside
my
 working directory, but when I build the webapp, the jar files are not
 included anywhere inside the WEB-INF directory.

 Am I missing something or misunderstanding how this is supposed to work?
Up
 until now I've used the system classpath but now I need to use separate
 versions of the same jar files in different servlets.

 Thanks,
 Alex






RE: Jar files not included in built webapp

2001-08-29 Thread rks

By using Ant I mean setting up your own
tasks; not merely use Ant utility.

  every other  feature of tomcat I have used
  so far has been amazingly easy to set up.
  I guess I just got spoiled.

You can still get spoiled; this is simple too.
There is a bunch of info on the Ant site.

Rk
x77309

On Wed, 29 Aug 2001, alex reuter wrote:

 I believe the build script I am using does in fact use ant:

 C:\jdk1.3\bin\java -classpath %CP%;%CLASSPATH%
 org.apache.tools.ant.Main -Dtomcat.home=%TOMCAT_HOME% %1 %2 %3 %4 %5 %6 %7
 %8 %9

 So ant accomplishes what I am looking for, I just have to use it correctly?
 Odd.  Not that I am complaining, but every other  feature of tomcat I have
 used so far has been amazingly easy to set up.  I guess I just got spoiled.

 Any tips or pointers or wise-cracks would be appreciated.

 Thanks,
 Alex


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 29, 2001 10:50 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Jar files not included in built webapp


 Have you tried Ant? From what you
 describe, it sounds like you'd find
 it very useful.

 Thanks,

 Rk
 x77309

 On Wed, 29 Aug 2001, alex reuter wrote:

  Hello List,
  I am using the build script from tomcat 3.2.3 to compile and distribute my
  webapps.  I have a number of jar files included in the lib folder inside
 my
  working directory, but when I build the webapp, the jar files are not
  included anywhere inside the WEB-INF directory.
 
  Am I missing something or misunderstanding how this is supposed to work?
 Up
  until now I've used the system classpath but now I need to use separate
  versions of the same jar files in different servlets.
 
  Thanks,
  Alex
 
 






Re: Jar files fro classpath variable

2001-07-04 Thread Kaneda K

At 16:24 04/07/2001 +0300, you wrote:

Hi,

I wanted to ask if there is a way to add more jars to the classpath
environment when Tomcat starts ?
Currently I am linking jar files to the lib directory. Is there
a way to tell Tomcat to load jars from carious directories ?

N.

The tomcat version have different implementation for that, meanwhile you can :

those will add the jars for every webapps
- simply add your jar to the common CLASSPATH
- edit the script (tomcat.sh, start.sh, or the .bat version) to add you jar 
to the CLASSPATH
(using the -cp:/myjar/toto.jar;/myjar/myfunny.jar;.; ... syntaxe)
- add the jars in $TOMCAT_HOME/lib

those will add the jars to a specific webapp.
- add the jars in $TOMCAT_HOME/webapps/myfunnywebapp/WEB-INF/lib

hope this helps




Re: Jar files fro classpath variable

2001-07-04 Thread Tarun Garg
Title: Jar files fro classpath variable



You can modify your tomcat.sh ( or tomcat.bat on 
windows) file to have your jars in the classpath variable.
I myself work on a windows machine, but I guess 
yours is some unix thing. I guess what I am saying should work for you, though I 
can't verify it.
In your tomcat.sh, just before this 
line
export CLASSPATH
you can add your own jars to the classpath. Which 
should look something like,

CLASSPATH=${CLASSPATH}:../myjars/app.jar
export 
CLASSPATH

  - Original Message - 
  From: 
  Nino Uziel 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, July 04, 2001 6:54 
  PM
  Subject: Jar files fro classpath 
  variable
  
  Hi, 
  I wanted to ask if there is a way to add more jars to the 
  classpath environment when Tomcat starts ? 
  Currently I am linking jar files to the lib directory. Is 
  there a way to tell Tomcat to load jars from carious 
  directories ? 
  N. 


Re: .jar files

2001-02-19 Thread [EMAIL PROTECTED]

Check your classpath and ensure that you have $TOMCAT_HOME$/lib/servlet.jar
in your classpath where $TOMCAT_HOME$ is the path to your tomcat directory
(for example: /opt/tomcat/lib/servlet.jar)


See if that helps

Rory
- Original Message -
From: "Kelley, Jeff" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 19, 2001 3:34 PM
Subject: .jar files


 I recently installed a version of apache/ tomcat.  I was able to run the
 SnoopServlet and now want to try and run a different servlet program.  I
 have a .java file - but when I try to compile it, I get errors.  A friend
 mentioned that I check my classpath and make sure that the .jar files
 located in /java/lib directory are included - but I can not find any .jar
 files to include!

 All help is appreciated.

 Jeff

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: .jar files

2001-01-22 Thread André Alves

I'm using HedHat 6.2
--- Andr Alves [EMAIL PROTECTED] escreveu:  Hi,
  I would like to know where I must make the configuration to use
 class contained in an archive jar. 
 Thanks
  
  
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - Buy the things you want at great prices. 
 http://auctions.yahoo.com/
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
  


__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]