Discussion:
Use of JNA bundle in my OSGi app
philk
2009-11-13 16:04:40 UTC
Permalink
Hello,

I though since you already have built a JNA bundle I could use it in my own
OSGi application. However all the exported classes of your bundle cannot be
found by the Eclipse java compiler. The JNA bundles MANIFEST does not seem
to be broken. However the previous version was unpacked in the Eclipse
plugins folder, the new one is a jar that contains another jar. The internal
Eclipse compiler seems to have a problem with that. Any ideas?
--
View this message in context: http://old.nabble.com/Use-of-JNA-bundle-in-my-OSGi-app-tp26338943p26338943.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.
Alexander Kitaev
2009-11-13 17:07:52 UTC
Permalink
Hello,

We're going to release 1.3.2 version of SVNKit soon and we'll change the
way JNA bundle is packed (JNA is also updated in that new version) so
that it will include classes, not jars.

Meanwhile you may probably unpack JNA bundle, and change its manifest
manually.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!
Post by philk
Hello,
I though since you already have built a JNA bundle I could use it in my own
OSGi application. However all the exported classes of your bundle cannot be
found by the Eclipse java compiler. The JNA bundles MANIFEST does not seem
to be broken. However the previous version was unpacked in the Eclipse
plugins folder, the new one is a jar that contains another jar. The internal
Eclipse compiler seems to have a problem with that. Any ideas?
philk
2009-11-13 17:12:58 UTC
Permalink
Thanks Alexander for the swift response. I wonder how you were able to use
the bundle in its current form?
Post by philk
Hello,
We're going to release 1.3.2 version of SVNKit soon and we'll change the
way JNA bundle is packed (JNA is also updated in that new version) so
that it will include classes, not jars.
Meanwhile you may probably unpack JNA bundle, and change its manifest
manually.
Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!
Post by philk
Hello,
I though since you already have built a JNA bundle I could use it in my own
OSGi application. However all the exported classes of your bundle cannot be
found by the Eclipse java compiler. The JNA bundles MANIFEST does not seem
to be broken. However the previous version was unpacked in the Eclipse
plugins folder, the new one is a jar that contains another jar. The internal
Eclipse compiler seems to have a problem with that. Any ideas?
---------------------------------------------------------------------
--
View this message in context: http://old.nabble.com/Use-of-JNA-bundle-in-my-OSGi-app-tp26338943p26340025.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.
Alexander Kitaev
2009-11-13 17:25:06 UTC
Permalink
Hello,
Post by philk
Thanks Alexander for the swift response. I wonder how you were able to use
the bundle in its current form?
In SVNKit project we have jna.jar as a library - in general, SVNKit is
not plugin project, we build OSGi bundles on deploy.

In Eclipse I could see jna plugin the "Plug-in Registry" view,
activated, with the list of exported packages and runtime library
"jna.jar". I believe JNA classes are available in Eclipse runtime.

But at the same time you're right - Plugin project I've created couldn't
import JNA classes and do not see them on the classpath. I have no idea
on what to do with that without unpacking JNA bundle and changing its
manifest.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!
Post by philk
Thanks Alexander for the swift response. I wonder how you were able to use
the bundle in its current form?
Post by philk
Hello,
We're going to release 1.3.2 version of SVNKit soon and we'll change the
way JNA bundle is packed (JNA is also updated in that new version) so
that it will include classes, not jars.
Meanwhile you may probably unpack JNA bundle, and change its manifest
manually.
Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!
Post by philk
Hello,
I though since you already have built a JNA bundle I could use it in my own
OSGi application. However all the exported classes of your bundle cannot be
found by the Eclipse java compiler. The JNA bundles MANIFEST does not seem
to be broken. However the previous version was unpacked in the Eclipse
plugins folder, the new one is a jar that contains another jar. The internal
Eclipse compiler seems to have a problem with that. Any ideas?
---------------------------------------------------------------------
Loading...