Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question About Servlets Compiling

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am working on one servlet in the lib folder of my application.

Sometimes when I am working with one of the servlets, the entire collections of servlets also recompiles.

Could you help me figure out why this occurs?

Thanks,
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Compiling a servlet is nothing different than compiling a plain Java class.
So the answer to you question depends on how are compiling the servlet?
Do you use Ant? Any editor like Eclipse? Hand compile through command line?
You need to TellTheDetails.
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a build.xml file in the util dir.
I did not create the app
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is a build file in the util dir in the first place?
Why do people use ant?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ant is a build tool so you don't have to keep typing in the command to compile. build.xml is how you tell Ant what to do and where to find the files.
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know of any tutorials that are good which would help me understand.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The official one is good. As is the book 'Ant in Action".
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I second the vote on Ant in Action. It's a must-have for anyone doing work with Ant.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic