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

Reply
Trusted Contributor
Posts: 224
Registered: ‎08-09-2011
My Device: 9550

Duplicate Error

C:\d\Ksoap\lib\ksoap2-j2me-core-prev-2.1.2.jar(org/kxml2/io/KXmlParser.class): Error!: Duplicate definition for 'org.kxml2.io.KXmlParser' found in: org.kxml2.io.KXmlParser

 

 

I got the above error  Can any one find the Solution ..

Trusted Contributor
Posts: 224
Registered: ‎08-09-2011
My Device: 9550

Re: Duplicate Error

Can any one find the Solution
Developer
Posts: 19,612
Registered: ‎07-14-2008
My Device: Not Specified

Re: Duplicate Error

I don't really know but here is a suggestion. 

 

Is it possible that you have added this library twice, perhaps in two different projects.  You could start again with a clean Simulator and new project and work through including kSoap and see when this problem arises. 

Trusted Contributor
Posts: 224
Registered: ‎08-09-2011
My Device: 9550

Re: Duplicate Error

[ Edited ]

Thank You Sir,

Here i am using two jars one is regarding on Ksoap jar and other one is maps Jar for both having the Same class : org.kxml2.io.KXmlParser.

Thats why i am getting the duplicate error ..Can you please suggest how to overcome this iSsue..

Developer
Posts: 16,495
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Duplicate Error

delete the files from one jar
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Trusted Contributor
Posts: 224
Registered: ‎08-09-2011
My Device: 9550

Re: Duplicate Error

[ Edited ]

Thank you sir,

Can you give the suggestion how to delete the file from that Jar. I installed the MyJarExplorer .but it opens the All files but there is no option to delete.

And if is there any other way Plaese tell me.


Developer
Posts: 16,495
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Duplicate Error

i use 7zip to open jar files, but most other packers should also work fine.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter