JavaME po konwersji pliku na UTF8 plik nie chce się uruchomić

0

Witam
zrobiłem program, który odczytuje polskie znaki z pliku txt
tylko bez konwersji pliku na utf-8 program odczytywał plik bez polskich znaków
gdy plik *.txt zmieniłem na UTF-8 plik przestał się uruchamiać

podaje fragment kodu

// kolejnosc_wykonyw_dzialan_5
	public Form getForm7() 
	{
        form7 = new Form("Pot\u0119gowanie", new Item[]{});   
        String stText = readUnicodeFile("/Kol_wykonyw_dzialan/kolejnosc_wykonyw_dzialan/kolejnosc_wykonyw_dzialan_5.txt", "UTF-8");
                  
        if (stText != null)
        {  
        form7.append(stText); 
        form7.addCommand(getBackCommand());
	    form7.setCommandListener(this);
        }  
         return form7;
	} 
	
	 //=====================================================================
    //=====================================================================
     private String readUnicodeFile(String string, String string0) {  
             StringBuffer buffer = new StringBuffer(1024); 
        java.io.InputStream is = null; 
        java.io.InputStreamReader isr = null;  
        try
        {  
            int ch = 0;  
            Class c = this.getClass();  
            is = c.getResourceAsStream(string);  
            isr = new InputStreamReader(is, string0);  
  
            while ((ch = isr.read()) > -1) 
            {  
                buffer.append((char) ch);  
            }  
            isr.close();  
            if (is != null)
            {  
                is.close();  
            }  
  
        } catch (Exception ex) 
        {  
            ex.printStackTrace();  
        }  
        return buffer.toString();   
    }  

oraz komunikat o błędzie

