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

Testing and Deployment

Reply
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

web deployment of java app with some libraries

hi,

 

whats the recommended way to deploy java apps using some libraries through web ?

 

I got it running but the user has to install one after the other:

 

lib1 .... .jad file

lib2 .... .jad file

...

app .... .jad file

 

always using the files automatically generated while packaging / signing the projects from inside eclipse where I get for each (library or app) project:

 

/deliverables/web/5.0.0/ containing .cod and the .jad

 

----

if using the DesktopManager to install I'm using only the .alx and all was recognized

/deliverables/standard/... .alx

/deliverables/standard/5.0.0 ....

 

thx

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
BlackBerry Development Advisor
Posts: 15,803
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: web deployment of java app with some libraries

You can combine all of your JAD files into one that loads all of your COD files.  Note that we recommend to list the library COD files first.  This is to ensure that auto-start applications are able to run once installed.  If the application COD file is loaded before the library, they can fail to run the first time because of the missing library.

 

We include a command line tool that can be used to combine JAD files.  It's called updatejad.exe and is located in the following directory:

 

.\Eclipse\plugins\net.rim.ejde.componentpack#.#.#_#.#.#.##\components\bin

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: web deployment of java app with some libraries

thanks - I'll try it out

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: web deployment of java app with some libraries

Mark,

 

I tried it out but it doesn't work

 

put all my jad's in one folder

 

navigated to Updatejad folder inside ejde.componentpackxxxxx......

 

then did

 

updatejad.exe <path-to-my-app.jad> <path-to-lib1.jad> etc

 

but my-app.jad wasn't changed

 

then I tried to do it manually and because you said that the libs should be first

I included all the contents from the libs into the my-app.jad directly after the

Manifest-Version: 1.0

line

 

but the libs were still missing

 

any ideas what's going wrong ?

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: web deployment of java app with some libraries

attached is my manually combined jad

 

perhaps you can see anything wrong ?

the libs are placed in the order of dependency before the app was described

 

 

RIM-COD-Module-Name: bblogger_lib
RIM-COD-Module-Name: bbcommon_lib (depends on bblogger_lib)
RIM-COD-Module-Name: ekkes_apps_lib_lnf (depends on bblogger_lib)
RIM-COD-Module-Name: ekkes_apps_lib_navigator( depends on ekkes_apps_lib_lnf,bbcommon_lib,bblogger_lib)
RIM-COD-Module-Name: ekkes_apps_lib_product_family (depends on ekkes_apps_lib_lnf,bbcommon_lib,bblogger_lib)
RIM-COD-Module-Name: ekkes_apps_ese_2010 (thats the app)

 

thx

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
BlackBerry Development Advisor
Posts: 15,803
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: web deployment of java app with some libraries

Each parameter in the JAD file has to be unique.  You can append -# to the end of each parameter to specify multiple COD files.  So it'd look like:

 

RIM-COD-Module-Name

RIM-COD-Module-Name-1

RIM-COD-Module-Name-2

RIM-COD-Module-Name-3

etc...

 

You'll also need the other RIM- entries from your other JAD files (size, URL, etc..).  Make sure that the numbers align for each entry.  Meaning all bblogger_lib have the same number (all -1 or all -2, etc...).

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: web deployment of java app with some libraries

thx - understood

 

but I think its easier to find out why Updatejad.exe doesn't work

 

do you have any idea ?

 

thx

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
BlackBerry Development Advisor
Posts: 15,803
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: web deployment of java app with some libraries

So nothing was changed at all after running updatejad?  Were you trying to combine more than 2 JAD files?  If so, can you try doing 2 at a time?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: web deployment of java app with some libraries

 

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\ekke>cd C:\IDE\35SR2\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.
0.0.25\components\bin

C:\IDE\35SR2\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components
\bin>Updatejad.exe C:\JAD\ekkes_apps_ese_2010.jad C:\JAD\bblogger_lib.jad

C:\IDE\35SR2\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components
\bin>

 

 

same with only using to add one extra jar

ekkes_apps_ese_2010.jad

remains unchanged

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
BlackBerry Development Advisor
Posts: 15,803
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: web deployment of java app with some libraries

Are the other application files located in the same directories (COD files)?  Can you post the contents of 2 JAD files that are failing to update?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.