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 Retired ‎02-16-2010 11:28 AM - edited ‎02-17-2010 12:40 PM (1,176 Views)


This article applies to the following:

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


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.


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.


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.

Users Online
Currently online: 14 members 663 guests
Please welcome our newest community members: