MaDKit forum

Welcome All !
Please, use explicit topic names when creating new threads. Thanks.

You are not logged in.

#1 2009-04-20 17:15:18

fmichel
Administrator
From: Montpellier
Registered: 2009-03-24
Posts: 176
Website

- Project management - BUILD FAILED Unable to find a javac compiler;

BUILD FAILED
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

This means that MadKit, searching the classpath, cannot find the required java library (tools.jar) to compile your project.

Two solutions :

(1) create an OS environment variable called JAVA_HOME pointing to the JDK installation directory :
Under linux, in your .bashrc :
JAVA_HOME=pathToJDK/
export JAVA_HOME

(2) copy the jar file named tools.jar from the JDK lib directory to the MadKit lib directory

For those who read French : plus d'informations dans MadKit pas à pas

Offline

#2 2009-04-21 18:13:39

aroussi_sanaa
Member
Registered: 2009-04-17
Posts: 6

Re: - Project management - BUILD FAILED Unable to find a javac compiler;

Merci beaucoup fmichel.

Offline

Board footer