Image

Imagebsdcat wrote in Imagejava_dev

J2ME, Wireless Toolkit

I'm not new to Java, but I am new to J2ME, and I'm trying to install Sun's Wireless Toolkit in order to progress past reading about it.

First step is selecting a JDK to use during installation, and I'm using 1.5.0_06 (I've tried others, including 1.4.2_mumble) - the install process finds that installation handily. But when I click the button to use that JDK, I immediately get the error, "Could not find the main class. Program will exit."

That error is pretty clear, but how to fix it is not in this case. I haven't played any games with my CLASSPATH, and aside from installing and uninstalling a couple different JDK versions I haven't done anything else, knowingly, to my system that would effect running Java programs (Applets work fine in my browser, and JARs run from the command line). There are no exotic system requirements, and the classes that should be running (I presume) are packed away in the installer.

Any ideas on how to proceed? My best guess is extracting the files in the installer, but I'm not familiar with how I might do that on Windows.

Result of java -version:
C:\>java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)