• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can not converte jad to prc files

 
Jeru Liu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create a project on POSE with
MIDP for Palm
I used the Converter tools to converte my
jad file(this jad file is created by JBuidler +
Nokia MobileSet)
But report errors that could not converte cause
==================================================
File:C:\codecamp\j2me\samples\HelloMIDP_06\HelloMIDP.jad Result:Failed: The .JAD and .JAR files cannot be converted because critical information between the two files does not match. Try downloading the file again or contact the application provider. ErrCode=1060
==================================================
Then I check my jad and jar file but can not see
there are any values are not match,here is two files:
=================================================
JAD File:
MIDlet-1: HelloMIDlet, , HelloMIDlet
MIDlet-Jar-Size: 812
MIDlet-Jar-URL: HelloMIDP.jar
MIDlet-Name: HelloMIDP
MIDlet-Vendor: Jeru
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-1.0
JAR Mainfest file:
Manifest-Version: 1.0
MIDlet-Name: HelloMIDP
MIDlet-Vendor: Jeru
MIDlet-Version: 1.0
MicroEdition-Profile: MIDP-1.0
MicroEdition-Configuration: CLDC-1.0
MIDlet-1: HelloMIDlet, , HelloMIDlet
Pls Help, thanks in advance!!!
[ January 11, 2002: Message edited by: Jeru Liu ]
 
john muchow
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One cause of this message is if the Jar size (in the JAD file) is not the same as the actual size of the jar file on disk. Check this carefully and retry.
John Muchow
Author: <a href="http://www.amazon.com/exec/obidos/ASIN/0130669113/">Core J2ME Technology</a>
 
Jeru Liu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply,
I had checked it,the actual size is same with
specified in JAD files,
are there any other possible reasons ?
 
john muchow
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you verifying the size? If you are using Windows (right click on the file; select properties) you need to use the value for 'size', not the value for 'size on disk'.
Check that....
John
 
Jeru Liu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John,
Sure, the size is 1kb,the size on disk is 812 byte
My os is W2k,right click that file to check properties,
then i see it's 812 byte,right?
 
john muchow
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With w2k in the explorer, there should be a 'Size' and 'Size on Disk'. For example:
Size 1.30 KB (1,336 bytes)
Size on Disk 1.50 KB (1,536 bytes)
You would want to use the value 1336 for the jar.
 
Jeru Liu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John,
It's seems a bug of converter,I found this post
from one forum,it gives me the answer:
==========================================
Brian Chu posted October 31, 2001 [01:02]
Reply


1060 means the JAR file manifest is missing. There is a known bug in the converter which makes it cannot read the manifest file if it is located at the end of the JAR file. Please re-jar the files (remember to update the MIDlet-Jar-Size). That should be it. Brian
brian.chu@sun.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic