File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes jar vs class in applications Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "jar vs class in applications" Watch "jar vs class in applications" New topic
Author

jar vs class in applications

Rafa Moreno
Ranch Hand

Joined: Nov 19, 2002
Posts: 53
I'm doing an application, presentation with Jsp's and logic with java classes into a jar, accesed like beans.
What's better: use the classes into a jar or use they standalone ?
The question is because the application is not more developed by me alone, and is a little bit dificult to share the updates.
Thak you in advace
Greg Charles
Bartender

Joined: Oct 01, 2001
Posts: 1855

If you're working with JSPs, then you're working with Web Apps. Typically, the classes you develop are put into the classes subdirectory of WEB-INF. Then the whole thing can be put into a war file, which is really just a jar with a different extension. You could also put them into a separate jar, and put the jar into WEB-INF/lib. That's usually reserved for classes that don't change much, especially third-party libaries.
Rafa Moreno
Ranch Hand

Joined: Nov 19, 2002
Posts: 53
Thank you
 
 
subject: jar vs class in applications
 
Threads others viewed
Creating a Jar (NON executable) with all the dependencies
Jdbc driver not found when putting an application in a jar-file
different class-loading mechanism for the same application - possible?
Can I access an Eclipse Plug-in Jar from a normal Java Project
java -classpath
IntelliJ Java IDE