Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Eclipse won't show the errors...

 
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!
 
Saloon Keeper
Posts: 22524
151
Android Eclipse IDE Tomcat Server Redhat Java 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".
 
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.
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic