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


CBB61 250V  Capacitor 2 wires 1/2/3/3.5/4/5/6/7/8/9/10/12/15/18/20/24/25/30 UF picture

CBB61 250V Capacitor 2 wires 1/2/3/3.5/4/5/6/7/8/9/10/12/15/18/20/24/25/30 UF

$129.95



6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF picture

6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF

$155.59



45/5 MFD ±5% Dual Run Capacitor 370 450 VAC CBB65 AC Motor HVAC 45+5 uF Fan 10pk picture

45/5 MFD ±5% Dual Run Capacitor 370 450 VAC CBB65 AC Motor HVAC 45+5 uF Fan 10pk

$89.99



5pc Radial Electrolytic Capacitor 250V 100V 50V 25V 16V 0.22uF-4700uF 10000uF picture

5pc Radial Electrolytic Capacitor 250V 100V 50V 25V 16V 0.22uF-4700uF 10000uF

$27.99



1/5pcs 100V~400V 0.1uF~100uF MKP Audio Metallized Polypropylene Film Capacitor picture

1/5pcs 100V~400V 0.1uF~100uF MKP Audio Metallized Polypropylene Film Capacitor

$63.90



5 MFD AC Capacitor, 5uF ±5% 370VAC/440 Volt Oval Run Start Capacitor  picture

5 MFD AC Capacitor, 5uF ±5% 370VAC/440 Volt Oval Run Start Capacitor 

$9.97







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