Как установить jar на windows

Все способы:

  • Установка компонента Java
  • Способ 1: Меню Java (TM) Platform SE
  • Способ 2: Запуск в «Командной строке»
  • Способ 3: Эмуляторы Java
    • Sony Ericsson SDK
  • Вопросы и ответы: 1

Установка компонента Java

Чтобы иметь возможность запускать исполняемые файлы JAR без использования эмуляторов, на компьютер необходимо установить платформу Java. Устанавливается компонент как обычная программа.

Скачать Java с официального сайта

Способ 1: Меню Java (TM) Platform SE

Сразу нужно отметить, что возможности данного способа ограничены. Хотя последняя версия платформы Java поддерживает запуск файлов JAR, далеко не факт, что конкретная Java-программа будет выполнена. Способ прост: кликните правой кнопкой мыши по файлу JAR и выберите в контекстном меню опцию «Открыть с помощью» «Java (TM) Platform SE binary».

Как запустить JAR файл в Windows 10-2

Если ничего не произойдет, переходите к следующему способу.

Способ 2: Запуск в «Командной строке»

Попробуйте запустить исполняемый файл в консоли, если Java-программа не запустится, — по крайней мере, команда запуска вернет описание ошибки, по которому можно будет установить характер проблемы.

  1. Запустите из контекстного меню или системного поиска «Командную строку» или «PowerShell» (можно с обычными правами).
  2. Как запустить JAR файл в Windows 10-3

  3. Сформируйте и выполните команду вида java -jar "D:\executablejarfile.jar", где содержимое кавычек – это путь к исполняемому файл JAR.
  4. Как запустить JAR файл в Windows 10-4

Способ 3: Эмуляторы Java

Лучше всего для запуска приложений Java использовать специальные программы-эмуляторы, из которых самым известным, универсальным и наиболее функциональным является KEmulator Lite. В настоящее время официальный сайт разработчика недоступен, но приложение по-прежнему можно найти в свободном доступе в интернете. Рекомендуем использовать русифицированную портативную версию эмулятора.

  1. Скачайте архив с программой, распакуйте в удобное расположение и запустите исполняемый файл KEmulator.exe.
  2. Как запустить JAR файл в Windows 10-5

  3. Выберите в меню «Файл»«Загрузить jar…» и укажите путь к файлу приложения или игры JAR.
  4. Как запустить JAR файл в Windows 10-06

Если файл не запустится или эмулятор выдаст ошибку, возможно, что-то не так с самим JAR-файлом либо для полноценной работы эмулятора требуются дополнительные компоненты, в частности Java SE Development.

Sony Ericsson SDK

В качестве альтернативы маловесному KEmulator Lite можно попробовать полноценную платформу виртуализации Java-приложений Sony Ericsson SDK. Официальный сайт разработчика более недоступен, однако эмулятор по-прежнему находится в свободном доступе. Также для этого понадобится набор библиотек Java SE Development Kit и утилита JADMaker, которую также придется поискать на просторах интернета.

Скачать Java SE Development Kit с официального сайта

  1. Скачайте Sony Ericsson SDK, Java SE Development Kit (рекомендуется версия 8u191 x86) и JADMaker.
  2. Установите сначала Java SE Development Kit, а затем Sony Ericsson SDK. Инсталляцию следует выполнять с настройками по умолчанию, если вдруг эмулятор попросит добавить себя в исключения брандмауэра Windows, на это нужно дать согласие. Архив с утилитой JADMaker распакуйте в удобное расположение, она понадобится позже. В начале установки Sony Ericsson SDK появится окошко с предложением автоматического обнаружения каталогов Java SE Development Kit, нажмите в этом окошке «Да».
  3. Как запустить JAR файл в Windows 10-7

  4. Установив набор библиотек и эмулятор Sony Ericsson, зайдите в меню «Пуск» и выберите опцию «Sony Ericsson»«Default Device Selection».
  5. Как запустить JAR файл в Windows 10-8

  6. В открывшемся диалоговом окне выберите модель виртуального мобильного телефона, который станет использоваться по умолчанию.
  7. Как запустить JAR файл в Windows 10-9

  8. Запустите утилиту JADMaker и перетащите на ее окошко файл JAR, который будет преобразован в файл JAD. По умолчанию сконвертированный файл сохраняется в исходную папку.
  9. Как запустить JAR файл в Windows 10-10

  10. Откройте опять меню «Пуск» и запустите эмулятор, выбрав опцию «Sony Ericsson»«Run WIDP Application».
  11. Как запустить JAR файл в Windows 10-11

  12. В открывшемся окне обзора укажите путь к сконвертированному в JAD файлу JAR.
  13. Как запустить JAR файл в Windows 10-12

  14. В результате откроется окно эмулятора с названием Java-приложения. Чтобы его запустить, нажмите кнопку «Launch».
  15. Как запустить JAR файл в Windows 10-13

