Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Web Start deploy on Windows startup

I have a Java application that I'm about to begin to use Web Start to deploy. But a new demand has made me rethink this, as I'm now required to add a piece of functionality that allows the end user to select whether or not they'd like to run this program on startup (of Windows, not cross-platform). But I'd still like to shy away from making this run as a service. Is there any way that this can be accomplished using Web Start, or should I explore other options to deploy this? Thanks in advance.

like image 759
Glockstock Avatar asked Mar 24 '26 19:03

Glockstock


2 Answers

It actually works to put a this in the jnlp-file:

<shortcut online="true">
    <desktop/>
    <menu submenu="Startup"/>
</shortcut>

But that still would only work with English windows versions. German is "Autostart", Spanish was "Iniciar" I think. So it causes basically the same headache as the way via the IntegrationService.

like image 99
Ansgar Avatar answered Mar 27 '26 09:03

Ansgar


I have not tried it, but I wonder if you could use the new JNLP IntegrationService in combination with the javaws command line program. The idea being to programmatically create a shortcut in the Windows startup group (although that location is dependent on specific Windows version).

like image 38
kaliatech Avatar answered Mar 27 '26 10:03

kaliatech