07-14-2009 03:49 AM
So I'm running into this classic problem:
Class 'util.ArrayList' multiply defined.
Linker error: 'VerifyError' for ProjectName
Error starting ProjectName: Class 'util.ArrayList' multiply defined.
So what happened is I'm using the 8800 simulator. I've been using it to run my program for 8 months. And all of a sudden when I try to run my program it will crash and I can't run it anymore. Now the same thing happened with me for the Bold emulator about 4 months ago. The curve 8300 still works but I'm running out of working simulators...What is causing this?
I've already scoured the RIM directory and deleted all of my project files. I've already run clean.bat. I've already selected Clean All and Build All in the IDE. I've deleted my local cod and setup files and rebuilt them. util.ArrayList is not multiply defined. It is some kind of corruption. Short of reinstalling the simlator (which I'm unsure if it will fix the problem), has anyone fixed this problem or have any advice?
Solved! Go to Solution.
07-14-2009 03:53 AM
07-14-2009 04:01 AM
yes, its my own ArrayList class.
public class ArrayList implements Persistable
It is persistable, I don't have it in a Library. Does it need to be in a library? That kind of wouldn't make sense because I've been running this program for months without any problems of having it be in a library.
07-14-2009 04:09 AM
07-14-2009 04:22 AM
Well, I don't have any other projects. This is my only one.
I do have IDE version 4.6 and 4.7 installed, but I can still run other 4.6 versions, so I don't think this could be it.
I feel like it could be a multiple entry point that occurs, so I'm going through all my classes removing any imports of java.util in hopes it is an ArrayList confliction, I'll let you know what happens
07-14-2009 04:30 AM
hmm, unfortunately it didnt work
I'm reluctant to change the name of every single reference to ArrayList because I have like 200+ references
Do you think uninstalling and reinstalling that particular simulation will fix it?
07-14-2009 04:34 AM
07-14-2009 04:40 AM
hahaha, unfortunately no. I use the RIM approved JDE's for quick simulator switching. It sucks but it doesn't have any overhead problems with setting things up.
I just read your message and I already uninstalled and began reinstalling... oh well
If this fails I'll try that next...
07-14-2009 04:49 AM - edited 07-14-2009 04:58 AM
well to recap for anyone else who comes across this thread, in this particular case a reinstall of the simulator worked. Make sure you uninstall using Add/Remove Programs.
But its unlikely this will fix a whole lot of other situations. I think I've even tried this before in the past and it failed. Anyways, if you can't figure out this error its eventually worth a try.
thanks simon for the help, I really appreciate it man. these problems can be impossible to fix by yourself