Kapt and java 9

Hello guys,

I am trying to compile my project with java 9, but I get error from Kapt, “‘tools.jar’ was not found, kapt may work unreliably”.
[ERROR] java.lang.NoSuchMethodError: org.jetbrains.kotlin.kapt3.javac.KaptTreeMaker.TopLevel(Lcom/sun/tools/javac/util/List;Lcom/sun/tools/javac/tree/JCTree$JCExpression;Lcom/sun/tools/javac/util/List;)Lcom/sun/tools/javac/tree/JCTree$JCCompilationUnit;

Is there no support for java 9 yet? I receive that error because I need apply one processor (“mapstruct-processor”) .

1 Like

Same here. Kapt is deprecated as per it’s page, should be replaced by Kotlin Symbols Processor, but I have no idea how to use that with spring-context-indexer. There’s no docs on how to use it with Maven.