arduino / linino

102 stars 47 forks source link

Build fails at `feeds/packages/libs/classpath compile` #13

Closed pbosetti closed 10 years ago

pbosetti commented 10 years ago

When building under Debian 7 I get the following error message: checking if java works... configure: error: The Java VM java failed (see config.log, check the CLASSPATH?)

What should I set in the CLASSPATH var?

ffissore commented 10 years ago

You need the openjdk installed on the build machine

pbosetti commented 10 years ago

I guess it is:

$ dpkg --get-selections | grep jdk
openjdk-6-jre:amd64             install
openjdk-6-jre-headless:amd64            install
openjdk-6-jre-lib               install
openjdk-7-jdk:amd64             install
openjdk-7-jre:amd64             install
openjdk-7-jre-headless:amd64            install
openjdk-7-jre-lib               install

Do I miss something?

ffissore commented 10 years ago

Uhm... could it be that your "java" binary is pointing to the jre version? I'm insisting because wehn we had that problem on the build server, installing openjdk-6-jdk solved it

pbosetti commented 10 years ago

Thanks. I apt-get installed the openjdk-6-jdk package and it worked. So apparently It needs Java 6 and does not build if only Java 7 JDK is installed. I think you can close this issue, and perhaps add that package to the list of the required packages on the arduino.cc playground page that describes how to build the Yùn image.