Código PHP:
package principal;
/**
*
* @author stivenson
*/
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class ejemploalerta extends MIDlet implements CommandListener{
Alert alerta1,alerta2;
Command salir,aler1,aler2;
Displayable temp;
Display pantalla;
Form pantallainicial;
public ejemploalerta(){
//Obtengo la referencia ala pantalla del MIDlet
pantalla=Display.getDisplay(this);
//Creo los objetos que forman las pantallas del MIDlet
salir=new Command("Salir",Command.EXIT,1);
aler1=new Command("Alerta Modal",Command.SCREEN,1);
aler2=new Command("Alerta No Modal",Command.SCREEN,1);
//Creo la pantalla de alerta 1
alerta1=new Alert("Alerta Modal","Esta alerta desaparecera"+" cuando pulse el boton aceptar",null,AlertType.INFO);
alerta2=new Alert("Alerta No Modal","Esta alerta desaparecera" +"cuando pasen 5 segundos",null,AlertType.INFO);
alerta1.setTimeout(Alert.FOREVER);
alerta2.setTimeout(5000);
//creo la pantalla principal del MIDlet
pantallainicial=new Form("Programa inicial");
//inserto objetos en la pantalla
pantallainicial.addCommand(salir);
pantallainicial.addCommand(aler1);
pantallainicial.addCommand(aler2);
pantallainicial.setCommandListener(this);
}
public void destroyApp(boolean unconditional){
}
public void pauseApp(){
}
public void startApp(){
pantalla.setCurrent(pantallainicial);
}
public void commandAction(Command c, Displayable d) {
if(c==salir){
destroyApp(false);
notifyDestroyed();
}else if(c==aler1){
pantalla.setCurrent(alerta1, pantallainicial);
}else{
pantalla.setCurrent(alerta2, pantallainicial);
}
}
}
y este automaticamente crea el .jav y todos los pasos y lo ejecuta en el emulador que trae incluido, en fin la informacion de todo el proceso que hace cuando lo compilo y ejecuto es este:
Cita:
e traducido y leido mucho pero no he sabido cual es el error, agradesco al que me ayude. 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:
bdj-init:
post-init:
init:
conditional-clean-init:
conditional-clean:
pre-clean:
clean-timestamp:
clean-preprocessed:
clean-classes:
Deleting directory C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\compiled
clean-obfuscated:
clean-preverified:
clean-manifest:
clean-jar:
clean-jad:
clean-javadoc:
clean-j9:
Deleting: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\convert1821148358
post-clean:
do-clean:
deps-jar:
pre-preprocess:
do-preprocess:
post-preprocess:
preprocess:
pre-compile:
extract-libs:
Created dir: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\compiled
do-compile:
Compiling 1 source file to C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\compiled
post-compile:
compile:
post-obfuscate:
obfuscate:
pre-obfuscate:
proguard-init:
skip-obfuscation:
proguard:
lwuit-build:
pre-preverify:
do-preverify:
Created dir: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\preverifysrc
Copying 1 file to C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\preverifysrc
Created dir: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\preverified
Preverifying 1 file(s) into C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\preverified directory.
post-preverify:
preverify:
pre-jar:
set-password-init:
set-keystore-password:
set-alias-password:
set-password:
create-jad:
Created dir: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\dist
add-configuration:
add-profile:
do-extra-libs:
Created dir: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\dist\lib
jad-jsr211-properties:
do-jar:
Building jar: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\dist\EjemploAlerta.jar
do-jar-no-manifest:
bdj-build-image:
update-jad:
Updating application descriptor: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\dist\EjemploAlerta.jad
Application descriptor does not declare any MIDlet. Direct execution is not allowed.
Generated "C:\Users\stivenson\Documents\JavaMESDKProjects\Ej emploAlerta\dist\EjemploAlerta.jar" is 1691 bytes.
post-jar:
jar:
Starting emulator with port number 51307
Cannot start PortForwarder: Unrecognized Windows Sockets error: 0: JVM_Bind
Installing suite from: http://(por aca esta mi IP)/EjemploAlerta.jad
Failed to connect to stdout output of device 0!
Reason:
Connection refused: connect
Failed to connect to stderr output of device 0!
Reason:
Connection refused: connect
cldc-debug-run:
cdc-debug-run:
debug-run-base:
BUILD SUCCESSFUL (total time: 13 seconds)
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:
bdj-init:
post-init:
init:
conditional-clean-init:
conditional-clean:
pre-clean:
clean-timestamp:
clean-preprocessed:
clean-classes:
Deleting directory C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\compiled
clean-obfuscated:
clean-preverified:
clean-manifest:
clean-jar:
clean-jad:
clean-javadoc:
clean-j9:
Deleting: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\convert1821148358
post-clean:
do-clean:
deps-jar:
pre-preprocess:
do-preprocess:
post-preprocess:
preprocess:
pre-compile:
extract-libs:
Created dir: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\compiled
do-compile:
Compiling 1 source file to C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\compiled
post-compile:
compile:
post-obfuscate:
obfuscate:
pre-obfuscate:
proguard-init:
skip-obfuscation:
proguard:
lwuit-build:
pre-preverify:
do-preverify:
Created dir: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\preverifysrc
Copying 1 file to C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\preverifysrc
Created dir: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\preverified
Preverifying 1 file(s) into C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\build\preverified directory.
post-preverify:
preverify:
pre-jar:
set-password-init:
set-keystore-password:
set-alias-password:
set-password:
create-jad:
Created dir: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\dist
add-configuration:
add-profile:
do-extra-libs:
Created dir: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\dist\lib
jad-jsr211-properties:
do-jar:
Building jar: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\dist\EjemploAlerta.jar
do-jar-no-manifest:
bdj-build-image:
update-jad:
Updating application descriptor: C:\Users\stivenson\Documents\JavaMESDKProjects\Eje mploAlerta\dist\EjemploAlerta.jad
Application descriptor does not declare any MIDlet. Direct execution is not allowed.
Generated "C:\Users\stivenson\Documents\JavaMESDKProjects\Ej emploAlerta\dist\EjemploAlerta.jar" is 1691 bytes.
post-jar:
jar:
Starting emulator with port number 51307
Cannot start PortForwarder: Unrecognized Windows Sockets error: 0: JVM_Bind
Installing suite from: http://(por aca esta mi IP)/EjemploAlerta.jad
Failed to connect to stdout output of device 0!
Reason:
Connection refused: connect
Failed to connect to stderr output of device 0!
Reason:
Connection refused: connect
cldc-debug-run:
cdc-debug-run:
debug-run-base:
BUILD SUCCESSFUL (total time: 13 seconds)