2 Replies Latest reply on Jun 2, 2014 3:03 AM by Radim Vansa

    Infinispan 7 artifacts are not compatible with JDK 1.6

    ofer baranes Newbie

      Hi There, according to the getting statrted document, Infinispan 7 artifacts should be compatible with jdk 1.6,

      However they are not.

       

      please see below:

       


      With JDK 1.6:


      d:\_programing\infinispan\infinispan-7.0.0.Alpha4-bin>c:\oracle\Middleware\jdk16

      0_11\bin\java.exe -version

      java version "1.6.0_11"

      Java(TM) SE Runtime Environment (build 1.6.0_11-b03)

      Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode)

       

      d:\_programing\infinispan\infinispan-7.0.0.Alpha4-bin>c:\oracle\Middleware\jdk160_11\bin\java.exe -classpath .\infinispan-core.jar org.infinispan.Version

      Exception in thread "main" java.lang.UnsupportedClassVersionError: org/infinispan/Version : Unsupported major.minor version 51.0

              at java.lang.ClassLoader.defineClass1(Native Method)

              at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

              at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)

              at java.net.URLClassLoader.access$000(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:307)

              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

      Could not find the main class: org.infinispan.Version. 

       

       

      With JDK 1.7:

       

      d:\_programing\infinispan\infinispan-7.0.0.Alpha4-bin>java.exe -version

      java version "1.7.0_25"

      Java(TM) SE Runtime Environment (build 1.7.0_25-b16)

      Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)

       

       

      d:\_programing\infinispan\infinispan-7.0.0.Alpha4-bin>java.exe -classpath .\infinispan-core.jar org.infinispan.Version

      Infinispan

       

       

      Version:        7.0.0.Alpha4

      Codename:       Infinium

      History:        (see https://jira.jboss.org/jira/browse/ISPN for details)

       

      Thanks

      Ofer