julienba/play-cobertura — Issue #7: Not working with Java 1.5
Author: BouleHondevice
Created: 2011-12-27 14:54:57+00:00
State: open

Hello,

The plugin failed with java 1.5

```
15:51:24,645 INFO ~ Module secure is available (D:\tools\play\play\1.2.4\play-1
.2.4\modules\secure)
15:51:25,465 DEBUG ~ Cobertura plugin: initializing configuration and data
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n
umber in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at play.modules.cobertura.CoberturaPlugin.initCobertura(Unknown Source)
at play.modules.cobertura.CoberturaPlugin.onLoad(Unknown Source)
at play.plugins.PluginCollection.initializePlugin(PluginCollection.java:
241)
at play.plugins.PluginCollection.loadPlugins(PluginCollection.java:175)
at play.Play.init(Play.java:294)
at play.server.Server.main(Server.java:158)
```

Java :
```
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode)
```

Regards,