Hi, I had put the midlet entry using the JAD editor. I am able to launch the JAR using the corrected JAD in the emulator, from the commandline (previously I was not able to do so). However, the problem is that I just copy the JAR to the phone and install it. The JAD is never taken. Most J2ME applications I have used, I was able to "deploy" it this way. On snooping around, I found that the "MIDlet-1" field in the Jar and the manifest inside the JAR had the values " SwWindow,,SwWindow". In the JAD, if changed to " SwWindow,,net.sparkymat.sw.SwWindow", it works (which is what we did with the JAD editor). I am wondering how I can make this change in the manifest that goes into the JAR, since the error I get without this change is that the class SwWindow is not found. I tried un-jar-ing it, modifying and jar-ing it again, but my phone said it's an invalid JAR. So, how exactly do I tell EclispeME to write the manifest with full classpath instead of just class name.
Regards, sparkymat ----- Original message ----- From: "Ashish Patil" <[EMAIL PROTECTED]> To: [email protected] Date: Wed, 1 Aug 2007 17:38:50 +0530 Subject: Re: [Eclipseme-users] Generated JAR not working on Nokia 3250 In JAD Editor, put the proper midlet entry in Midlets tab. Without it, emulator works, but jar wont work on handset. --- Ashish Patil Sr Developer - Java ME Hungama Mobile On 8/1/07, Max Payne <[EMAIL PROTECTED]> wrote: > Hi, > > I am using Sun WTK 2.2 with EclipseME 1.7.3 on Eclipse 3.3 . I wrote a > simple J2ME MIDlet (my first proper J2ME project) that draws a softkey > bar on a full-screen canvas. It works quite well on the emulator. Then, > I generate a JAR of the same (right-click project, J2ME->Create Package) > and transfer it to my phone (Nokia 3250). The file manager lets me > install the JAR without any issues. However, when I try to launch it > from the menu, nothing happens. Is there something extra that I need to > do to make the JAR work on a phone? Is it a Nokia specific issue? Is > there any way I can run the generated JAR on the emulator instead of the > code? I am assuming this might atleast tell me if the JAR is formed > properly or not. > > Regards, > sparkymat > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Eclipseme-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/eclipseme-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Eclipseme-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/eclipseme-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Eclipseme-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/eclipseme-users
