How to compile mavenized OSGi 4.3 bundle with OpenJDK 7?

后端 未结 1 482
不知归路
不知归路 2020-12-10 15:45

i am trying to compile my OSGi bundle against OSGi specification 4.3 using OpenJDK7 but i am getting error:

[ERROR] Failed to execute goal org.apache.maven.p         


        
相关标签:
1条回答
  • 2020-12-10 16:29

    You need to recompile the OSGi source code with javac from Java 7. OSGi compiled the code with Java 6 javac using -target jsr14. Java 7 javac removed support for compiling against such class files: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7078419

    Starting with R5, OSGi will no longer ship -target jsr14 class files.

    [Updated 31 Oct 2012]

    OSGi has now provided recompiled 4.3 jar files for Java 7. See http://blog.osgi.org/2012/10/43-companion-code-for-java-7.html

    0 讨论(0)
提交回复
热议问题