您的位置:首页 > 编程语言 > Java开发

错误 java.lang.ClassFormatError: Invalid method Code length 的解决办法

2010-11-23 17:39 871 查看
The short answer is that a function in your script is too long and is tripping over a Java limitation on the length of a method inherited by Jython. Java methods are limited to 65535 characters or less. You'll need to break the script up into smaller pieces. E.g.

也就是java方法的最大限制长度是 65535 , 而通过jython编译的python脚本的方法名称超过了这个长度,因此不能进行编译。

解决办法:

修改一下方法的长度吧。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