How to run a jar executable
Document Information
Document Title |
How to run a jar executable |
Document Number & Revision |
401 - 0002 - 1.0 |
Release Date |
March 14, 2019 |
Documente Status |
Original Document, no ammendments |
Contact»
Lead in
The Microchip Bootloader package runs as a jar exectuable. However, when the user attempts to run the file "nothing" happens. This is owing to an operational requirement,
where the jar executable requires invocation via a BAT file.
What you need:
- Latest version of Java installed
- a bat file that you will create
- The Microchip Bootloader package
Introduction
When attempting to run Microchip's Unified Bootloader Application users will run into an issue where repeated attempts to run the jar executable will prduce no results.
To run the jar file, a bat file is required to invoke the application so that it runs. To create the bat file, follow the steps below.
Create the BAT file
- Open Notepad
- Save the file as [run.bat] NOTE: ensure to set the Save as type to All Files, this avoids a run.bat.txt file from being created
- Enter the following line java -jar UnifiedHost-0.1.14.jar
- Close and save the file
Change the file association for JAR Files
- Extract all files from the Microchip zip file into a directory of your choosing, no installation is available or required
- Right click on the file, select properties
- From Open with, select Change
- Scroll Down and click More Apps
- Scroll down and click Look for another app on this PC
- Browse to ~\Program Files (x86)>java > (Ver #) > bin
- Locate a file called javaws, select and click open
- Click Ok on the properties dialog
- Run the run.bat file