Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Diagnosing build issue in case of automatic build in Eclipse  RSS feed

 
Ranch Hand
Posts: 254
1
Java MySQL Database Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I have a Struts 1.x project that was checked out of SVN that was just a few days back accepting my changes. However it came to my notice yesterday or day before that new .class files are not being created in the /build folder (I checked the modification date of the yet-to-change .class file artifact).

This has me wondering what steps I could take to figure the root cause that's hindering in fully building. I have so far navigated to Project -> Properties -> Java Build Path -> Libraries tab to investigate if any error shows up, but only to know everything's just fine there. I'm thinking of doing a Project -> Clean, but I'm not sure if it's just shooting in the dark.

My question is, how would I narrow down what is causing a failed build? I'm using Eclipse Juno if that matters. Please let me know if I have missed out detailing any more information.

Mods, please move this to IDE/other forum if it suits there better.

 
author & internet detective
Marshal
Posts: 38249
623
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashan,
Project > Clean is a good idea. That sometimes forces Eclipse to "reset" and recover from random errors.

Also, check the .class files aren't being created in the same directory as the .java files. That would happen if your build path got messed up.
 
Ahsan Bagwan
Ranch Hand
Posts: 254
1
Java MySQL Database Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jeanne. I tried the Clean option, but the issue still persists.

Does taking a look at .project and .classpath files help in troubleshooting? Also does the Java compiler in project preferences need to be downgraded?
 
Ahsan Bagwan
Ranch Hand
Posts: 254
1
Java MySQL Database Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deleted the build folder outside the IDE. Worked somehow.
 
Does this tiny ad smell okay to you?
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!