After the command is executed, the ant window opens with an error of 255

Игорь Бобров <[email protected]> Mon, 30 Sep 2019 21:21:13 +0300
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <[email protected]>
My code is written in target:
<exec executable="mate-terminal">
            <arg value="-e" />
            <arg value="java -cp build/ Main" />
        </exec>
After I close the terminal in ant it says that: Result: 255
How to remove this error? Mate-terminal command does not return code 255