Have you edited the "set JAVA_HOME" part of trio.bat correctly? If it cannot find the JRE stuff it just closes the DOS box.

M