Every time I try to build my project I get this error on the output
Code:
Building prueba
C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\rapc.exe -quiet import=..\..\lib\net_rim_api.jar codename=prueba -midlet prueba.rapc warnkey=0x52424200;0x52525400;0x52435200 "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\MidletTemplate.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\ArrayOfString.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\CantidadRegistros.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\CantidadRegistrosResponse.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\ExtraerInformacion.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\ExtraerInformacionResponse.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\Identificacion.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\IdentificacionResponse.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\IngresarLectura.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\IngresarLecturaResponse.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\ModificarEstado.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\ModificarEstadoResponse.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\ServiceSoap.java" "C:\Archivos de programa\Research In Motion\BlackBerry JDE 4.3.0\bin\prueba\Servicio\ServiceSoap_Stub.java"
-Xmx256m: illegal argument
usage: java [-options] class
where options include:
-help print out this message
-version print out the build version
-v -verbose turn on verbose mode
-debug enable remote JAVA debugging
-noasyncgc don't allow asynchronous garbage collection
-verbosegc print a message when garbage collection occurs
-noclassgc disable class garbage collection
-ss<number> set the maximum native stack size for any thread
-oss<number> set the maximum Java stack size for any thread
-ms<number> set the initial Java heap size
-mx<number> set the maximum Java heap size
-classpath <directories separated by semicolons>
list directories in which to look for classes
-prof[:<file>] output profiling data to .\java.prof or .\<file>
-verify verify all classes when read in
-verifyremote verify classes read in over the network [default]
-noverify do not verify any class
-nojit disable JIT compiler
Error while building project
I'm trying to do a simple J2ME application for blackberrys that is able to connect to some .NET webservices.
JDE wont even build a simple "Hello World" project.
I'm running on Windows XP SP2 with Java 6 (1.6)
Here is the code of the MIDlet
Code:
import java.util.*;
import java.io.*;
import java.lang.*;
import java.rmi.RemoteException;
import javax.xml.rpc.*;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import Servicio.*; // Stub Package
/**
*
* The application must extend the MIDlet class to allow the application management software to control the MIDlet.
*/
public class MidletTemplate extends MIDlet implements CommandListener
{
/*
* Variables Globales
*/
Display display = null;
Command ingresar = new Command("Ingresar", Command.OK, 1);
TextField usuarioBox = new TextField("Usuario", "", 10, TextField.NUMERIC);
TextField contrasenaBox = new TextField("Contrasena", "", 10, TextField.NUMERIC);
Form forma = new Form("Forma de Prueba");
/**
* <p>The default constructor.
*/
public MidletTemplate()
{
}
/**
* <p>Signals the MIDlet that it has entered the Active state.
*/
public void startApp()
{
try
{
if(display == null)
display = Display.getDisplay(this);
forma.append(usuarioBox);
forma.append(constrasenaBox);
forma.addCommand(ingresar);
forma.setCommandListener(this);
display.setCurrent(forma);
}
catch(Exception e)
{
message("Error", "Ocurrio un error: " + e.getMessage(), 2500);
}
}
/**
* <p>Signals the MIDlet to stop and enter the Pause state.
*/
public void pauseApp()
{
}
/**
* <p>Signals the MIDlet to terminate and enter the Destroyed state.
* @param unconditional When set to true, the MIDlet must cleanup and release all resources. Otherwise, the MIDlet may
* throw a MIDletStateChangeException to indicate it does not want to be destroyed at this time.
*/
public void destroyApp(boolean unconditional)
{
}
public void message(String titulo, String mensaje, int timeOut)
{
Alert alert = new Alert(titulo, mensaje, null, AlertType.INFO);
if(timeOut > 0)
alert.setTimeout(timeOut)
else
alert.setTimeout(Alert.FOREVER);
display.setCurrent(alert, forma);
}
public void commandAction(Command c, Displayable d)
{
if(c == ingresar)
{
final String usuario = usuarioBox.getString();
final String contrasena = contrasenaBox.getString();
new Thread(new Runnable()
{
public void run()
{
String[] datos = null;
try
{
ServiceSoap_Stub servicio = new ServiceSoap_Stub();
datos = servicio.identificacion(usuario, constrasena).getString();
for(int i = 0; i < datos.length; i++)
if(datos[i] != null)
forma.append(datos[i] + "\n");
}
catch(RemoteException e)
{
message("Error en la petición", "Se presento un error al pedir la información: " + e.getMessage(), 2500);
}
catch(NoClassDefFoundError e)
{
message("Error con la clase", "Se presento un error con una clase: " + e.getMessage(), 2500);
}
}
}).start();
}
}
}