midp or cldc or j2me :ERROR(35)UNSUPPORTED SCHEME
hello,
i'm a newbie of j2me .I have tried in the forum something usefull for me but nothing .I'm just confused because I must do a little program in java for cellular phone but I don't know what to do.I have download midp2.0fcs and j2me_cldc but what i must to use ?For my test I use the example java file :
/*
* @(#)HelloMIDlet.java 1.12 02/09/25 @(#)
*
* Copyright (c) 2000-2002 Sun Microsystems, Inc. All rights reserved.
* PROPRIETARY/CONFIDENTIAL
* Use is subject to license terms.
*/
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
* An example MIDlet with simple "Hello" text and an exit command.
*/
public class HelloMIDlet extends MIDlet implements CommandListener {
// Fields for the screens, commands, and display of this MIDlet
private Command exitCommand;
private TextBox textBox;
private Display display;
/**
* Constructs the HelloMIDlet, its screen, and its command. It
* associates the screen and command, and caches MIDlets display.
*/
public HelloMIDlet() {
// Create the abstract command
exitCommand = new Command("Exit", Command.EXIT, 1);
// Create the screen and give it a command and a listener
textBox = new TextBox("Hello MIDlet", "Test string", 256,
TextField.ANY | TextField.UNEDITABLE);
textBox.addCommand(exitCommand);
textBox.setCommandListener(this);
// Set the MIDlet's display to its initial screen
display = Display.getDisplay(this);
display.setCurrent(textBox);
}
/**
* Starts the MIDlet; this method does nothing because
* the MIDlet does not require any shared resources.
*/
public void startApp() {
}
/**
* Pauses the MIDlet; this method does nothing because there
* are no background activities or shared resources to close.
*/
public void pauseApp() {
}
/**
* Destroys the MIDlet; this method does nothing because
* there is nothing to cleanup that is not handled by the
* garbage collector.
*/
public void destroyApp(boolean unconditional) {
}
/*
* Responds to the user�s selection of abstract commands.
* This MIDlet has only an exit command. This method
* responds to it by cleaning up and notifying the system
* that the MIDlet has been destroyed.
*/
public void commandAction(Command command, Displayable screen) {
if (command == exitCommand) {
destroyApp(false);
notifyDestroyed();
}
}
}
and I have no problem in compilation and in preverify the problem is when I try to install the midlet because it tell me ERROR (35):UNSUPPORTED SCHEMA
I follow this steps to create my jad files :
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs>javac -classpath classes -d tmpclasses example/HelloMIDlet.java
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs>bin\preverify -classpath classes;tmpclasses tmpclasses
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs>bin\preverify -classpath classes;tmpclasses -d classes HelloMIDlet
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs>bin\preverify -nofp -nofinalize -nonative -classpath classes;tmpclasses -d classes HelloMIDlet
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs>bin\preverify -cldc -classpath classes;tmpclasses -d classes HelloMIDlet
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs>cd classes
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs\classes>jar -cmf HelloMIDlet.mf HelloMIDlet.jar HelloMIDlet.class
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs\classes>rem java -jar ../bin/JadTool.jar -addcert -keystore ../bin/j2se_test_keystore.bin -alias dummyca -storepass keystorepwd -inputjad HelloMIDlet.jad -outputjad HelloMIDlet.jad
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs\classes>rem java -jar ../bin/JadTool.jar -showcert -certnum 1 -inputjad HelloMIDlet.jad
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs\classes>rem java -jar ../bin/JadTool.jar -addjarsig -keystore ../bin/j2se_test_keystore.bin -alias dummyca -storepass keystorepwd -keypass keypwd -jarfile HelloMIDlet.jar -inputjad HelloMIDlet.jad -outputjad HelloMIDlet.jad
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs\classes>cd ..
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs>bin\midp -install -domain trusted http://localhost:80/example/HelloMIDlet.jad
** Error installing suite (35): Cannot authenticate with the server, unsupported scheme
C:\Documents and Settings\giorgio\Documenti\midp\midp2.0fcs>bin\midp -install -domain trusted -removeRMS http://localhost:80/example/HelloMIDlet.jad
** Error installing suite (35): Cannot authenticate with the server, unsupported scheme
I don't understand why .Any suggestion is really usefull ..
Thank a lot for help in advanced