Archive for the 'java' Category

Jan 31 2009

Java weirdness

Published by pj under java

“In Java, int x = 5; x += 2.5; works (x is now 7), whereas int x = 5; x = x + 2.5; gives a type error.”

The first one to explain this wins a free beer .. ;-)

2 responses so far

Dec 17 2006

Apache’s ANT inconsistencies

Published by pj under ant,java,opensource

build.xml:16: The type doesn’t support the “dst” attribute.

Fix: use ‘dest’ instead of ‘dst’. :-(

No responses yet

Dec 17 2006

Solution to “Error starting modern compiler”

Published by pj under eclipse,java,opensource

The eclipse/java error “Error starting modern compiler” when trying to compile something using javac in eclipse is being caused by eclipse using a different java VM than the one JAVA_HOME is pointing to.

Other keywords:

  • eclipse compile error
  • “13: Error starting modern compiler”
  • eclipse cannot compile

30 responses so far