OSGi got FrameworkFactory could not be instantiated Error

后端 未结 1 981
忘了有多久
忘了有多久 2020-12-22 10:33

I am trying to use OSGi and maven to develop an standard alone application.

I have the following osgi dependency in pom.xml


    &l         


        
相关标签:
1条回答
  • 2020-12-22 11:27

    The dependency you added is the OSGi Core API.

    You need an implementation like equinox, felix or knopflerfish.

    E.g.:

    Instead of adding the dependency you mentioned, add

    <dependency>
        <groupId>org.apache.felix</groupId>
        <artifactId>org.apache.felix.main</artifactId>
        <version>5.6.2</version>
    </dependency>
    
    0 讨论(0)
提交回复
热议问题