Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse won't show the errors...

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I opened a project in eclipse... I have the following code...





And then I tried inserting some random statements so the compiler would generate an error... For example... I tried typing


"asdasdwqdasdcdasd"


somewhere in my code... This should generate an error of some sort... But when i tried to build all/project... No error is showing up... Any ideas? Thanks!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18009
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Timothy Sam:
I opened a project in eclipse... I have the following code...


.....

And then I tried inserting some random statements so the compiler would generate an error... For example... I tried typing


"asdasdwqdasdcdasd"


somewhere in my code... This should generate an error of some sort... But when i tried to build all/project... No error is showing up... Any ideas? Thanks!


Not without further info. Although it doesn't look like the hot-compile feature is working. Do you have a designated target for the compiled class files? By default, it would be "bin".
 
Franck Smith
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try to check that :
- you are in the java view.
- your project has the javanature in you .project (that you can see in ressource view)
- your source path is referenced as "kind=src" (if your source are in src/java) in the .classpath that you can see in the ressource view.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic