Dec 17 2006
Solution to “Error starting modern compiler”
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
very useful, thanks !!
Thanx a bunch for the tip. It worked.
Thanks a lot for the tip! Was finally able to resolve this problem after many unsuccessful attempts.
Thanks it worked like charm
thanks!
thanks a lot!
THX man, great help!
thanks a lot !!
Thanks a lot.
thanks
thanks a lot
thanks a lot
Correct explanation.
But you also need to mention that once the Java VM has been changed in Eclipse, it needs to be restarted before Ant build.xml is being executed again or else the error will still remain.
Althought changing my VM the error raises again.
Reason: I changed to a JRE (!) as VM. So Eclipse still uses the tools.jar from the unwanted (JDK) VM (see Dialog: External Tools -> Classpath->Additional Tasks&Support)
By changing to the wanted JDK(!) VM the error disappear
My 2 cent: above recipes didn’t work in my case. Setting -Xmx1024m for Ant Run Configuration in Eclipse is what ailed me. Cheers!
[...] 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 [...]
Could you maybe write how i can fix that exactly? I mean changing the VM so that both use the same?
Thanks! It worked wonders
Great. It worked. Earlier I was playing with Java 1.5 and 1.6 which caused this problem.
But, I had to restart Eclipse IDE after changing the JAVA_HOME environment variable on Windows.
Thanks, it saved my day!!
thanks ! save my day!!
changing the VM so that both use the same
This is the solution..
thanks mate !!, it helped a lot
Excellent !
Thanks for this one.
Etienne
-Xmx1024m is what worked for me, why I’m not 100% sure. I’m guessing my project reached a point in terms of size that it caused the compiler to die. Weird. Anyhow just in case you see this error and you know your JVM is set up correctly try adding -Xmx1024m.
[...] a solução aqui: http://www.pitr.net/index.php/2006/12/17/error-starting-modern-compiler/ Share/SaveLeia mais: About (37.5%) similaridadeThe method getELContext() is undefined for the type [...]
Whoa… it worked
Thanks. It worked like a charm.
Thanks dude!!!… this is the solution!
Thanks Dude! It worked after changing JAVA_HOME and adding -Xmx1024m.