I created a small J2ME app which displays an alert when the user clicks the "OK" button. I use netbeans, I built it via that IDE too. However, when I copy that file into my mobile, it is giving "Java Error. Invald Information" error. My mobile is "Samsung GT-C3312. THe files I copied are under the "dist" folder which netbeans created for the distribution. I am attaching the code too. I tested this file fine in netbeans. Please tell me why this is not working. And please not this is my second J2ME app, which means I am a newbie.Thanks.
Are you better than me? Then please show me my mistakes..
Yohan Weerasinghe wrote:THe files I copied are under the "dist" folder which netbeans created for the distribution.
Please TellTheDetails. The only files you should need to copy to the phone are the .jar and .jad. Then you 'execute' the jad, which unpacks the jar into some hidden folder somewhere on the phone, and you never see it again except in its new avatar as an icon shown by the AMS (Application Management System).
Did you set the correct CLDC/MIDP versions before building the project?
There are no new questions, but there may be new answers.
wow..Thanks a lot for all of your replies, I really appreciate it. I followed your advices and checked for the MIDP version of my phone. It was 2.0 and my app was 2.1! Then I created a new project with 2.0 specifications and it worked! Thanks a lot!!
Anyway, another problem. In a previous comment, I am advised to install .jad file to my phone. In this case, I have to put both the .jad and .jar files to my phone. I have downloaded several apps to my phone and all of they have 1 file (I guess .jar), not 2. How come this happen? Please help!