Building Projects with older JDK - Unsupported major.minor version 51.0

33 views
Skip to first unread message

Constantin J

unread,
Jun 3, 2015, 6:42:26 AM6/3/15
to jenkins...@googlegroups.com
Hi, I'm trying to build a Project with an older version of the JDK.

I have configured Jenkins to run with Java 1.7 (SE) and to build with JDK 1.6 and Maven 2.2.1.

The build however fails with the exception "javax/servlet/ServletException : Unsupported major.minor version 51.0"
The Servlet API 3.x doesn't support Java 1.7, thus I suspect Jenkins/Maven is loading the wrong libraries.
Where can I configure this, so my project will compile?

greetings
Constantin

Daniel Beck

unread,
Jun 3, 2015, 7:01:46 AM6/3/15
to jenkins...@googlegroups.com
What kind of job is this? If this is a Maven job, it will not work with JDK 6 due to the integration with Jenkins. Use a freestyle job instead.
> --
> 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 jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/440abd67-dcf4-46ce-8cf1-ee46b211aa73%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Constantin J

unread,
Jun 3, 2015, 7:10:11 AM6/3/15
to jenkins...@googlegroups.com, m...@beckweb.net
Yes it was a Maven job. I've changed it to a freestyle job, looks promising.
Thanks :)
Reply all
Reply to author
Forward
0 new messages