Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 4
Registered: ‎12-28-2010
My Device: Not Specified
Accepted Solution

D:\Eclipse\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.29\components\lib\net_rim_api.jar(net_rim_json_org.cod): Error!: Duplicate definition for 'org.json.me.JSONArray' found in: C:\Users\TomJerry\workspace\Minutes\src\org\json\me\JSONArray.java

what i solved?

Highlighted
Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: D:\Eclipse\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.29\components\lib\net_rim_api.jar(net_rim_json_org.cod): Error!: Duplicate definition for 'org.json.me.JSONArray' found in: C:\Users\TomJerry\workspace\Minutes\src\org\json\me\JSONArray.java

API 6.0 and higher already has the JSON library. If your app is only for 6.0 and higher then you don't need to include it. Otherwise use a preprocessor so that the files are ignored on 6.0 and higher.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
New Contributor
Posts: 4
Registered: ‎12-28-2010
My Device: Not Specified

Re: D:\Eclipse\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.29\components\lib\net_rim_api.jar(net_rim_json_org.cod): Error!: Duplicate definition for 'org.json.me.JSONArray' found in: C:\Users\TomJerry\workspace\Minutes\src\org\json\me\JSONArray.java

Thanks.
New Member
Posts: 1
Registered: ‎02-09-2011
My Device: Not Specified

Re: D:\Eclipse\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.29\components\lib\net_rim_api.jar(net_rim_json_org.cod): Error!: Duplicate definition for 'org.json.me.JSONArray' found in: C:\Users\TomJerry\workspace\Minutes\src\org\json\me\JSONArray.java

And how can we use a preprocessor so that the files are ignored on 6.0 and higher???

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: D:\Eclipse\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.29\components\lib\net_rim_api.jar(net_rim_json_org.cod): Error!: Duplicate definition for 'org.json.me.JSONArray' found in: C:\Users\TomJerry\workspace\Minutes\src\org\json\me\JSONArray.java

Technically you should create a new post but you use the preprocessor on the entire file. So instead of blocking out a line of code, you block out everything. There is no ability to exclude files otherwise.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 467
Registered: ‎07-16-2009
My Device: Z10 LE
My Carrier: Vodafone NL

Re: D:\Eclipse\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.29\components\lib\net_rim_api.jar(net_rim_json_org.cod): Error!: Duplicate definition for 'org.json.me.JSONArray' found in: C:\Users\TomJerry\workspace\Minutes\src\org\json\me\JSONArray.java

I didn't code for java blackberry for sow long time Smiley Happy