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

Testing and Deployment

Restricted Package Names

by Retired ‎02-16-2010 11:21 AM - edited ‎02-19-2010 08:35 AM (2,742 Views)

Summary


This article applies to the following:

  • BlackBerry® wireless devices based on Java™
  • BlackBerry Device Software 3.8 and later
  • BlackBerry Java Development Environment (JDE) 4.0


Problem


If a custom application implements a package declaration that contains com.rim, net.rim, net.blackberry, java, or javax (for example, package com.rim.docs.programs.testapplication; ), and you attempt to launch the application on a BlackBerry device with BlackBerry Device Software 3.8 and later, you receive the following error:

Error Starting [Application Name]: Unsigned module '[Module Name]' may not contain classes in com.rim(except com.rim.samples), net.rim,net.blackberry, java or javax.

Cause


The error is caused by the package name restrictions that are implemented in BlackBerry Device Software 3.8 and later.


Resolution


For third-party and custom application, package names cannot contain any of the following:

  • com.rim
  • net.rim
  • net.blackberry
  • java
  • javax

    Note: The one exception to this list is that third-party applications are able to use the com.rim.samples package name.

Contributors
Users Online
Currently online: 33 members 1,401 guests
Please welcome our newest community members: