I have two PCs, PC_1 running Debian5, PC_2 running Windows, I need to have PC_1 to start a Jar file automatically during startup.
When I put a script file to execute the Jar file in /etc/init.d, the startup hang at terminal screen (before into normal GUI screen of debian) as the Jar file is in infinite loop (constantly running checks).
When I put the script file in /etc/rc.local, somehow I manage to get it execute after GUI screen is shown, but it is run as background process, which the JFrame of the Jar file is not display.
May I know if there is any way to run the Jar file as Root and in foreground so that the GUI will display?
Reason of I required program to run as root is because I need to access serial port. So... ya, I need Root permission.