businessobjects sdk java兼容性java版本

时间:2015-08-28 04:30:56

标签: java sdk java-8 business-objects business-objects-sdk

好的我正在尝试制作SDK应用程序,我正在使用最新的Java版本(我相信Java 8u60),并且我已经在VM上安装了SAP BI 4.1 SP 6。当我首先从BOE调度功能运行我的程序时,我收到了这个错误

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ghc/bo/extract/ExecuteExtract : Unsupported major.minor version 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:735)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:716)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:336)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:59)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:250)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:243)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:372)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:344)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:313)
    at com.crystaldecisions.sdk.plugin.desktop.program.internal.ProgramWrapper.main(ProgramWrapper.java:49)

然后我将编译器的合规级别切换为1.7,现在我得到了这个错误

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ghc/bo/extract/ExecuteExtract : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:735)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:716)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:336)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:59)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:250)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:243)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:372)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:344)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:313)
    at com.crystaldecisions.sdk.plugin.desktop.program.internal.ProgramWrapper.main(ProgramWrapper.java:49)

1 个答案:

答案 0 :(得分:-1)

我需要将编译器合规性级别设置为1.6。 OMFG