Running code with compile errors

5 October 2008

While coding in Java using Eclipse, you might have experienced situations where your Java class has some compile errors but stilly you want to run it. The reason might be that the problematic area might be invoked in your execution. What ever is the reason, Ill briefly explain how to execute code with compile errors.

In Eclipse, you can run and debug code that did not compile cleanly. You cannot do this using command prompt. If line of code with compile error is executed, following can happen:

If you are debugging and you have set: ‘Suspend execution on compilation errors’ preference on the Java > Debug preference page then the debug session will suspend as if a breakpoint had been hit. If your VM supports Hot Code Replace, you could then fix the compilation error and resume debugging.

In normal case, execution will terminate with a ‘unresolved compilation’ error.

del.icio.us:Running code with compile errors  digg:Running code with compile errors  spurl:Running code with compile errors  wists:Running code with compile errors  simpy:Running code with compile errors  newsvine:Running code with compile errors  blinklist:Running code with compile errors  furl:Running code with compile errors  reddit:Running code with compile errors  fark:Running code with compile errors  blogmarks:Running code with compile errors  Y!:Running code with compile errors  smarking:Running code with compile errors  magnolia:Running code with compile errors  segnalo:Running code with compile errors  gifttagging:Running code with compile errors

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: Running code with compile errors

Leave a Reply