Eugene Loy
Eugene Loy

Reputation: 12416

Java Web Start application autoload

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

Upvotes: 2

Views: 237

Answers (2)

Stefan
Stefan

Reputation: 848

Just include the JNLP file in the startup process. Since the JNLP needs to be locally available anyway there is always a file on the machine. For windows you can check under Control panel -> Java -> Temporary Internet Files -> View and right click the app and choose show JNLP file.

Btw if you install the app through the web a copy is placed on your local machine.

Upvotes: 0

maerics
maerics

Reputation: 156434

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.

Upvotes: 3

Related Questions