BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-13-2008, 04:41 AM   #1
jaszczompPL
New Member
 
Join Date: Aug 2008
Model: 8100
PIN: N/A
Carrier: Plus GSM
Posts: 4
Default Small problem :(

Please Login to Remove!

Hello!
Im new in Blackberry programming, and i want write my first application for my 8100 Pearl.
I've wroted following app:

Code:
package D:.Program;

import java.io.*;
import java.lang.*;
import java.util.*;
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;

class Program extends UiApplication
{
    public static void main(String[] args)
    {
        Program app = new Program();
        app.enterEventDispatcher();
    }
    
    public Program()
    {
        pushScreen(new ProgramScreen);
    }
}

class Ekran extends MainScreen
{
    public Ekran()
    {
        super();
    
        LabelField title = new LabelField("Moja aplikacja");
        setTitle(title);
    
        RichTextField pole = new RichTextField("Witaj w mojej aplikacji.");
        add(pole);
    }
    
    public boolean Exiting()
    {
        Dialog.alert("No to pa!");
        System.exit(0);
        return true;
    }
}
Code has been compiled, but when i want to launch app on BB8100 simulator, application stops, and i see new window on JDE with many lines says "source code is not available"
and following text on the bottom bar of JDE: "Uncaught exception thrown - IllegalArgumentException"

PLEASE HELP!

P.S. Sry for my english, i'm still learning it
Offline  
Old 08-13-2008, 05:20 AM   #2
LTCCTL
New Member
 
Join Date: Aug 2008
Model: 8110
PIN: N/A
Carrier: Airtel
Posts: 1
Default

Hi,

I also have the same problem but I don't get any error message, however, my screen freezes.

If you find some way to get around it please let me know as I am also new to blackBerry development.

Thanks in advance
LTCCTL
Offline  
Old 08-13-2008, 05:36 AM   #3
jaszczompPL
New Member
 
Join Date: Aug 2008
Model: 8100
PIN: N/A
Carrier: Plus GSM
Posts: 4
Default

i've solved my problem:
1. pushScreen(new ProgramScreen); < ProgramScreen was not declared. Change to Ekran (class Ekran)
2. Exiting()?! < change to onClose (function, which shows something on close )
3. Compile with Alt+f5, not "Go (f5)"

Last edited by jaszczompPL; 08-13-2008 at 05:39 AM..
Offline  
Old 08-13-2008, 11:33 PM   #4
CELITE
Thumbs Must Hurt
 
Join Date: Dec 2005
Model: 8310
Carrier: Rogers
Posts: 138
Default

Umm what
Offline  
Old 08-14-2008, 02:27 AM   #5
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

google translate helps

not that it would give the text more sense.
maybe some obscure form of SEO?
__________________
java developer, Devinto, hamburg/germany
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L CERAMIC BEARINGS  picture

NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L CERAMIC BEARINGS

$80.75



Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW picture

Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW

$79.95



1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ picture

1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ

$317.00



1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ picture

1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ

$228.00



Commodore Amiga Time Base Corrector VT-2000 TBC II Digital Processing picture

Commodore Amiga Time Base Corrector VT-2000 TBC II Digital Processing

$239.99



A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board picture

A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board

$350.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.