• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do you compile in Eclipse.

 
Mary Chellapa
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a small struts2 app in eclipse and i could run it successfully.
I am trying out a few things made some change and it is not reflected.
How do i compile the code?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse by default automatically compiles source files as soon as you save them. If you turn off autobuild, then there should be a Build option in the project's context menu. For certain types of projects you might have to do a Clean (found in the Project menu) to get a successful rebuild.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18282
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Compiling the code is just the start, however. To actually test a Struts app, you're going to need to build a WAR and deploy it to a J2EE appserver.

Building a WAR is a complex process which I usually hand off to Ant or Maven.
 
Mary Chellapa
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peter & Tim
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic