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

JDK, Eclipse, Struts2, Ant, Oracle Environment setup

 
Elias Ta
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am starting a new Struts2 project from scratch. It is based on Tomcat 5.5 and will utilize oracle as data source and Eclipse 3.4.
What I want is to be able to use Eclipse as my development environment and automate compilation and deployment through Ant. I could not find a book on setting up environment to prepare. Can you please give me some detailed insight how I can build and run Ant with in the Eclipse env?, I would also like to eventually use Hibernate but I cannot imagine the pieces put together. I would appreciate any insight

Thank you for your help
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using Ant to build your Eclipse project is easy. Go to Project > Properties, and select Builders, and click the New button, select Ant builder, and file in the information about the build script.

Be aware that Eclipse will pass extra settings to Ant and if you are not careful, builds from the command line will behave differently from builds done within Eclipse. Usually, if you test the build script from the command line you will not have problems.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic