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

Reply
Developer
illiayassa
Posts: 43
Registered: ‎10-06-2009
My Device: Not Specified
Accepted Solution

MIDlet class is not public: ttt

Hello, Imam getting the error in the subject (ttt is my main class) when I try to install an application on a Blackberry device.

My ttt Class is public, here is a sample of my code:

 

public class ttt extends UiApplication {

public ttt() {pushScreen(

new HelloScreen());

}

 

public static void main(String argv[]) {ttt app = new ttt();

app.enterEventDispatcher();

}

 

public class HelloScreen extends MainScreen implements FieldChangeListener {

private ButtonField button1;

private ButtonField button2; private ButtonField button3;

 

public HelloScreen() {

........

 

 

Any ideas please? 

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: MIDlet class is not public: ttt

What is the Application type you have set it for this project properties. For UiApplication/Application, you have to set it as CLDC Application.

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
illiayassa
Posts: 43
Registered: ‎10-06-2009
My Device: Not Specified

Re: MIDlet class is not public: ttt

Yes it is set as CLDC Application,here is the manifest File

 

Manifest-Version: 1.0

RIM-MIDlet-Flags-1: 0

MIDlet-Vendor: <unknown>

MIDlet-Version: 0.0

MicroEdition-Configuration: CLDC-1.1

MIDlet-1: ttt,,ttt

Created-By: 1.6.0_14 (Sun Microsystems Inc.)

MIDlet-Jar-URL: httpTest1.jar

MIDlet-Name: httpTest

MicroEdition-Profile: MIDP-2.0

MIDlet-Jar-Size: 0 

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: MIDlet class is not public: ttt

Are you trying to create a Midlet application or a Blackberry application.

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
illiayassa
Posts: 43
Registered: ‎10-06-2009
My Device: Not Specified

Re: MIDlet class is not public: ttt

a Blackberry application.
Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: MIDlet class is not public: ttt

How are you installing the application?

 

Check this thread.

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=29938&query.id=14...


Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.