"Unsupported major.minor version 49.0" after upgrading to build 3811

Hi,

This may be a similar issue to the one reported by Eugene Petrenko below. I had been using build 3776 successfully. The default JAVA_HOME on my build server and build agent (same machine) is 1.4. I add: JAVA_HOME=/usr/java/jdk1.5.0_08 to:
TeamCity/bin/runAll.sh
TeamCity/bin/catalina.sh
TeamCity//buildAgent/bin/agent.sh

But I still get this when I run a build:
:
junit/framework/Test (Unsupported major.minor version 49.0)
:

What is the solution to this?
java.lang.UnsupportedClassVersionError: junit/framework/Test (Unsupported major.minor version 49.0)

4 comments
Comment actions Permalink

In addition to this problem, it appears that I can not go back to build 3776 because when I do all my projects disappear. So, a solution to this asap would be welcome.

0
Comment actions Permalink

Please find my comment in the Jira issue - try replacing junit.jar in buildAgent/plugins/ant/lib with junit-3.8.1.jar

Hope this helps,
KIR

0
Comment actions Permalink

Please find my comment in the Jira issue - try
replacing junit.jar in buildAgent/plugins/ant/lib
with junit-3.8.1.jar


Yes. This worked:
Remove: TeamCity/buildAgent/plugins/ant/lib/junit.jar
Copy: junit-3.8.1.jar to TeamCity/buildAgent/plugins/ant/lib/

Thanks, Kir.

I didn't realize that TeamCity now comes bundled with Ant 1.7.
When did that start and why is that necessary?

-Dave

0
Comment actions Permalink

I imagine it's necessary for JUnit 4 support.
R

0

Please sign in to leave a comment.