OutOfMemoryError: java heap space in kotlin

Hi, I alwayse use fiji in java.

Recently, i use fiji in kotlin(i’m changing language java to kotlin)
But this OutOfMemoryError is occured.
I added option -Xmx4096, but not working.
This source code is working in java.

How can i do? Is my option is wrong? ( sorry my poor english :frowning:

(in java Edit > Options > Memory & … is correct Maximum memory size(4096MB). But in kotlin this value is 129MB)

Sorry, this question is resolved.
I had a mistake in options