Datanucleus, JDO and executable jar - how to do it?

前端 未结 4 1627
你的背包
你的背包 2020-12-06 07:56

I am developing a desktop app with Datanucleus and JDO for embedded H2 database. It all works fine when I run it from Eclipse, but it stops working when I try to make execut

4条回答
  •  时光取名叫无心
    2020-12-06 08:30

    DataNucleus jars are all OSGi-enabled and use a plugin mechanism to identify capabilities, so contain plugin.xml and META-INF/MANIFEST.MF files. These need to be in the same locations as they are in the original DN jars (from the root of the jar). If you unpack and then rejar them up you will need to merge any plugin.xml and META-INF/MANIFEST.MF from the DN jars ... ALL of the information there not just some of it.

提交回复
热议问题