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
vick_man
Posts: 24
Registered: ‎07-30-2008
My Device: Not Specified

Is it possible to install only jad/jar to Blackberry?

Is it possible to install application to the Blackberry handsets via browser using only jad/jar files (don't use .cod files) ?

The BB Simulator is successfully installing the application, but on real handset Install progress bar gets to about 75% and then fails.  Error message says “Download failed.”  Clicking the Details button gives this message:

"907 Invalid JAR output file: appname.cod data section too large: 71832 bytes."

 

The example of jad file that was used for downloading .jar:

MIDlet-1: APP NAME,/icon.png,AppMain

MIDlet-Vendor: Vendor
MIDlet-Name: APP NAME
MIDlet-Version: 1.0.5
MIDlet-Icon: /icon.png
MicroEdition-Profile: MIDP-2.0
MicroEdition-Configuration: CLDC-1.1
MIDlet-Description: APP NAME
MIDlet-Jar-URL: appname.jar
MIDlet-Jar-Size: 488990

 

Thanks.

Please use plain text.
Administrator
MSohm
Posts: 14,407
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Is it possible to install only jad/jar to Blackberry?

Please see the following link for information on this error.

 

Support - 907 Invalid Jar Error when installing an application wirelessly
Article Number: DB-00432

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800646/Support...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
vick_man
Posts: 24
Registered: ‎07-30-2008
My Device: Not Specified

Re: Is it possible to install only jad/jar to Blackberry?

[ Edited ]
Yes, I read this article before, but can not resolve the problem anyway.
The customer sent another jad/jar files of another app for Blackberry and it install successfully.
All Jad attributes for both midlets are equals.
So, almost all causes are excluding, because there is no .cod file (and no link to cod in jad file).
But except the following causes:
3. You have installed a large application with the WAP Browser (maybe, because the size of the jar file that successfully was installed is about 300kb. But article says about .cod file. Is it same for .jar? Anyway, other midlets for other handsets that much bigger are installing successfully too).
8. An application has exceeded the maximum number of preverification stack maps allowed for a specific method. (unlikely, because there is no message: control flow verification information too large).

Do you have more information how resolve this problem?
Message Edited by vick_man on 07-30-2008 04:47 PM
Please use plain text.
Administrator
MSohm
Posts: 14,407
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Is it possible to install only jad/jar to Blackberry?

For #3, this limitation can apply to any type of file (jad or cod).  You can work around this possible limitation by installing the application using the BlackBerry Browser or Internet Browser.

 

You can verify if you are experiencing #8 by converting the JAR file to a COD file using the BlackBerry JDE.  If this is the cause you should see a similar error from the BlackBerry JDE when it attempts to compile the cod file.  Here are the steps for how to do this.

 

How To - Compile a MIDlet into a COD file
Article Number: DB-00055

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

 

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
vick_man
Posts: 24
Registered: ‎07-30-2008
My Device: Not Specified

Re: Is it possible to install only jad/jar to Blackberry?

The application in the jad/cod files format (converted from jar) is successfully installed to the Blackberry handset from Browser - it's not a problem, but same build in the jad/jar format didn't work.
Probably the problem is an internal converting jar to cod format onto the Blackberry handset in runtime, or not?


Please use plain text.
Administrator
MSohm
Posts: 14,407
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Is it possible to install only jad/jar to Blackberry?

What BlackBerry model and handheld software version are you testing on?  This can be found under Options, About on the BlackBerry.  What version of BlackBerry JDE are you using?  If they are different versions you may see different results.

 

What browser are you using to install the application, BlackBerry Browser, Internet Browser or WAP Browser.  You can see the default browser setting under Options (Advanced Options) Browser.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
vick_man
Posts: 24
Registered: ‎07-30-2008
My Device: Not Specified

Re: Is it possible to install only jad/jar to Blackberry?

We have resolved this bug by turning-off proguard optimization.

But it's unknown, it helps for all cases or only for this.

 

Thanks for help.

 

Please use plain text.
Developer
kzettel
Posts: 120
Registered: ‎07-16-2008
My Device: 9000

Re: Is it possible to install only jad/jar to Blackberry?

Which version of ProGuard are you using?  Are you using BlackBerry's preverification or ProGuard's?  We have seen some problems with rapc not liking ProGuard's preverification and we had to remove the microedition flag and run perverification on ProGuard's output.
Kurt Zettel | Chief Architect | Metova
www.metova.com
Please use plain text.
New Developer
vick_man
Posts: 24
Registered: ‎07-30-2008
My Device: Not Specified

Re: Is it possible to install only jad/jar to Blackberry?

We are using Proguard 3.8, 4.1. We have used Blackberry preverification. The Microedtion flag was removed.
Please use plain text.