Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 11
Registered: ‎09-19-2009
My Device: Not Specified
Accepted Solution

Problem importing JAR to my application

I am using JDE 4.7 to compile and debug a simple soap client example.

 

My project (called "login") has Properties -> Build -> Imported jar files listing the JAR I need (ksoap-midp.jar) and compiles just fine

 

It seems importing is not good enough for deployment because the simulator (9000-4.6.0.150) complains:

 

Module 'login' has verification errors.EF: 20 SIZE: 0
Error starting login: Module 'login' has verification errors.

 

Looking through this forum, it seems I should

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Compi...

 

but this does not seem to work. Specifically,

 

Create new project (OK, called it "kSOAP")

Add compiled JAR file

    1) Select Project (OK)

    2) Select Project > Add File to Project (OK)

    3) Select appropriate JAR file (****ERROR****)

Make project a library (OK)

Compile (OK)

Make project dependent (OK)

 

I can not select a JAR file! The only file types allowed are *.java;*.png;*.gif;*.key;*.rrc;*.rrh

 

As expected, compiling does not work:

 

Building login
C:\Program Files\Research In Motion\BlackBerry JDE 4.7.0\bin\rapc.exe import=kSOAP.jar;"..\lib\net_rim_api.jar";lib\ksoap-midp.jar codename=login -midlet login.rapc warnkey=0x52424200;0x52525400;0x52435200 SOAPClient.java
I/O Error: Import file not found: kSOAP.jar
Error while building project

 

Where did I screw up? Thanks

 

 

 

 

 

Developer
Posts: 183
Registered: ‎12-17-2008
My Device: 8320

Re: Problem importing JAR to my application

please check below article.

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Compi...

 

 

kums

******************************

Press kudos which the post help you
Please mark posts as solved if you got a solution
Developer
Posts: 183
Registered: ‎12-17-2008
My Device: 8320

Re: Problem importing JAR to my application

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=18655#M18655

 

check this link.

kums

******************************

Press kudos which the post help you
Please mark posts as solved if you got a solution
New Developer
Posts: 11
Registered: ‎09-19-2009
My Device: Not Specified

Re: Problem importing JAR to my application

Thanks for the links, but I have read both of them. The second had problems with project dependencies, which is not a problem I am having.

 

As for the first link you gave me, I have tried to follow the instructions, but one step eludes me.

 

In the "Add compiled JAR file" step:

1) Select Project (OK)

2) Select Project > Add File to Project (OK)

3) Select appropriate JAR file (****ERROR****)

 

Here is what I see (I am using JDE 4.7.0.41):

 

 

 

Please notice that there is no option to select a JAR file.

 

Is there a step where the JAR file is renamed to have one of these suffixes?

What version of the JDE do you have where this works?

 

 

 

Thanks

 

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Problem importing JAR to my application

you can download the source of ksoap2 to build it into an own project.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
New Developer
Posts: 11
Registered: ‎09-19-2009
My Device: Not Specified

Re: Problem importing JAR to my application

Turns out the 4.7 JDE is broken.

 

 

The instructions for "How to compile a JAR file into a BlackBerry Library", locatate at:

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_Compi... 

does not work for JDE 4.7.

 

 

I have installed JDE 4.6.1, and it works fine.

 

 

Is there place to report this bug?

 

 

Thanks 

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Problem importing JAR to my application

the developer issue tracker maybe

https://www.blackberry.com/jira/secure/Dashboard.jspa
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
New Developer
Posts: 151
Registered: ‎01-05-2010
My Device: dev alpha c (bb10)
My Carrier: www.rzr.online.fr

Re: Problem importing JAR to my application