Running a Java executable jar on a PC [closed]

0

A question to get rid of doubts, I have an executable jar that runs without problem on my PC. To make it run on another PC, I need to know what to install. Continuing with the theme, java's own libraries are all generated in the jar, that's the way it is. Thanks and regards. Thank you.

    
asked by Carlos 16.03.2017 в 21:45
source

3 answers

1

so you can run an application on another computer, you need to have installed JRE (Java RunTime Enviroment).

You can also press the right button of the mouse, hold down the SHIFT key and you will get a drop down menu of the jar, select "OPEN WITH:" select JAVA (TM) Plataform SE Binary

link

    
answered by 16.03.2017 в 22:06
0

First you must position yourself in the folder that contains the .jar and you write the following command from cmd:

java -jar tuArchivoJar

Greetings

    
answered by 16.03.2017 в 23:49
0

Configure your variables from environment , then run in a console or terminal:

$java -jar archivo.jar
    
answered by 16.03.2017 в 23:53