К сожалению, использование даже такого мощного инструмента как Sony Ericsson SDK не гарантирует, что Java-приложение будет сразу же успешно запущено. Успех или неудача будут зависть от ряда факторов, как то: совместимость версии Java-приложения с эмулируемым мобильным устройством, а также сборки Windows 10. Так, по каким-то причинам в последних сборках этой системы платформа Sony Ericsson SDK работает некорректно.

Наша группа в TelegramПолезные советы и помощь

Пройдите тест, узнайте какой профессии подходите

Работать самостоятельно и не зависеть от других

Работать в команде и рассчитывать на помощь коллег

Организовывать и контролировать процесс работы

Быстрый ответ

Для запуска JAR-файла в операционной системе Windows примените следующую команду:

Вместо имя_вашего_файла.jar укажите имя вашего JAR-файла. Если возникли трудности, проверьте правильность установки Java и наличие ключа Main-Class в файле Manifest.mf.

Кинга Идем в IT: пошаговый план для смены профессии

Проверка функциональности Java Runtime Environment (JRE)

Актуальность версии JRE – ключевое условие успешного запуска JAR-файлов. При необходимости произведите обновление или переустановку среды выполнения Java. Это повысит производительность вашего приложения и может предотвратить появление ошибок.

Настройка ассоциаций JAR-файлов

Рекомендуется установить ассоциацию JAR-файлов с javaw.exe для удобства использования. Тогда JAR-файлы можно будет запустить дважды кликнув мышью без открытия консоли.

Проблемы с указанием пути к javaw.exe можно решить с помощью утилиты Jarfix. Она автоматически выполнит необходимые настройки и сделает JAR-файлы кликабельными.

Запуск JAR-файла через пакетный файл

Чтобы обойтись без использования командной строки для запуска JAR-файла, создайте пакетный файл (runme.bat) в одной директории с ним:

В конце файла добавляется команда pause, благодаря которой консоль не закроется по окончании процесса, и результаты работы приложения будут доступны для просмотра.

Визуализация

Представим, что воздушный шар (🎈) – это ваш JAR-файл.

  1. Подготовка: Размещаем шар на земле (🏞️).
  2. Нагрев: Запускаем файл с помощью java -jar или двойным кликом по файлу (💻).
  3. Взлет: Шар поднимается в небо (🎈🛫 – JAR-файл запустился!).

Статусы этапов:

Стабильное функционирование ваших JAR-файлов

Рекомендуется создать исполняемый file, чтобы упростить работу с JAR в Windows. Инструменты JSmooth или Launch4j могут преобразовать JAR в ‘.exe’, что облегчит процесс работы.

Передача параметров и консольные окна

При необходимости передачи параметров создайте ярлык с соответствующими аргументами. Если вас не устраивает появление консольного окна при работе графических приложений, используйте javaw.exe вместо java.exe.

Устранение проблем

Если возникают проблемы с запуском, проверьте, корректно ли установлен путь в переменной PATH. Если происходит ошибка java.lang.NoSuchMethodError: main, скорее всего, проблема кроется в Main-Class вашего Manifest.mf.

Полезные материалы

  1. Запуск приложений из JAR-пакетов — официальное руководство Oracle.
  2. Работа с файлом манифеста — важные детали для упаковки и запуска JAR.
  3. Ассоциация JAR-файлов в Windows — корректное связывание JAR-файлов.
  4. Как запустить JAR-файл из командной строки — настройка путей для запуска в CLI.
  5. Запуск JAR в Windows — советы по устранению типичных проблем.
  6. Руководство по JSmooth — создание исполняемых файлов из JAR.

A JAR is a file format that provides a compressed version of a folder by aggregating many different files like metadata, image, audio, or directories into one for distribution purposes. These JAR files can be found as .jar in a zipped file folder or a file that is created via WinZip software. This software also helps to extract the .jar folder. Additionally, it also archives and decompress the files. The JAR files provide us with two great advantages. Be it to decompress, view, or run any JAR files, Java Runtime is mandatory. There are various other tools like File Viewer Plus, WinZip, WinRar, etc to open JAR files which only works with Java Runtime. In this article, we have shown how to open jar files with Java Windows 10.

