Output error message when Java fails to run app

This is occurred when sketch has syntax error.
Watch whether an app is finished in other thread

Now user can edit source code while running app.