3 Replies Latest reply on Oct 12, 2017 3:50 PM by Max Barkley

    Errai 4.x & Java 7 - UnsupportedClassVersionError?

    Jason Washo Newbie

      Errai Framework main website states that Errai 4.x should be targeted to Java 7.

       

      When I do that and attempt a GWT Compile, I receive and UnsupportedClassVersionError error, stating 'Unsupported major.minor version 52.0'... which is basically saying it should be Java 8?

       

      So my question is as basic as this... is Errai 4.x Java 7 or 8? If 7, how can I avoid the UnsupportedClassVersionError? I would like to use Java 7, as I want to use on Google AppEngine Standard (since Flex seems to still have issues).


      Here is the stack trace. Thank you for any help.

       

      [ERROR] Unexpected error while processing XML

      java.lang.UnsupportedClassVersionError: org/jboss/errai/ioc/rebind/ioc/bootstrapper/IOCGenerator : Unsupported major.minor version 52.0

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

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

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

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

      at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

      at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

      at java.security.AccessController.doPrivileged(Native Method)

      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

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

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

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

      at com.google.gwt.dev.cfg.ModuleDefSchema$ClassAttrCvt.convertToArg(ModuleDefSchema.java:899)

      at com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:64)

      at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:221)

      at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:296)

      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

      at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:349)

      at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:70)

      at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:431)

      at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:316)

      at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:501)

      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)

      at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:296)

      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

      at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)

      at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

      at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:349)

      at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:70)

      at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:431)

      at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:316)

      at com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDefSchema.java:501)

      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)

      at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:296)

      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

      at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)

      at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

      at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.java:349)

      at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(ReflectiveParser.java:70)

      at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:431)

      at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:316)

      at com.google.gwt.dev.cfg.ModuleDefLoader.load(ModuleDefLoader.java:243)

      at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:193)

      at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromResources(ModuleDefLoader.java:151)

      at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:126)

      at com.google.gwt.dev.Compiler.compile(Compiler.java:139)

      at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)

      at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)

      at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)

      at com.google.gwt.dev.Compiler.main(Compiler.java:125)