How to Open JAR Files in Windows 10

Table of Contents

JAR files can aggregate thousands of distinct files to make a single application, then they can compress the contents of the folder which in turn reduces the size of the folder and thus helps them to transfer between networks easily. If you want to open a JAR file on Windows 10, the first thing you need to do is to check if you have Java Runtime installed already on your PC. To do so, follow the steps given below.

1. Hit the Windows key. Type Cmd on the search bar and click Open.

Launch Command Prompt

2. Type the command java -version as shown and hit Enter.

Type java version as an command. How to Open JAR Files in Windows 10

3. If you receive back following message, then your system does not have Java Runtime.

‘java’ is not recognized as an internal or external command,
operable program or batch file

Check if you have Java or not

If you do not have Java, then none of the JAR or JRE files can be executed.

How to Install Java Runtime

Java Runtime is the crucial application that runs the JAR files. Once the Java presence is determined in your system you can proceed accordingly. If the Java Runtime app is missing, grab and install it by following the steps given below.

1. Download the latest version of Java from the official download page.

Open Java official website. How to Open JAR Files in Windows 10

2. Select the Version as per your system requirement.

Select the Version to install the Java setup

3. Once downloaded, click on the .exe setup down arrow and select Open.

Note: Double click also works to open the .exe setup file.

Open the downloaded Java setup. How to Open JAR Files in Windows 10

4. Select the Install button as highlighted to start the installation process.

Click Install to start the installation process

5. Wait for a few moments to complete the Java setup.

Wait till the application gets installed. How to Open JAR Files in Windows 10

6. Click the Close button once the Java is successfully installed.

Click Close to finish the installtion

Java installation only permits you to open JAR files along with the method given below. This is because Java does not associate with the .jar extension sometimes. Therefore, it is not a must but safe to follow any one of the upcoming methods to open a JAR file after installing JRE.

Also Read: Fix Java Virtual Machine or JVM not found error

Method 1: Open with Java Platform Library

The fundamental and easy method to open any application is via desktop shortcut. The open with option gives you the choice to decide the type of file format that exists already in the system to run the application. Therefore, you can choose whichever format is applicable as per your need. In the same way, the JAR file can also be opened with the pre-installed file formats applicable to it. Follow the steps.

1. Right-click on the .jar file and select the Open with option.

Select Open with option for the .jar file

2. Select the Java(TM) Platform SE Binary app as depicted and click OK to open the file.

Note: Click More apps to find other relevant apps that enable the .jar files.

Open JAR file with Java TM Platform SE Binary app. How to Open JAR Files in Windows 10

Method 2: Execute JAR through Settings App

To run the .jar directly, you need to set the Java(TM) Platform SE Binary app as default. This can be done via system settings. Follow the steps mentioned below one by one.

1. Hit the Windows key. Go to Settings.

2. Select the Apps option.

Click Apps. How to Open JAR Files in Windows 10

3. Select Default apps on the left pane.

Click on Default apps

4. Click Choose default apps by file type.

click Choose default apps by file type. How to Open JAR Files in Windows 10

5. Scroll down and locate the .jar option. Click on the Addition symbol and add Java(TM) Platform SE binary as the default application to open the .jar file.

Set Java TM Platform SE Binary as default app for .jar

6. Once the default app is set, go back to the folder which holds the .jar file and double click it. Now, you will be able to open the file directly.

Also Read: How to Play OGG Files on Windows 10

Method 3: Use Command Prompt

The JAR can also be opened using the command prompt console with a certain syntax or format.

Note: The JAR file should be in executable format. To open a JAR file via command prompt, follow the steps given below.

1. Go to Downloads. Right-click on the Java installation .exe file and select Run as administrator.

Right click on the Java .exe and run it as administrator. How to Open JAR Files in Windows 10

2. Type Command Prompt on the Windows search bar and select Run as administrator.

Open command prompt

3. Execute the java -jar c:\pathtojarfile.jar command, where mention the location path of the jar file on <pathtojarfile>.

Note: Example command: java -jar C:\Users\GREEN\Desktop\test.jar

Execute the command

Method 4: Download a JAR file opener

A JAR opening can also be done with a third-party app. The apps support a plethora of aspects and make it easier to open, view, and edit files. Therefore, download a JAR opener of your choice.

Note: 7Zip is used as an example for illustration purposes. 7zip also extracts JAR files which allows you to view the contents of the .jar package. Still, Java Runtime Environment is compulsory to run the application.

