现在的位置: 首页 > 综合 > 正文

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

2013年09月07日 ⁄ 综合 ⁄ 共 305字 ⁄ 字号 评论关闭

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脚本的方法名称超过了这个长度,因此不能进行编译。

 

 

解决办法:

 

   修改一下方法的长度吧。

 

 

抱歉!评论已关闭.