www-builds mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robbie Gemmell <robbie.gemm...@gmail.com>
Subject Re: build failed with ''Unable to find a javac compiler' on ubuntu2
Date Wed, 03 Aug 2011 23:19:50 GMT
You, sir, are a genius...or perhaps its more likely in this case that
I am an idiot :S

That sounds far too logical not to be the answer, and after updating
it accordingly and forcing a build it is seemingly working away OK on
ubuntu2 so far. I imagine its going to complete just fine, and work on
ubuntu1 now too. It amazes me I missed that; I blame ubuntu3 for
throwing me off the trail :)


On 3 August 2011 23:31, Niklas Gustavsson <niklas@protocol7.com> wrote:
> I'm not very familiar with matrix builds, but it looks like your
> builds are not choosing a JDK to use. Perhaps you need to add an axis
> that sets the JDK version.
> /niklas
> On Wed, Aug 3, 2011 at 8:24 PM, Robbie Gemmell <robbie.gemmell@gmail.com> wrote:
>> Hi all,
>> In addition to the issue I emailed about the other day wherby I am
>> seeing JAVA_HOME related failures with a matrix project when the
>> configurations run on ubuntu1, the project has also failed on ubuntu2
>> due to being unable to find javac because it is using a JRE (output
>> below).
>> The project continues to work OK when the configurations execute on
>> ubuntu3, but I'd rather not have to restrict it to just ubuntu3, could
>> someone take a look? The project is:
>> https://builds.apache.org/view/M-R/view/Qpid/job/qpid-java-test-matrix/
>> Thanks,
>> Robbie
>> [java] $ /home/hudson/tools/ant/latest/bin/ant -file build.xml
>> -Dlabel=Ubuntu -Dprofile=java-mms.0-9-1 clean build test
>> Unable to locate tools.jar. Expected to find it in
>> /usr/lib/jvm/java-6-openjdk/lib/tools.jar
>> Buildfile: /home/hudson/hudson-slave/workspace/qpid-java-test-matrix/label/Ubuntu/profile/java-mms.0-9-1/trunk/qpid/java/build.xml
>>    [javac] Compiling 5 source files to
>> /home/hudson/hudson-slave/workspace/qpid-java-test-matrix/label/Ubuntu/profile/java-mms.0-9-1/trunk/qpid/java/tasks/classes
>> /home/hudson/hudson-slave/workspace/qpid-java-test-matrix/label/Ubuntu/profile/java-mms.0-9-1/trunk/qpid/java/build.xml:23:
>> The following error occurred while executing this line:
>> /home/hudson/hudson-slave/workspace/qpid-java-test-matrix/label/Ubuntu/profile/java-mms.0-9-1/trunk/qpid/java/common.xml:148:
>> 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.
>> It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"

View raw message