Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse does not compile class automatically

 
Jay Shukla
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Actually I am new to Eclipse Galileo IDE and creating basic Struts 2 application in this.
In this IDE Windows --> Preference --> General --> Workspace --> Build Automatically option is selected.

But when you run an application on server i believe you action class should be automatically compiled and converted to .class file.

But the same is not happening with the IDE which i have?

Could any please let me know where to check?

Thanks in Advance.
Jay.

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the folder/package containing the action class one of the source paths in the Java build settings?
 
Jay Shukla
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Thanks for your reply and i undestood what you are asking.
But i have confusion to add folder.

I have User.java which is under below folder.

D:\Eclipse_wrksp\Struts2Application\WebContent\WEB-INF\src\com\kogent

and remaining java files are in

D:\Eclipse_wrksp\Struts2Application\WebContent\WEB-INF\src\com\kogent\action

folder.

So which to be included

\Struts2Application\WebContent\WEB-INF\src\com\kogent

OR

\Struts2Application\WebContent\WEB-INF\src\com\kogent\action

Thanks.

Jay Shukla.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neither; the root of the source directory is "blah/src".
 
Jay Shukla
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok David.

Means Source Path to be set as follows:

/Struts2Application/WebContent/WEB-INF/src

and default output folder would be

/Struts2Application/WebContent/WEB-INF/classes


Is it right?

Thanks.
Jay Shukla.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, you could do that (although personally, I wouldn't put the source code in the same place as the output--too risky).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic