View Single Post
Old 07-05-2007, 04:21 AM   #10
tschiefer
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: t-mobile
Posts: 44
Default Eclipse and Blackberry IDE

I'm trying to convince eclipse to work together with the Blackberry JDWP. I think i'm very close but it is not completely working yet. Would be nice, if someone could give me a hint.

Here is, what i've done so far:

1) Installed EclipseME on Eclipse
2) Created a new EclipseME Project
3) Read the Blackberry JDE Development Guide Appendix: The eclipse development and changed following things to eclipse:
3.1) Created a new JRE with net_rim_api.jar included
3.2) Created a new Builder for my project using the rapc.exe
and gave the builder the following arguments
-quiet C:\Development\J2MEProject\src\*.java import=”C:\Program Files\Research In Motion\BlackBerry JDE 4.1.0\lib\net_rim_api.jar” codename="C:\Program Files\Research In Motion\BlackBerry JDE 4.1.0\simulator\J2MEProject"

4) Implemented a simple HelloWorldApplication. Works fine in the Blackberry IDE - i've already tested it there.
5) Start JDWP
6) Run -> Debug Dialog -> Remote Java Application -> Debug

So far so good. In the ...BlackBerry JDE 4.1.0\simulator directory there pop up
J2METest.cod
J2METest.cso
J2METest.debug
J2METest.jar
J2METest.jad <-- this file doesn't appear, when i run HelloWorld from the Blackberry IDE

Problem is: In the BlackberrySimulator i don't find my J2METest Application under Applications.
So i generated a J2METest.alx file, which looks like this

<loader version="1.0" />
<application id="J2METest">
<description>Sample app</description>
<version>1.0</version>
<vendor>My vendor</vendor>
<fileset Java="1.0">
<files>J2METest.cod</files>
</fileset>
</application>
</loader

And i've read from the posting above, that i have to insert MIDlet-1: J2METest into the .jad file. So i've done that and it now looks like this

Manifest-Version: 1.0
RIM-COD-Module-Name: J2METest
RIM-COD-Module-Dependencies: net_rim_cldc
MIDlet-Jar-Size: 2269
RIM-COD-Creation-Time: 1183626839
MIDlet-Jar-URL: unknown
RIM-COD-URL: J2METest.cod
RIM-COD-SHA1: f3 a2 cd 15 46 2e cd 49 56 51 d2 19 33 ac 76 eb 0f 16 92 86
RIM-COD-Size: 884
MicroEdition-Configuration: CLDC-1.1
MIDlet-1: J2METest
MIDlet-Version: 0.0
MIDlet-Name: unnamed
MIDlet-Vendor: anonymous
MicroEdition-Profile: MIDP-2.0

Actually i have two .jad files, one in my eclipseMe project and one which is generated in the ...BlackBerry JDE 4.1.0\simulator directory.

I would be pleased about any idea.
If not absolutely necessary i rather would like to let antenna beside in this stage of development.
Offline   Reply With Quote