Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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: 38508
653
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!