Skip to content



Can def classes be hosted in separate project than the code to build ?

Yes. If you prefer that your Jeka code lies in a distinct project, create a Jeka project in a sibling folder and mention where is located the project to build.

Path projectPath = this.baseDir().resolve("../myProject");   

My JkClass does not compile, so I can't invoke any Jeka method as 'scaffold#run'. What can I do ?

Use -dci option in command line.

How to migrate from Maven ?

Jeka helps to translate all dependencies declared in a Maven project into equivalent Java code.

Assuming Maven is already installed and there is a pom.xml file at the root of the project, execute jeka maven#migrationCodeto display Java code to copy-paste in a build class.


How can I choose the JDK used to compile ?

Jeka uses the JDK it is running on to compile production or test code. If code must be compiled on a another JDK version, you can specify JDK path for different version. Just mention it as option, for example in your [JEKA HOME]/ file.


This way, if one of your project source code is declared to be in a specific Java version, the relevant JDK version will be picked up automatically.

How can I use Eclipse compiler in Jeka ?

Jeka can use any JSR199 Java compiler to compile your Java code. Just set the compiler instance you need as :

import org.eclipse.jdt.internal.compiler.tool.EclipseCompiler;

public class Build extends JkBean {

                    .setCompilerTool(new EclipseCompiler());

How can I generate Eclipse/Intellij without using ProjectJkBean ?

Just make your KBean class implementsimplementsJkJavaIdeSupport`.