error in network class downloading on Jeode VM in IPAQ
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dimitris_Karteris
Posted On:   Friday, September 19, 2003 08:34 AM

I use the Jeode JVM for my Compaq iPAQ running Windows CE. I have written a small Java program that downloads a class from a http site, loads this class and finally instantiates an object of this class. I 've compiled this program with JKD 1.4. When I run it in my WinXP PC there is no problem. When I run it in the PocketPC a I get a ClassFormatError; that is the class that I download from the http site cannot be interpreted as a class file!!! After reading a book for Pocket PC programming I figures out that it's probably a file conversion problem. When a file is transfered from a PC to a Pocket PC and vice versa the ActiveSync converts it to a valid format. So when I use WinExplorer to tranfer a class file to the Pocket PC ActiveSync handles conv   More>>

I use the Jeode JVM for my Compaq iPAQ running Windows CE.
I have written a small Java program that downloads a class from a http site, loads this class and finally instantiates an object of this class. I 've compiled this program with JKD 1.4. When I run it in my WinXP PC there is no problem. When I run it in the PocketPC a I get a ClassFormatError; that is the class that I download from the http site cannot be interpreted as a class file!!!
After reading a book for Pocket PC programming I figures out that it's probably a file conversion problem. When a file is transfered from a PC to a Pocket PC and vice versa the ActiveSync converts it to a valid format. So when I use WinExplorer to tranfer a class file to the Pocket PC ActiveSync handles conversion. When I donload this through HTTP using a socket this conversion does not take place so the format is invalid. Does anyone know how can I make this conversion and fix this problem?

thanx in advance,

Dimitris

   <<Less
About | Sitemap | Contact