This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The tutorial gave this commandline : javac -bootclasspath c:\j2mewtk\lib\midpapi.zip HelloIsrael.java but obviously this was in version 1. I have version 2 and so I gave this : javac -bootclasspath c:\WTK21\lib\midpapi10.jar HelloIsrael.java I also tried midpapi20.jar but both tries gave these 2 errors:
HelloIsrael.java:3: cannot access java.lang.Object file java\lang\Object.class not found public class HelloIsrael extends MIDlet ^ HelloIsrael.java:10: cannot resolve symbol symbol : variable this location: class HelloIsrael display = Display.getDisplay(this); ^ 2 errors
Can anyone help me out here ? I am running form bin directory. Thanks
It would be better if you use j2me wireless toolkit, then atleast you save yourself from running the application from command prompt, it will take care of your classpath as well. If you need the url to download the kit i will post the url.