1. Go to the 7zip official website to download it.

Download 7zip from its official website

2. Run the downloaded 7zip .exe setup file. Click on Install.

3. Click Close to complete the installation process.

4. Launch the 7zip application. Select the path of the .jar file to run it.

Launch 7zip and run the jar file

Also Read: How to Open GZ File in Windows 10

Method 5: Use Third-Party Executor Software

To execute the JAR file with just a click, install third-party software on your Windows 10. The executor program JARX can be used for this method. To open jar files with Java Windows 10, implement the steps given below.

1. Open Jarx’s official website and click Jarx-1.2-installer.exe (74 kB) as highlighted to download the setup.

Download Jarx setup

2. Run the setup and click Install to start the installation process.

Click Install to start the installation process

3. Wait for the installation to complete and click Close to finish it.

Click Close to finish the installation setup. How to Open JAR Files in Windows 10

4. Once installed, double-click the .jar file to launch it directly.

Recommended:

  • 14 Ways to Clear Cache in Windows 11
  • How to Create a Hanging Indent in Word and Google Docs
  • How to Repair System Files on Windows 10
  • 19 Best Free File Manager for Windows

We hope that you found this article useful and you were able to learn how to open jar files Windows 10. Let us know what you want to learn about next. You can reach out to us with your queries and suggestions via the comments section below.

Download Article

Download Article

  • On Windows
  • |

  • On Mac
  • |

  • Video
  • |

  • Expert Interview
  • |

  • Q&A
  • |

  • Tips
  • |

  • Warnings

This wikiHow teaches you how to open and run executable JAR files on a Windows or Mac computer. JAR (Java Archive) files contain data to be used with the Java program. Most JAR files are simply containers for data that another program needs to run with Java; therefore you cannot run these files and nothing will happen when you double-click them. Similarly, most executable JAR files are downloaded as installation files to install applications or programs. Therefore, you should double check that you have the right JAR file designed for your operating system if you are having problems opening the file.

How to Open and Run a JAR File

Download and install Java on your computer, and make sure it’s updated to the current version. Double-click on the JAR file to open it with Java. If it doesn’t open, double-check that it’s an executable file.

  1. Step 1 Install Java...

    Install Java on your computer if it isn’t installed. You can’t run JAR files without Java installed on your computer. If you don’t already have Java installed, go to Java’s website at https://www.java.com/en/download/ and click the Free Java Download button below the latest version of Java, then install Java once it downloads.

    • You may have to restart your computer for Java to be fully implemented.
  2. Step 2 Double-click the JAR file.

    If it’s executable and you have Java installed, it should open. If it doesn’t open, proceed to the next step.

    • You may see a pop-up window asking which program you want to use to open the file. If so, click Java(TM) and then click OK.

    Advertisement

  3. Step 3 Make sure your JAR file is an executable file.

    JAR files that you download in order to set up programs are different from «library» JAR files, which store data that a program running Java can use. Since they don’t have interfaces like executable JAR files, you cannot run non-executable JAR files.

    • For example, many of the JAR files in a program’s data folders are not executable files.
    • If you downloaded your JAR file from online, make sure you clicked the Windows version of the file rather than the Mac version.
  4. Step 4 Update Java.

    If your JAR file produces an error when you double-click it, you may need to update Java. To do so:

    • Open Start
      Windows Start

      .

    • Scroll down and click the Java folder.
    • Click Check For Updates.
    • Click Update Now on the Update tab.
  5. Step 5 Double-click your JAR file again.

    If it doesn’t open this time, the file you’re trying to open isn’t executable and thus cannot be «run» in the traditional sense.

  6. Advertisement

  1. Step 1 Install Java...

    Install Java on your computer if it isn’t installed. You can’t run JAR files without Java installed on your computer. If you don’t already have Java installed, go to Java’s website at https://www.java.com/en/download/ and click the Download button below the latest version of Java, then install Java once it downloads.

    • When installing a non-Apple file on Mac, you may have to first click OK on the warning, click the Apple menu, click System Preferences, click Security & Privacy, unlock the menu, click Open Anyway next to the file’s name, and then click Open when prompted before you can install the file.
  2. Step 2 Try double-clicking your JAR file.

    If it’s executable and you have Java installed, it should open. If double-clicking the file doesn’t open it, proceed to the next step.

  3. Step 3 Make sure your JAR file is an executable file.

    JAR files that you download in order to set up programs are different from «library» JAR files, which store data that a program running Java can use. Since they don’t have interfaces like executable JAR files, you cannot run non-executable JAR files.

    • For example, many of the JAR files in a program’s data folders are not executable files.
    • If you downloaded your JAR file from online, make sure you downloaded the Mac version and not another operating system’s version.
  4. Step 4 Update Java.

    If your JAR file produces an error when you double-click it, you may need to update Java. To do so:

    • Open the Apple menu
      Mac Apple

      .

    • Click System Preferences.
    • Click Java.
    • Click the Update tab.
    • Click Update Now.
  5. Step 5 Double-click your JAR file again.

    If it doesn’t open this time, the file you’re trying to open isn’t executable and thus cannot be «run» in the traditional sense.

  6. Advertisement

