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


MSA 10116926 Altair 5X Gas Detector Industrial Kit - LEL, O2, CO, H2S picture

MSA 10116926 Altair 5X Gas Detector Industrial Kit - LEL, O2, CO, H2S

$1500.00



MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2) picture

MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2)

$295.00



MSA Sensor Kit ALTAIR Pro ALTAIR 5X 10080222 picture

MSA Sensor Kit ALTAIR Pro ALTAIR 5X 10080222

$332.65



MSA ALTAIR 4XR 10178557 Detector Multi Gas Meter (LEL, O2, CO, H2S) picture

MSA ALTAIR 4XR 10178557 Detector Multi Gas Meter (LEL, O2, CO, H2S)

$790.00



MSA Altair 5X Gas Detector Industrial Kit  10116926 - LEL, O2, CO, H2S picture

MSA Altair 5X Gas Detector Industrial Kit 10116926 - LEL, O2, CO, H2S

$1899.00



MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector picture

MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector

$199.00







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