Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

I needs to use JSONObject library in my Eclipse plugin project for handling JSON data. But required library is not available in server SDK file

The org.json.JSONObject library is not included by default in the ELM Server SDK 7.0.2 SR1, but it needs to be used in the Eclipse plugin project for working with JSON. 

For example:

JSONObject jsonObject = new JSONObject();
jsonObject.put("name", "John Doe");
jsonObject.put("id", 30);



    

What is the alternative way to include and use the org.json.JSONObject library in an Eclipse plugin projects ?


1 vote



One answer

Permanent link

You have to package the library in your plugin and ship it within your feature. I can not remember the details when I had done it, you have to search/ask the Eclipse community.

0 votes

Comments

One option you could try is, creating a plugin with a folder lib. Put the library JAR file into that folder. then export the library in the plugin.xml. Add the plugin as dependency and add it in the feature.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,079
× 7,599
× 1,428

Question asked: Apr 30 '25, 3:22 a.m.

Question was seen: 1,332 times

Last updated: Apr 30 '25, 5:01 a.m.

Related questions
Confirmation Cancel Confirm