Search code examples
javalinuxwindow-managers

How to run a java GUI at startup in IceWM?


I have been trying to run java based GUI onBoot in IceWM linux, tried to run it through different runlevels..rc3, rc4, and rc5 but couldn't run it. here what I am trying..

sudo java -jar /path/to/jar in a /etc/init.d/script and linking it like

sudo ln -s /etc/init.d/script /etc/rc3.d/S99script

I also made sure that the script has proper permissions too. Help is appreciated.


Solution

  • At last I found the solution! Apparently it was the sudo that was making problem..

    So I referenced /path/to/java/binaries into /etc/sudoers/ file and started java file from /home/loggeduser/.profile (I did this because there is only one user to my system) and done..rebooted and I have the Java GUI running.