How to make my program appear in the list of Windows programs?

4

I have a question, how can I make my program done in Java, come out in the list of programs installed in Windows?

Any class that allows me to do this?

    
asked by Pablo Palma 18.10.2016 в 21:47
source

1 answer

2

This can not be done directly from Java. It happens that when you execute a program made in Java, you do not execute your main directly, what you execute is the JVM so that it executes your program. This is easy to check when you run an application from the console:

java <parámetros de la JVM> -cp <ubicación de tus librerías> paquete.de.la.ClasePrincipal

Where java , on Windows, is an executable by itself.

What some programs like the IDEs done in Java do (Netbeans, Eclipse, Idea, etc.) is to have a native OS executable (for Windows, .exe files) which can have a direct access. Within these executables, there is a call to the command java <parámetros de la JVM> -cp <resto de parámetros> paquete.de.la.ClasePrincipal .

    
answered by 18.10.2016 / 22:37
source