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

Duplicate definition error for a resource file

by BlackBerry Development Advisor ‎02-16-2010 11:28 AM - edited ‎02-17-2010 12:40 PM (1,172 Views)

Summary


This article applies to the following:


  • BlackBerry® Java Development Environment (JDE)
  • BlackBerry Simulator


Problem


XXXRes.rrh and XXXRes.rrc are the resource files for the project. They should be in their own resource folder and their own resource project. Their path is C:\foo\bar\resource.


Cause


This error occurs when a resource file is being referenced by the application twice. The error occurs when the RRH file has been added to the main project and the resource project has been set as a dependency. It is only required that one of these actions be taken - not both.


Resolution


To fix the problem, simply remove the dependency that the main application has on the resource project. You can do this by highlighting the main project and selecting ProjectDependencies and clearing the check box associated with the resource project.

Contributors
Users Online
Currently online: 6 members 4,724 guests
Please welcome our newest community members: