Compiler keeps reverting back to Ajc


Using IntelliJ 10 Ultimate. I am running JDK 1.5, compiling down to 1.4.

Every once in awhile when there are compile or dependency issues, the Compiler will switch from Javac to Ajc when I do a MAKE. I don't have the exact steps but it seems really sporadic and occurs daily.

How can I fix this?


Comment actions Permalink

Hi Gary,

This is happening on Maven project reimport.
To fix either remove AspectJ compiler from your Maven project, or disable AspectJ support plugin.

Comment actions Permalink

Having this same issue in 2020.
Wouldn't there be a solution to 'fixate' the compiler on 'javac' 
and by that disabling the automatic behaviour of IntelliJ?

Comment actions Permalink

Should have been done in IntelliJ IDEA 2019 in the scope of this bug:

If it does not work for you, please submit an issue on YouTrack with a sample project attached (including .idea directory). 


Please sign in to leave a comment.