Add New Question

  • Question

    How can I download multiple .jar files while playing Minecraft?

    You just download them. Minecraft won’t affect it unless your computer is really old and slow.

  • Question

    How do I use this on Linux?

    You use the command: «java -jar «. You can also run these files by clicking on them on some distros of Linux, but it does not happen on most.

  • Question

    Why doesn’t the .Jar file I created run?

    You created it as some sort of place where you’ll archive things. Even though you created a jar file, it doesn’t mean that it is an executable, so it won’t run.

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Video

  • Java programs should work on all platforms. If one does not, either it was not coded properly, or it is a very specialized program that calls on system resources or other programs.

  • A .jar file may be a program or a library. If it’s a library, it has no executable class inside and thus there is no use in running it.

Thanks for submitting a tip for review!

Advertisement

  • Java is safer than most programming languages, but malware written in Java still exists. Be cautious of running JAR files downloaded from online.

Advertisement

Thanks for reading our article! If you’d like to learn more about fixing computer issues, check out our in-depth interview with Chiara Corsaro.

About This Article

Article SummaryX

1. Install Java on your computer.
2. Make sure the JAR file is executable.
3. Double-click the JAR file to open it.

Did this summary help you?

Thanks to all authors for creating a page that has been read 2,208,284 times.

Is this article up to date?

Windows apps are mainly packaged as installers or executable files. An app installer has the MSI extension and an executable file has the EXE extension. At times, a developer may choose to zip an EXE file. This is done because browsers will block an EXE from downloading thinking it is malicious. Similarly, some email services and clients may not let users attach or download an EXE file. Windows users are therefore, used to extracting an EXE from a zipped folder in order to run it. While normal, this can be confusing if you’ve downloaded a JAR file. The JAR file will be associated with the 7zip or Winzip apps. The archive app will be able to extract the JAR file but there isn’t going to be anything in it that you can run. Here’s how you can run a JAR file on Windows.

What Is A JAR File?

A JAR file is a Java file. JAR is the file extension for Java files. Apps are built to run on the JAVA framework. Minecraft (the desktop version) is one common example of an app that requires Java installed on your system to run. Minecraft itself is packaged as an EXE file so you never have to run a JAR file with it.

The JAR file is a pure Java app that hasn’t been packaged into an EXE. Windows alone cannot run it.

Install Java

In order to run a JAR file on Windows, you need to install Java on your system. Check if the file you want to run requires a specific version of Java to run. If the developer hasn’t specified a version, download and install the latest version of Java on your system.

Run A JAR File

The file association of the JAR file will not change once you’ve installed Java. Go to the folder the JAR file is in. Right-click it and go to the ‘Open with’ option. Select ‘Choose another app’. You will see ‘Java(TM) Platform SE binary’ listed in this context menu but don’t select it. Select the ‘Choose another app’ option.

The ‘How do you want to open this file?’ menu will pop up. Select ‘Java(TM) Platform SE binary’ and check the ‘Always use this app to open .jar files’ option at the bottom. Click ‘Ok’.

The file will now open. All future JAR files that you download will now be associated with Java. You will only have to double click a JAR file to run it. The next JAR file you download will not be associated with an archive app. Instead, the file’s icon will be the official Java file icon.

Install Java 

default avatar image

Fatima Wahab

Fatima has been writing for AddictiveTips for six years. She began as a junior writer and has been working as the Editor in Chief since 2014.

Fatima gets an adrenaline rush from figuring out how technology works, and how to manipulate it. A well-designed app, something that solves a common everyday problem and looks

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows xp cursor png
  • Windows 10 не выводит звук на bluetooth наушники
  • Как сгруппировать ярлыки на рабочем столе windows 10
  • Настройка видеозахвата windows 10
  • Descargar windows 10 iso