Good day.

What is the problem: There are GUI applications written in Java. Applications are presented as a jar file. Double-clicking on any of these files (and any other jar executable) does not launch.

What and what I work with: ОC - windows 10. JDK version - 11. Development environment - Intelligent IDEA (with its help I compile source codes and collect jar files).

As I tried to solve the problem: First I decided to check that everything is in order with the jar files themselves. I ran them from the command line using the java -jar JarFilName.jar and javaw -jar JarFileName.jar commands. Everything worked fine. Next, I tried to double-click the same jar files on other PCs where Java is installed. Everything worked fine there. To launch jar files, as a program opening files of this type, Java (TM) Platform SE binary was selected on my PC (on other PCs, where jar opening was working with a mouse click, Java (TM) Platform SE binary was also selected).

Please tell me what the problem may be and how to solve it.

  • As I remember, there is a problem with the launch when there are all sorts of non-Latin characters in the file path, in particular the username of the home directory. How to solve it, I really do not know - Serhii Dikobrazko
  • On the way to the files and directory where Java is, there are no Russian characters. I transferred it to the root of the disk D and to those directories in whose names only Latin. But that did not solve the problem. On the computers on which I ran the same jar files — in the names of the box where I placed the jar files — there were Russian letters, but everything worked. Oh, to understand what the problem is. - Bakuard
  • @Bakuard duck create a batch file, business then. - Krychun Ivan
  • one
    In principle, the very first request in Google gives such instructions to superuser.com/questions/1194758/… , if you are friends with English. Have you tried? - Serhii Dikobrazko
  • 3
    You can do this: jarfix.ru.softonic.com - ezhov_da

1 answer 1

I switched to regedit, and it turned out that HKEY_CLASSES_ROOT.jar uses WinRAR as the default application. Changed to jarfile - it all worked. More information can be obtained from the first link provided in the comments question.