views:

333

answers:

2

I created a blackberry application but I am having problems publishing it on my web site. I have uploaded the jad, jar, alx and cod file (from which I extracted the whole content). I also added the missing MIME types. But when I try to download the application by requesting the jad file, I get a 500 error with the details saying that the file myproject-30.cod is missing.

So I looked at the list of cod file... sure enough, they go from 0 to 29. No 30, 31 or above. However, in the jad file, there are references for cod files for up to 110.

My question is: how can I configure eclipse to produce the jar file properly? Or, alternatively, how can I modify the jad file to delete references to the 30+ cod files? Or maybe it is that the cod file is missing files?

+1  A: 

You may try with blackberry ant tools, task will look like this:

<target name="produce_ota">
   <mkdir dir="${ota.dir}" />
   <jadtool input="your_app_name.jad" destdir="${ota.dir}">
       <fileset dir="${build.dir}" includes="*.cod" />
   </jadtool>
</target>

This will produce all needed cod parts and jad file to ${ota.dir} assuming there will be built application in ${build.dir} directory.

Check out slashdev.ca tutorial - Blackberry development with Ant & Eclipse

Max Gontar
A: 

For some reason, the JAD file was not recreated by the rapc compile tool. Basically, it was created a couple of week ago and that's it, so clearly it was not up-to-date. To force the eclipse plugin to recreate the file, I simply deleted it. The new file is now working fine.

ADB