Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JAR,EAR,WAR files

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
while deploying our application in a web server we come across files such as WAR,JAR,EAR...
i want to know the reason why we go for such files???and the details behind the WEB-INF directory structure???
thank you
regards
mah
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think , WAR, EAR,JAR file is very important for test/development/installation . It's easy to use to deploy in all Web Server and Application SErver.
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those are standard application archive files,
Since they are a standard any application server (at least in theory) will know how to unpack and deploy them so that clients can access your application. Makes it easy to deploy your application if it is any one of these files WAR or EAR
WAR is for web,
JAR is standard for packaging your classes and it's resources.
ear is for J2ee application archive which can have jar's as well as war's in them.
WEB-INF again is a standard where you place your application specific 3rd party jars in WEB-INF/lib nad WEB-INF/classes will have your application classes.
JAR, WAR, EAR or kind of zip files where everything you need is zipped up
Hope that helps

Cheers,
Parthi
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
You split class files and have things organized.

Normal Java Files and supporting File - JAR
JAR+WEB Componenets (JSP/HTML/SErvlet)- WAR
WAR+JAR - EAR

WEB-INF this directory will contain Web information. Will contain
/lib
/classes
web.xml file
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic