aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How do you compile in Eclipse. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How do you compile in Eclipse." Watch "How do you compile in Eclipse." New topic
Author

How do you compile in Eclipse.

Mary Chellapa
Ranch Hand

Joined: Jul 26, 2011
Posts: 93
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?


Mary
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5837
    
    7

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.


JBoss In Action
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Mary Chellapa
Ranch Hand

Joined: Jul 26, 2011
Posts: 93
Thanks Peter & Tim
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do you compile in Eclipse.