Exception in thread "Thread-5" java.lang.OutOfMemoryError: Java heap space
in
Programming Questions
•
1 year ago
Hi, I made on Mac a program, now trying to running on Windows, but this error appears in windows:
Exception in thread "Thread-5" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3209)
at java.lang.String.<init>(String.java:215)
at java.lang.StringBuilder.toString(StringBuilder.java:430)
at processing.mode.java.preproc.PdePreprocessor.write(PdePreprocessor.java:322)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:261)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:197)
at processing.mode.java.JavaBuild.build(JavaBuild.java:156)
at processing.mode.java.JavaBuild.build(JavaBuild.java:135)
at processing.mode.java.JavaMode.handleRun(JavaMode.java:176)
at processing.mode.java.JavaEditor$20.run(JavaEditor.java:481)
at java.lang.Thread.run(Thread.java:662)
we have increased the memory here from 500 MB to 1.2 GB, but the same error appears.
how could I set the correct size of the Java heap space?
thank you
Exception in thread "Thread-5" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3209)
at java.lang.String.<init>(String.java:215)
at java.lang.StringBuilder.toString(StringBuilder.java:430)
at processing.mode.java.preproc.PdePreprocessor.write(PdePreprocessor.java:322)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:261)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:197)
at processing.mode.java.JavaBuild.build(JavaBuild.java:156)
at processing.mode.java.JavaBuild.build(JavaBuild.java:135)
at processing.mode.java.JavaMode.handleRun(JavaMode.java:176)
at processing.mode.java.JavaEditor$20.run(JavaEditor.java:481)
at java.lang.Thread.run(Thread.java:662)
we have increased the memory here from 500 MB to 1.2 GB, but the same error appears.
how could I set the correct size of the Java heap space?
thank you
1