added script to autorestart javarepl.