doanduyhai / Achilles

An advanced Java Object Mapper/Query DSL generator for Cassandra
http://achilles.archinnov.info
Apache License 2.0
241 stars 92 forks source link

Unknown compiler when using Eclipse #311

Open tmonning opened 7 years ago

tmonning commented 7 years ago

Hi, I followed the configuration tutorial for setting up Eclipse and configured the *.shaded.jar as annotation compiler but I always get the following error: Unknown compiler, only standard Java compiler and Eclipse ECJ compiler are supported

I'm using JDK 1.8.0u144 and Eclipse Neon 4.6

doanduyhai commented 7 years ago

Let me check

doanduyhai commented 7 years ago

Ok I see the problem. With Eclipse 4.6, the internal library for Eclipse Compiler has changed. Achilles test for Eclipse Compiler then fails:

        try {
            Class.forName("org.eclipse.jdt.internal.compiler.apt.model.TypeElementImpl");
            HAS_ECJ_CLASSES = true;
        } catch (ClassNotFoundException e) {
            HAS_ECJ_CLASSES = false;
        }