This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Can not converte jad to prc files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Can not converte jad to prc files" Watch "Can not converte jad to prc files" New topic
Author

Can not converte jad to prc files

Jeru Liu
Greenhorn

Joined: Aug 14, 2001
Posts: 23
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

Joined: Mar 24, 2001
Posts: 49
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

Joined: Aug 14, 2001
Posts: 23
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

Joined: Mar 24, 2001
Posts: 49
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

Joined: Aug 14, 2001
Posts: 23
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

Joined: Mar 24, 2001
Posts: 49
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

Joined: Aug 14, 2001
Posts: 23
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can not converte jad to prc files
 
Similar Threads
Invalid Jar File
qtn_swin_note, bad install on nokia 6600
Unable to install on Nokia6670
Help on creating jar and jad files
.jar to .prc problems please help.