infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Bayer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-9743) Jenkins build with Java 1.5 not possible
Date Sat, 30 May 2015 00:16:17 GMT

    [ https://issues.apache.org/jira/browse/INFRA-9743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14565698#comment-14565698
] 

Andrew Bayer commented on INFRA-9743:
-------------------------------------

Yup - the issue here is that the Maven job type in Jenkins invokes Maven from within its own
JVM process with various tweaks to insert an interceptor for various reasons. And the Jenkins
stuff does require Java 6. So you can't use Java 5 with the Jenkins Maven job type.

> Jenkins build with Java 1.5 not possible
> ----------------------------------------
>
>                 Key: INFRA-9743
>                 URL: https://issues.apache.org/jira/browse/INFRA-9743
>             Project: Infrastructure
>          Issue Type: Bug
>            Reporter: Udo Schnurpfeil
>            Assignee: Andrew Bayer
>
> Using JDK 1.5 failed, because a part of Jenkins seems to be compiled for JDK 1.6
> [tobago-1.0.x] $ /home/jenkins/tools/java/ibm-1.5-32/bin/java -Xmx2g -Xms256m -XX:MaxPermSize=512m
-cp /home/jenkins/jenkins-slave/maven-agent.jar:/home/jenkins/jenkins-slave/classworlds.jar
hudson.maven.agent.Main /home/jenkins/tools/maven/apache-maven-2.2.1 /home/jenkins/jenkins-slave/slave.jar
/home/jenkins/jenkins-slave/maven-interceptor.jar 38984 /home/jenkins/jenkins-slave/maven2.1-interceptor.jar
> Exception in thread "main" java.lang.UnsupportedClassVersionError: (hudson/remoting/Launcher)
bad major version at offset=6
> 	at java.lang.ClassLoader.defineClassImpl(Native Method)
> ...
> There might be a workaround: https://issues.jenkins-ci.org/browse/JENKINS-25272



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message