I am only learning j2me. I have downloaded some sample programs from java.sun.com. however, can anyone tell me how do i compile and deploy the program.
Thank you,
leng wai
Printable View
I am only learning j2me. I have downloaded some sample programs from java.sun.com. however, can anyone tell me how do i compile and deploy the program.
Thank you,
leng wai
I have some info at home, I'll be there in ~2 hours.
Meanwhile, it works like this:
You compile your files using javac:
javac -Xbootstrap="path_to_javaME_bootstrap_jar" files
Then you must preevaluate them using the tool that came with ME.
Then you package them into a JAR along with a manifest file that must contain some special directives - it's somewhere in the docs.
Finally you write a package description file, which looks like the manifest file but with other directives, one of them being the size of the jar in bytes, another being the location of the jar. You can then start the emulator specifying the descriptor file.