Could the problem be you installed jre-1.6.0 and its looking for jdk-1.6.0?



From: [email protected] 
[mailto:[email protected]] On Behalf Of Scott Hoenigman
Sent: Tuesday, April 09, 2013 2:53 PM
To: [email protected]
Subject: Jenkins Build Failure


I am running Jenkins (v1.435) on CentOS and am running into the following issue 
while attempting to build one of my projects:

Executing Maven:  -B -f /var/lib/jenkins/jobs/NewProject/workspace/pom.xml 
install

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Building Unnamed - com.NewProject:jar:0.0.1-SNAPSHOT

[INFO]    task-segment: [install]

[INFO] ------------------------------------------------------------------------

[INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]

log4j:WARN No appenders could be found for logger 
(org.apache.commons.beanutils.converters.BooleanConverter).

log4j:WARN Please initialize the log4j system properly.

[INFO] [resources:resources {execution: default-resources}]

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, 
i.e. build is platform dependent!

[INFO] Copying 24 resources

[INFO] [compiler:compile {execution: default-compile}]

[INFO] Compiling 41 source files to 
/var/lib/jenkins/jobs/NewProject/workspace/target/classes

[JENKINS] Archiving /var/lib/jenkins/jobs/NewProject/workspace/pom.xml to 
/var/lib/jenkins/jobs/NewProject/modules/com/NewProject/builds/2013-04-09_13-18-25/archive/com/NewProject/0.0.1-SNAPSHOT/NewProject-0.0.1-SNAPSHOT.pom

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Compilation failure

Unable to locate the Javac Compiler in:

  /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/tools.jar

Please ensure you are using JDK 1.4 or above and

not a JRE (the com.sun.tools.javac.Main class is required).

In most cases you can change the location of your Java

installation by setting the JAVA_HOME environment variable.



[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 19 seconds

[INFO] Finished at: Tue Apr 09 13:18:52 EDT 2013

[INFO] Final Memory: 29M/69M

[INFO] ------------------------------------------------------------------------

Waiting for Jenkins to finish collecting data

channel stopped

Finished: FAILURE


I am not sure why this build is failing. I have installed OpenJDK as specified 
here<https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions>
 which created the the following symbolic links:

[root@dtis-jenkins ~]# ls -lah /usr/bin/java
lrwxrwxrwx. 1 root root 22 Apr  9 13:17 /usr/bin/java -> /etc/alternatives/java
[root@dtis-jenkins ~]# ls -lah /etc/alternatives/java
lrwxrwxrwx. 1 root root 46 Apr  9 13:17 /etc/alternatives/java -> 
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

Does anyone have any idea what is going on here? Thanks in advance!
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to