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
Highlighted
Trusted Contributor
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel
Accepted Solution

Error!: Duplicate definition for 'org.kobjects.base64.Base64' found in: org.kobjects.base64.Base64

Hi, while using ksoap 2 jar, I am getting following error. Can anyone figure it out??

 

"Error!: Duplicate definition for 'org.kobjects.base64.Base64' found in: org.kobjects.base64.Base64"..

Developer
Posts: 16,985
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Error!: Duplicate definition for 'org.kobjects.base64.Base64' found in: org.kobjects.base64.Base64

maybe you added two libraries with this class? for example ksoap2 and kxml?
----------------------------------------------------------
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: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel

Re: Error!: Duplicate definition for 'org.kobjects.base64.Base64' found in: org.kobjects.base64.Base64

This problem has been solved. I am using another ksoap2 archive.I removed duplicate files.

 

Now my another problem is .cod files are not gnerating.

Contributor
Posts: 40
Registered: ‎06-25-2012
My Device: BlackBerry Curver 9300
My Carrier: Etisalat

Re: Error!: Duplicate definition for 'org.kobjects.base64.Base64' found in: org.kobjects.base64.Base64

Hi, I have the same problem, I am including two jar files (both of them are necessary to the project) and one of the file is contained in both the jar files. I have removed the file from one jar. Now I want to compile it back to jar. Can you guide how this is done?
Trusted Contributor
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel

Re: Error!: Duplicate definition for 'org.kobjects.base64.Base64' found in: org.kobjects.base64.Base64

Hi ssarah,

Make sure that the same files are not existing in the both packages and debug the program, and check where you are getting the error.