超出了类文件格式的限制 [英] class file format limit(s) exceeded
问题描述
我的SQL很长,大小超过150000个字节。我尝试在derby编辑器中运行它。
当我要运行时,editör抛出此错误
I have a very long sql and it's size is more than 150000 byte . I tried run it in derby editor. When I want to run, editör throws this error
Java
类文件格式限制已超出: method1:e1生成的类中的代码长度
(158045> 65535)
Java class file format limit(s) exceeded: method1:e1 code length (158045 > 65535) in generated class
有什么方法可以增加此限制?
Is there any way to increase this limit ?
ps:我不想将代码分成几部分。而且我不想使用临时表。
ps: I don't want to divide code to a few pieces. And I don't want to use temporary table.
推荐答案
没有办法增加它限制。因此,我使用SQLite代替了
Derby。
there is no way to increase this limit. So I used SQLite instead of Derby.
这也是一个内存数据库。而且默认代码限制超过1000000字节。您也可以在编译时更改代码限制,超过1000000000字节。
It's a in-memory database too. And it's default code limit is over 1000000 byte. Also you can change code limit over 1000000000 byte at compile time.
这篇关于超出了类文件格式的限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!