Birt运行时4.5需要java 1.7吗?

时间:2016-01-29 13:43:15

标签: birt

我刚刚下载了birt运行时birt-runtime-4.5.0-20150609.zip并安装在JBoss下。

以下是env信息:

Java版本:1.6.0_10,Sun Microsystems Inc.

OS-System:SunOS 5.10,sparcv9

jboss.home.dir:/opt/jboss_dist/jboss-portal-2.6.2.GA

sun.arch.data.model:64

即使我们使用的Jboss也很旧,但我们可以成功运行birt 4.4.2。

当我安装birt 4.5时,我得到了java.lang.UnsupportedClassVersionError。 birt 4.5是用java 1.7编译的吗? birt 4.5的先决条件是java 1.6。我该怎么做才能解决它?

2016-01-29 03:08:19,486 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors,End 2016-01-29 03:08:19,524 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer]使用会话cookie默认设置 2016-01-29 03:08:25,533 ERROR [org.apache.catalina.core.ContainerBase。[jboss.web]。[localhost]。[/ birt]]异常发送con text初始化事件到类的监听器实例org.eclipse.birt.report.listener.ViewerServletContextListener java.lang.UnsupportedClassVersionError:org / eclipse / core / runtime / Platform:不支持的major.minor版本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)         在org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817)         在org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)         在org.jboss.web.tomcat.service.WebAppClassLoader.findClass(WebAppClassLoader.java:139)         在org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)         在org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)         在org.eclipse.birt.core.framework.jar.ServicePlatform.getExtensionRegistry(ServicePlatform.java:72)         在org.eclipse.birt.core.framework.jar.ServicePlatform.createFactoryObject(ServicePlatform.java:98)         在org.eclipse.birt.core.framework.Platform $ 1.run(Platform.java:297)         at java.security.AccessController.doPrivileged(Native Method)         在org.eclipse.birt.core.framework.Platform.createFactoryObject(Platform.java:293)         at org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:338)         在org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1023)         在org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.jav) 一:62)         在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)         在org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)         在org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)         在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)         在org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)         at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)         在java.lang.reflect.Method.invoke(Method.java:597)         at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)         在org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)         在org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)         at sun.reflect.GeneratedMethodAccessor144.invoke(未知来源)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)         在java.lang.reflect.Method.invoke(Method.java:597)         at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)         在org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)         在org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)         在org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)         在org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)         在org.jboss.web.WebModule.startModule(WebModule.java:83)         在org.jboss.web.WebModule.startService(WebModule.java:61)         在org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)         在org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)         at sun.reflect.GeneratedMethodAccessor4.invoke(未知来源)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)         在java.lang.reflect.Method.invoke(Method.java:597)         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)         在org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)         在org.jboss.mx.server.Invocation.invoke(Invocation.java:86)         在org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)         at org.jboss.system.ServiceController $ ServiceProxy.invoke(ServiceController.java:978)         在$ Proxy0.start(未知来源)         在org.jboss.system.ServiceController.start(ServiceController.java:417)         at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)         在java.lang.reflect.Method.invoke(Method.java:597)         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)         在org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)         在org.jboss.mx.server.Invocation.invoke(Invocation.java:86)         在org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)         在org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)         在$ Proxy200.start(未知来源)         在org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)         at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)         在java.lang.reflect.Method.invoke(Method.java:597)         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)         在org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)         在org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

谢谢,海伦

2 个答案:

答案 0 :(得分:1)

这是正确的,正如提到here

  

基于的所有Mars包下载都需要Java 7 JRE / JDK   Eclipse 4.5。有关Eclipse的测试配置的信息   这里提供了4.5。

BIRT引擎4.5本身仍然使用java 6兼容编译,但许多eclipse库需要java 1.7。

答案 1 :(得分:0)

BIRT具有一些依存关系,这些依存关系被赋予http://download.eclipse.org/birt/downloads/。他们只特别提到Java 1.7 JDK / JRE作为先决条件,但没有提到更高版本的JDK / JRE。最新的BIRT Runtime Release Build是:4.8.0,它与Java 1.7 JDK / JRE兼容。