11-08-2010 07:35 AM
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
11-08-2010 01:38 PM
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:
11-08-2010 03:05 PM
thanks - I'll try it out
11-10-2010 01:59 AM
I tried it out but it doesn't work
put all my jad's in one folder
navigated to Updatejad folder inside ejde.componentpackxxxxx......
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
but the libs were still missing
any ideas what's going wrong ?
11-10-2010 02:19 AM
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)
11-10-2010 11:04 AM
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:
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...).
11-10-2010 01:36 PM
thx - understood
but I think its easier to find out why Updatejad.exe doesn't work
do you have any idea ?
11-10-2010 02:32 PM
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?
11-10-2010 02:45 PM
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.componen
tpack5.0.0_5. 0.0.25\components\bin C:\IDE\35SR2\eclipse\plugins\net.rim.ejde.componen tpack5.0.0_18.104.22.168\components \bin>Updatejad.exe C:\JAD\ekkes_apps_ese_2010.jad C:\JAD\bblogger_lib.jad C:\IDE\35SR2\eclipse\plugins\net.rim.ejde.componen tpack5.0.0_22.214.171.124\components \bin>
same with only using to add one extra jar
11-10-2010 03:40 PM
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?