Pages

Tuesday 15 November 2011

Blackberry conversion form jad file


Conversion jad to Cod file
I have got chance to work in the J2ME application. My work was to convert that application to blackberry application format. I have searched for that in many websites. But I found only few solution related to that. The solution which I got in the website was not working. Then I finally found one solution, very rare it is. I want to share it here. It will be useful at least for one person.
The following are the steps to be followed to convert the jad file of J2ME to cod file of  J2ME application which is for the blackberry in windows
1.         Download the Blackberry JDE.
2.         Install the blackberry JDE.exe (check for the folder C: program files->research in motion->blackeberry(version))
3.         Copy the J2ME jar and jad in Blackberry_projectname  folder and save it in any drive or desktop.
4.         Open JDE of blackberry . Click start --> All programs --> Research In Motion --> JDE
5.         Now Blackberry JDE is opened. click File --> New --> You will be having 3 tabs (Files , Projects , Work space) --> Workspace
6.         click browse and choose the location of Blackberry_projectName.
7.         Give the workspace name as projectname and click ok.
8.         So now projectname.jdw has generated. Right click on that projectname.jdw-> create new project in projectname .Choose the project name as projectname and click ok.
9.         Right click on the projectname-> propreties (You will be having 5 tabs General, Application,Resources, Compile ,Build) ->Application .
10.       Choose project type as MIDlet and projectname for the Name of the main MIDlet class .
11.       Right click on the projectname and build project
12.       projectname.cod will be there in the location of Blackberry_projectname.The another method to follow the conversion of jad file to cod file.
1.      So now you will have blackberry JDE in your system.
2.      Open the command prompt.
3.      Choose the path  as C:Program files/research In Motion/BlackBerry JDE 4.2.1/bin.
4.      Copy your jad file and jar file and paste it in the Program files/research In Motion/BlackBerry JDE 4.2.1/bin.
5.      Then give the command as rapc import= “C:Program Files/Research In Motion/Blackberry JDE 4.2.1/lib/net_rim_api.jar” codename=midletname-midlet jad=J2MEjadfilename.jad  J2MEjarfilename.jar
6.      Now the cod file will be generated in the Program files/research In Motion/BlackBerry JDE 4.2.1/bin path

                


No comments:

Post a Comment