, Java , script? - :
#!/bin/sh
first_java_program
nohup second_java_program &
exit 0
Another option would be to run a shell script without Terminal.app, but directly with a system call (1) at the Unix level or something similar, without interacting with the graphical interface.
source
share