Search code examples
javaautoloadjava-web-start

Java Web Start application autoload


Is there a way to make JWS application be runnable on system startup?


Solution

  • It should be as easy as launching the javaws command with the target JNLP URL on system startup. My Windows scripting is a bit rusty but you could do something like this:

    rem In "autoexec.bat", or another system startup script.
    %JAVA_HOME%\bin\javaws http://my.domain.com/myjavawsapp.jnlp
    

    I'm not sure if "autoexec.bat" is a good place for startup items any more but there should be plenty of alternatives like the Start Menup "Startup" folder, Services, and registry entries, etc. Ultimately you just need to call the "javaws" program with your URL.