Thank you. That fixed it. There were 2 JAD files. One lying outside and one in the "deployed" folder. The one oustide is the master one and once I update the MIDlet entry there, it would appear correctly in the manifest of the JAR.
Thanks and Regards, Ajith ----- Original message ----- From: "Craig Setera" <[EMAIL PROTECTED]> To: "'[email protected]'" <[email protected]> Date: Fri, 03 Aug 2007 05:45:40 -0500 Subject: Re: [Eclipseme-users] Generated JAR not working on Nokia 3250 The manifest file is generated during the packaging stage as you guessed. It takes the contents from the JAD file. If you don't have the JAD file set up correctly, the manifest will be incorrect as well. Max Payne wrote: > Correcting the JAD, works. However, most often, I find JAR files > distributed without the JAD. The manifest file should be able to take > care of pointing to the MIDlet. I was wondering if something I did might > have caused this disprecancy. I was creating a new MIDlet suite, adding > a MIDlet and inside the code manually specifying the package. EclipseME > would point out the error and give the option to move the file to the > package. However, I think I should prolly try with creating a package > from the menu options and then add classes to that package. This might > fix the problem. I shall try this and get back to you. > > Regards, > Ajith > > ----- Original message ----- > From: "Craig Setera" <[EMAIL PROTECTED]> > To: "'[email protected]'" > <[email protected]> > Date: Thu, 02 Aug 2007 20:42:13 -0500 > Subject: Re: [Eclipseme-users] Generated JAR not working on Nokia 3250 > > If you change the JAD file in the root of the project, it should work > correctly. Does it not? > > Max Payne wrote: > >> 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 >> >> > > ------------------------------------------------------------------------- > 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 ------------------------------------------------------------------------- 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
