[check] Java error: Invalid method Code length ... in class file org/python/pycode/... (script too large)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Medium
|
RaiMan |
Bug Description
***** problem is caused by a Java implementation limit:
A compiled class file cannot be larger than 64 KB.
Since internally when running a script, this is compiled into a class file, and might be too large.
I will try to find some assistance help for a scripter, to know, when his stuff is too large.
So you have to divide your script into smaller packages and use import
-------
I wrote a 500 line sikuli script to play baccarat on an online casino.
The script was working fine so I decided to add some conditional statements to handle specific events in the game.
I added an additional 2500 lines of code and when I run it I get the following error - what does it mean ?
[error] script [ casino.com] stopped with error at line --unknown--
[error] Could not evaluate error source nor reason. Analyze StackTrace!
[error] java.lang.
at java.lang.
at java.lang.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
ecfile(
at org.sikuli.
at org.sikuli.
at org.sikuli.
java.lang.
description: | updated |
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.0 |
Changed in sikuli: | |
milestone: | 1.1.0 → 1.2.0 |
summary: |
- [1.0.1] Java error: Invalid method Code length ... in class file + [check] Java error: Invalid method Code length ... in class file org/python/pycode/... (script too large) |
Changed in sikuli: | |
milestone: | 2.0.0 → 2.1.0 |