[Ubuntu 14.04 no desktop] I have a java console application, and I need to run all time (1st problem), as well as I can re-access the console whenever I want (2nd problem).
To solve the second problem, I use a screen, then run the jar file in it. So that I can re-attach the screen to access my console app.
I am now stuck with the 1st issue. I want to make the screen (along with the java app running inside) autostart with OS. Because I need the app running all time. Anyone give me an idea? I appreciate all your help. Thanks.