set classpath for J2ME using WTK 22 >error
I downloaded J2ME - WTK22 ,and I installed in c:\wtk22. Then i set classpath as follows:
//--
SET PATH = %PATH%; C:\WTK22\BIN
SET J2MEWTK_HOME = C:\WTK22
SET MIDPAPI = %J2MEWTK_HOME%\lib\midpapi10.jar;
%J2MEWTK_HOME%\lib\cldcapi10.jar
SET J2MECLASSPATH =%J2MEWTK_HOME%\wtklib\kenv.zip;
%J2MEWTK_HOME%\wtklib\kvem.jar;
%J2MEWTK_HOME%\wtklib\lime.jar
//
next, I created a project "HelloWorl" with extended file HelloWorld.java:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class HelloWorld extends MIDlet
{
private Display display;
TextBox box = null;
public HelloWorld() { }
public void startApp()
{
display = Display.getDisplay(this);
box = new TextBox("Simple Example", "Hello World", 20, 0);
display.setCurrent(box);
}
public void pauseApp()
{
}
public void destroyApp(boolean unconditional)
{
}
}
//-
I compiled the project from KTollbar -> okie, but when i compiled the project from command line as follows:
c:\wtk22\apps\HelloWorld\src> javac -g:none -d tmpclasses
- bootclasspath %MIDPAPI% -classpath %J2MECLASSPATH% HelloWorld.java -->the compiler inform the error: javac is not recognized as an internal or external, command operable program or batch file
please kindly explain the error and instruc me the right way to implement

