Compiler keeps reverting back to Ajc

Answered

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?

Thanks

3 comments
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.

0
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?

0
Comment actions Permalink

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

https://youtrack.jetbrains.com/issue/IDEA-80271

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

0

Please sign in to leave a comment.