Java Compiler - Eclipse Compiler



as sbt can compile java files ( ) is it possible to replace the used compiler? Eg. javac with the eclipse compiler (jdt).



Not unless jdt supports the same public compiler API as Javac. What is your use case?


hi jvican,

I read that jdt supports multicore cpus and is faster.

best regards


If you’re interested in implementing this, you could try to implement your own in Zinc (Scala and Java’s incremental compiler). You would most likely need to read the contributing guide, depend on JDT and see if you can fit it in the Java Tool and JavaCompiler interfaces.