Solution to “Error starting modern compiler”

Right. So then I had the chance to open a old project in in eclipse today. From an old workspace. Tests still ran, code looked just as bad as badass as before.

Running the clean-build target through ant produced a message I haven’t seen before, though.

C:\Users\tormod.haugen\workspace\PROJECT\build.xml:38: Error starting modern compiler

Luckily Google was just a browser away, and I discovered through pitr’s blog that I needed to update the JVM used by Eclipse to the same as pointed at by JAVA_HOME.

I guess there can be more to it, and I guess you could override JAVA_HOME for that build, but this worked. Thanks.

This entry was posted in Java and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">