pre-init:
pre-load-properties:
exists.config.active:
exists.netbeans.user:
exists.user.properties.file:
load-properties:
exists.platform.active:
exists.platform.configuration:
exists.platform.profile:
basic-init:
cldc-pre-init:
cldc-init:
cdc-init:
semc-pre-init:
semc-init:
savaje-pre-init:
savaje-init:
sjmc-pre-init:
sjmc-init:
ojec-pre-init:
ojec-init:
cdc-hi-pre-init:
cdc-hi-init:
nokiaS80-pre-init:
nokiaS80-init:
post-init:
init:
conditional-clean-init:
conditional-clean:
deps-jar:
pre-preprocess:
do-preprocess:
Pre-processing 1 file(s) into C:\Users\komp_k\Documents\NetBeansProjects\operacje_matematyczne\build\preprocessed directory.
post-preprocess:
preprocess:
pre-compile:
extract-libs:
Copying 1 file to C:\Users\komp_k\Documents\NetBeansProjects\operacje_matematyczne\build\compiled
do-compile:
Compiling 1 source file to C:\Users\komp_k\Documents\NetBeansProjects\operacje_matematyczne\build\compiled
post-compile:
compile:
pre-obfuscate:
proguard-init:
skip-obfuscation:
proguard:
post-obfuscate:
obfuscate:
lwuit-build:
pre-preverify:
do-preverify:
Copying 1 file to C:\Users\komp_k\Documents\NetBeansProjects\operacje_matematyczne\build\preverifysrc
Preverifying 1 file(s) into C:\Users\komp_k\Documents\NetBeansProjects\operacje_matematyczne\build\preverified directory.
post-preverify:
preverify:
pre-jar:
set-password-init:
set-keystore-password:
set-alias-password:
set-password:
create-jad:
add-configuration:
add-profile:
do-extra-libs:
nokiaS80-prepare-j9:
nokiaS80-prepare-manifest:
nokiaS80-prepare-manifest-no-icon:
nokiaS80-create-manifest:
jad-jsr211-properties.check:
jad-jsr211-properties:
semc-build-j9:
do-jar:
Building jar: C:\Users\komp_k\Documents\NetBeansProjects\operacje_matematyczne\dist\operacje_matematyczne.jar
do-jar-no-manifest:
update-jad:
Updating application descriptor: C:\Users\komp_k\Documents\NetBeansProjects\operacje_matematyczne\dist\operacje_matematyczne.jad
Generated "C:\Users\komp_k\Documents\NetBeansProjects\operacje_matematyczne\dist\operacje_matematyczne.jar" is 25282 bytes.
sign-jar:
savaje-prepare-icon:
savaje-build-jnlp:
post-jar:
jar:
pre-run:
netmon.check:
open-netmon:
cldc-run:
Copying 1 file to C:\Users\komp_k\Documents\NetBeansProjects\operacje_matematyczne\dist\nbrun1063691460420262820
Copying 1 file to C:\Users\komp_k\Documents\NetBeansProjects\operacje_matematyczne\dist\nbrun1063691460420262820
Jad URL for OTA execution: http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet/C%3A/Users/komp_k/Documents/NetBeansProjects/operacje_matematyczne/dist//operacje_matematyczne.jad
Starting emulator in execution mode
Installing suite from: http://127.0.0.1:56448/operacje_matematyczne.jad
1900 - ERROR - JSR258 - 3 - Can't create MediaObject: media file (screen.image_bg.png) is not found
1986 - ERROR - JSR258 - 3 - Can't find theme element (feature=activeScreen, role=background)
1990 - ERROR - JSR258 - 3 - Can't find theme element (feature=inputMode, role=backgroundImage)
1996 - CRITICAL - JSR258 - 3 - Can't find Chameleon element (id=161)
1996 - CRITICAL - JSR258 - 3 - Can't find Chameleon element (id=163)
1997 - CRITICAL - JSR258 - 3 - Can't find Chameleon element (id=164)
1997 - CRITICAL - JSR258 - 3 - Can't find Chameleon element (id=165)
1998 - CRITICAL - JSR258 - 3 - Can't find Chameleon element (id=182)
2000 - ERROR - JSR258 - 3 - Can't find theme element (feature=systemMenu, role=selectedItemBackground)
2003 - ERROR - JSR258 - 3 - Can't find theme element (feature=virtualKeyboard, role=virtualKeyboardBGImage)
WARNING - MMA - C:/Builds/jme-sdk/javacall-javame-sdk-305/implementation/share/jsr135_mmapi/ju_mmconfig.c line 801: caps: optional settings missing: SuspendBehavior
4037 - ERROR - HIGHUI - 3 - AbstractInputHandler: uCallPointerEvent, type=7 x=52 y=6
5101 - ERROR - HIGHUI - 3 - AbstractInputHandler: uCallPointerEvent, type=7 x=53 y=104
5268 - ERROR - HIGHUI - 3 - AbstractInputHandler: uCallPointerEvent, type=7 x=53 y=104
5269 - ERROR - HIGHUI - 3 - AbstractInputHandler: uCallPointerEvent, type=8 x=53 y=104
5795 - ERROR - HIGHUI - 3 - AbstractInputHandler: uCallPointerEvent, type=7 x=56 y=46
5996 - ERROR - HIGHUI - 3 - AbstractInputHandler: uCallPointerEvent, type=7 x=56 y=46
5997 - ERROR - HIGHUI - 3 - AbstractInputHandler: uCallPointerEvent, type=8 x=56 y=46
semc-icon-assembly:
semc-ppro-emulator:
semc-do-run:
semc-run:
savaje-run:
sjmc-run:
ojec-run:
nokiaS80-run:
cdc-hi-run:
profiler.check:
open-profiler:
run:
BUILD SUCCESSFUL (total time: 14 seconds)

podejrzewam, że plik jest zbyt duży i zajmuje do 4kb, żeby się uruchomił
podejrzewam, że muszę utworzyć
AbstractInputHandler

proszę o pomoc
dziękuje

0

problem rozwiązałem

1 użytkowników online, w tym zalogowanych: 0, gości: 1