My last post was wrong.  I had confused the manifest of org.json.jar & 
org.reslet.json.jar.

Using KF, I did not manage to load a folder, getting NPEs.  Perhaps by not 
knowing how to do it. KF framework seemed to accept the URL and then NPE.

I note that OSGi simply says:
"A bundle is a JAR file that ..."

David says "Most OSGi containers support two formats ..." implying that some 
may not.  So as what I was doing did not seem to working, I gave up on that 
front.

Instead, I made my own jar which
1.  included org.json.jar
2.  had a manifest to export the json packages
3. Had a line: Bundle-ClassPath: .,org.json.jar

I think this is now 100% OSGi R4.1 compliant.
Now my browser can pull json text.

If I need some more 3rd party jars I will just include them in my jar.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2383723

Reply via email to