java.lang.ClassFormatError: Unknown constant tag 0 in class file【解决办法】
来源:互联网 发布:厄米特矩阵和正交矩阵 编辑:程序博客网 时间:2024/05/16 14:18
java.lang.ClassFormatError: Unknown constant tag 0 in class file【解决办法】
2008年12月23日 16:34
在通过文件上传之后,运行java程序,突然发现这么一个错误:java.lang.ClassFormatError: Unknown constant tag 0 in class file,通过网上查找,很多人认为是要重新编译,可是按照这个方法重新编译之后还是得到同样的结果!百思不得其解!
最后通过:
Maybe it's yet to appear, but I found (and replied) that it was due to an SCP file transfer (of a binary 'class' file) in ascii mode from Windows to Unix.
(1) I did a hex dump of the files on their respective computers, and the two copies of the same class file differed.
(2) I did the transfer again in binary mode and the class file now works. (and, the two files no longer differ.)
获得答案,就是在上传类文件的时候使用了ASCII的模式,而java编译之后的类文件是需要采用binary模式的,改变上传文件的模式之后问题获得了解决!
- java.lang.ClassFormatError: Unknown constant tag 0 in class file【解决办法】
- java.lang.ClassFormatError: Illegal UTF8 string in constant pool in class file Server/Request
- java.lang.ClassFormatError unrecognized class file version 解决办法
- java.lang.ClassFormatError unrecognized class file version 解决办法
- java.lang.ClassFormatError Duplicate field name&signature in class file XXXXXX
- 有关java.lang.ClassFormatError: Truncated class file错误
- java.lang.UnsupportedClassVersionError: Bad version number in .class file 解决办法
- java.lang.UnsupportedClassVersionError: Bad version number in .class file 解决办法
- java.lang.UnsupportedClassVersionError: Bad version number in .class file解决办法
- java.lang.UnsupportedClassVersionError: Bad version number in .class file解决办法
- java.lang.UnsupportedClassVersionError: Bad version number in .class file 解决办法
- junit,powermock单元测试时问题java.lang.ClassFormatError: Invalid length nnn in LocalVariableTable in class
- java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class
- java.lang.ClassFormatError: Extra bytes at the end of class file
- Linux上安装tomcat报java.lang.ClassFormatError: Truncated class file
- Caused by: java.lang.ClassFormatError: Extra bytes at the end of class file
- Unknown class WFTextView in Interface Builder file.解决办法
- org.hibernate.MappingException: Unknown entity: java.lang.Class解决办法
- C语言中不用宏实现变长参数函数的原理及实现
- WinCE 界面开发:使用HTML Browser Control
- 测试用例设计白皮书--因果图方法
- control battery chg &dischg
- Flex与JavaScript的交互:调用JavaScipt或者被JavaScript调用
- java.lang.ClassFormatError: Unknown constant tag 0 in class file【解决办法】
- TEST for office posting
- 评估您的网站/博客的价值
- 引用 #pragma once 与 #ifndef
- 修改sde表列长度
- 对CRITICAL_SECTION理解的总结
- 优化PHP代码的40条建议
- javascript下:从xls文件中导数据到数据库
- 10个非常棒的Ajax及Javascript实例资源网站