Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problem with:error: java.lang.ClassFormatError: Truncated class file

843829Jun 26 2005
Hello, I created an simple applet writing "hello world". Now I would like to add *.class file to my serwer witch I've implemented on microcontroller P89C51RD2BN.
Serwer is programmed with hex file which is created after compiling C source files. In this case I converted .class file to array in C (using hexedit program). When I am (using IE ) browsing my serwer Html site is loading corectly and *.class file is send from serwer also corectly (define arrays are transfered corectly) but applet is not initiated. When I am runnig Java console I can see this:

error: java.lang.ClassFormatError: Truncated class file

When I am runnig the same site with the same class file on my PC everything is ok.

I would be greatfull for any help. Thx. (sorry for my English :P )
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2005
Added on Jun 26 2005
0 comments
160 views