12-11-2009 04:13 PM
I am using the Eclipse JDE plugin to develop my application. It was working fine until I starting using Hashtables in my code. After that , my application won't run and gave the error "error loading class net.rim.device.resources.Resource".
This class is part of the standard library and don't know what this error is due to.
I have tried reinstalling eclipse and all the plugins and now my application won't even show up in the simulator .
Solved! Go to Solution.
12-14-2009 01:58 PM
Have you added language resources to your application? If so please verify that the package specified within them is correct.
12-14-2009 03:28 PM
What M.Sohm says is true. To expand on it a little: if you have a ResourceBundle and the package statement in the .rrh file disagrees with the .jdp, weird things can happen. And if you move a ResourceBundle to a different package, its package statement does not get updated automatically, you have to fix it yourself. Make sure the package statement in the .rrh matches what the Package Explorer view says it should be.
So, when you added Hashtables, was that the only thing you added?
Don't panic on the application not showing up in the simulator. When you run an app in the simulator, the build files (.cod, .jar, etc) are copied to the simulator directory (<your eclipse root>\plugins\<component pack xxx>\components\simulator). When you reinstalled, the simulator directory was rebuilt from scratch, without your app's build files. Since you can't build, you don't get any new build files to copy to the simulator.
Hang in there.
12-15-2009 10:15 AM
Thank you everyone! Both your suggestions worked and now I am back on track. The problem was not because of the Hashtable. It was because of some files I moved around and the project files probably going bad. Since I am using eclipse, there's no rrh file. But thanks anyways for the information. Greatly appreciated.
I solved this by building a new project and adding all the files again to the new project instead of re-importing the old project.
12-15-2009 11:36 AM
Good to hear you got it, Sri.
Just one correction. The eclipse plug-in does support .rrh/.rrc files; even has a dedicated Resource Editor for them.