www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-9743) Jenkins build with Java 1.5 not possible
Date Mon, 01 Jun 2015 11:47:18 GMT

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

Sebb commented on INFRA-9743:
-----------------------------

quote: "In that case I suggest to remove all JDKs from the list which is older than 1.6 "

No, please no.

That will prevent non-Maven jobs from using older JVMs; Jenkins is not all about Maven jobs.

Apart from the fact that older JVMs *can* be used with Maven, so long as Maven is started
with Java 1.6 or later.
Either using ToolChains [1] or overriding the JVM used for compiling and testing as per Commons
Parent [2]

[1] http://maven.apache.org/guides/mini/guide-using-toolchains.html
[2] http://repo1.maven.org/maven2/org/apache/commons/commons-parent/37/commons-parent-37.pom

> 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
>          Components: Jenkins
>            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