I know how to increase the size of the stack for my jvm (I start it with my idea with the -Xss64M flag), but here’s how to make the user of my JAR have an increased stack?
The answer like "let the user increase the stack himself" - does not fit.
General description of the task:
There is an algorithm that recursively bypasses a two-dimensional array and searches for possible areas in which there are different pixels, the fact is that if there are many differences, there is not enough standard stack.