- Executable Jar File Windows 10 Free
- Executable Jar File Windows 10 64
- How To Install Executable Jar File On Windows 10
- Executable Jar File Not Opening Windows 10
- Executable Jar File Windows 10 Download
Active19 days ago
I have a JAR file named helloworld.jar.In order to run it, I'm executing the following command in a command-line window:
This works fine, but how do I execute it with double-click instead?Do I need to install any software?
Francesco Menzani4,2961010 gold badges3434 silver badges6767 bronze badges
DonXExecutable Jar File Windows 10 Free
- May 22, 2017 This is mainly for Indian users. I am not able to open the Income Tax Java ITR files with '.jar' (executable jar files). Only a window pops up, vanishes and then a blank screen. It flashes up with the command prompt and goes blank (white screen with only border). It generally fixes any issues running jar files in Windows 10 HI, Thank you.
- Apr 12, 2016 I have this JAR file downloaded and of course, it needs Java in order to open it. In Windows 10, is there any way to find out if I have Java installed? Or, can Windows 10 open up JAR files natively? If not, then how can I know if I have Java installed on Windows 10?
There is a windows freeware application called 'bat to exe' which you can use to create an exe file from a.bat file with the apropriate command line in it. You can also embed the jar file in the exe with this application, and make it clean it up when it has finished running, so this may be a more elegant solution. May 09, 2019 How to Run.JAR Files on Windows 10 If the issue is with your Computer or a Laptop you should try using Reimage Plus which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. If you want to open your.jar file by double-clicking, then you should change the file type association and change the directory to the location of javaw that is java web start executable. Type this command: C:Program FilesJavaj2rex.y.zbinjavaw.exe” -jar “%1”%. Nov 27, 2017 How to Open.jar Files on Windows 10. Here I have provided all the solutions to open. Jar files in Windows 10 system. Check and try them all. Method-1: Install or Update the Java. This is the easiest and recommended way to run java files in Windows 10 if you are using such data frequently.
DonX7,4621818 gold badges6969 silver badges117117 bronze badges
25 Answers
Easiest route is probably upgrading or re-installing the Java Runtime Environment (JRE).
Or this:
- Open the Windows Explorer, from the Tools select 'Folder Options..'
- Click the File Types tab, scroll down and select JAR File type.
- Press the Advanced button.
- In the Edit File Type dialog box, select open in Actions box and click Edit..
- Press the Browse button and navigate to the location the Java interpreter javaw.exe.
- In the Application used to perform action field, needs to display something similar to
C:Program FilesJavaj2re1.4.2_04binjavaw.exe' -jar '%1' %
(Note: the part starting with 'javaw' must be exactly like that; the other part of the path name can vary depending on which version of Java you're using) then press the OK buttons until all the dialogs are closed.
Which was stolen from here: http://windowstipoftheday.blogspot.com/2005/10/setting-jar-file-association.html
badp8,80033 gold badges5151 silver badges8080 bronze badges
Brian KellyBrian Kelly3,74844 gold badges2323 silver badges3030 bronze badges
In Windows Vista or Windows 7, the manual file association editor has been removed.
The easiest way is to run Jarfix, a tiny but powerful freeware tool. Just run it and your Java apps is back.. double-clickable again.
Community♦
Hendy IrawanHendy Irawan13.6k88 gold badges7979 silver badges9191 bronze badges
If you need to distribute your .jar file and make it runnable at other people's Windows computers,you can make a simple .bat file like this in the command prompt:
and place the .bat file in the same directory as your .jar file.
DemorfDemorf
If you have a jar file called Example.jar, follow these rules:
- Open a
notepad.exe
- Write :
java -jar Example.jar
- Save it with the extension
.bat
- Copy it to the directory which has the
.jar
file - Double click it to run your
.jar
file
5,5801515 gold badges6262 silver badges9494 bronze badges
PusuPusu
An interesting side effect of this causes a problem when starting runnable jar files in the command prompt.
If you try (in a command prompt):
No joy, because this is being translated to the following (which doesn't work):
However, the following command does work:
If you change the association in file manager as described above to:
Then you can type:
in the command prompt and it will now work!
EDIT:(However you then get a black console window when you run a form based (non console) Java app, so this is not an ideal solution)
If you run these jar files by double clicking them in windows, no parameters will be passed so your Java code needs to handle the stack overflow exception and include a 'press a key' function at the end or the window will just disappear.
In order to pass a parameter in windows you have to create a shortcut to the jar file, which includes the parameter in the target line (right click on the shortcut and select properties) you can not add parameters to the jar file icon itself in this way.
There isn't a single, consistent solution here, but you would have the same problem with any other console application.
There is a windows freeware application called 'bat to exe' which you can use to create an exe file from a .bat file with the apropriate command line in it. you can also embed the jar file in the exe with this application, and make it clean it up when it has finished running, so this may be a more elegant solution.
BobBob
Chris Gerken14.6k66 gold badges3535 silver badges5353 bronze badges
surajsuraj
In Windows XP * you need just 2 shell commands:
obviously using the correct path for the JRE and any name you want instead of
myjarfile
.To just check the current settings:
this time using the value returned by the first command, if any, instead of
jarfile
.*not tested with Windows 7
Carlos HeubergerCarlos Heuberger25.2k99 gold badges5454 silver badges8181 bronze badges
There is way without requiring user to do changes on his PC. Runtime.getRuntime.exec() allows us to start cmd.exe and execute commands inside of it. So, it's possible for java program to run itself in command prompt when user clicks .jar file.
dario111crodario111cro53522 gold badges88 silver badges1515 bronze badges
Besides all of the other suggestions, there is one other thing you need to consider. Is your helloworld.jar a console program? If it is, then I don't believe you'll be able to make it into a double-clickable jar file. Console programs use the regular cmd.exe shell window for their input and output. Usually the jar 'launcher' is bound to javaw.exe which doesn't create a command-shell window.
Stephen Gilbert
I´m running Windows 7 x64 and was unable to use any of these fixes.
This one worked for me afterall:
There is an archive which you can download containing a .bat file to run, but check the path of the actual javaw.exe!!!!
lawidlawid
You want to check a couple of things; if this is your own jar file, make sure you have defined a Main-class in the manifest. Since we know you can run it from the command line, the other thing to do is create a windows shortcut, and modify the properties (you'll have to look around, I don't have a Windows machine to look at) so that the command it executes on open is the java -jar command you mentioned.
The other thing: if something isn't confused, it should work anyway; check and make sure you have java associated with the .jar extension.
Charlie MartinCharlie Martin94.8k2121 gold badges171171 silver badges245245 bronze badges
In regedit, open
HKEY_CLASSES_ROOTApplicationsjava.exeshellopencommand
Double click on default on the left and add -jar between the
java.exe
path and the '%1
' argument.Send generated images directly from the program;. Once selected, the picture will be displayed full screen and you can start playing around with the tools via the Menu button or just by tapping the screen. No advertising. Pros of PicSay Pro Photo Editor review. Convenient and easy operation;. Picsay pro free download app.
Sachith2,26422 gold badges2020 silver badges3333 bronze badges
grwwwgrwww3,31111 gold badge88 silver badges22 bronze badges
Unfortunatelly, it is not so easy as Microsoft has removed advanced file association dialog in recent Windows editions. - With newer Windows versions you may only specify the application that is going to be used to open .jar file.
Fixing .jar file opening on Windows requires two steps.
- Open the Control Panel, and chose 'Default Programs -> Set Associations'. Find .jar extension (Executable JAR file) there, and pick Java as default program to open this extension. It will probably be listed as 'Java Platform(SE)'. A faster alternative perhaps is straightforward right-click on a .jar file, and then change associated program by clicking on the 'Change..' button.
- Now open the regedit, and open the
HKEY_CLASSES_ROOTjarfileshellopencommand
key. Luckilly for us, we may specify parameters there for the(Default)
value. On my Windows system it looks like:C:app32jre7binjavaw.exe' -jar '%1' %*
but in most cases it is the following string:C:Program FilesJavajre7binjavaw.exe' -jar '%1' %*
NOTES:
- Do not use
java.exe
there as it will open the shell window. - The jarfix tool mentioned in this thread most likely does nothing more than the registry modification for you. I prefer manual registry change method, as that implies that system administrator can 'push' the registry change to all workstations in the network.
12.2k33 gold badges3030 silver badges5858 bronze badges
I had the same problem in Windows 10. I fixed it using righ-click on the 'helloworld.jar' and go to properties and click on change button under 'Opens with:' and select 'Look for another app on this PC'. In the 'Open with..' dialog box, go to your Java folder location on your PC and open corresponding jdk folder and then open the bin folder and select 'javaw.exe' from there. Then next time your 'helloworld.jar' will open the normal way.
Usual java location example : 'C:Program Files (x86)Javajdk1.8.0_111bin'.
Samintha KaveeshSamintha Kaveesh
Another way to run jar files with a click/double-click, is to prepend '-jar ' to thefile's name. For example, you would rename the file
MyJar.jar
to -jar MyJar.jar
.You must have the
Sachith.class
files associated with java.exe
, of course. This might not work in all cases, but it has worked most times for me.2,26422 gold badges2020 silver badges3333 bronze badges
user4343596user4343596
PreScript: If your prompt appears and disappears immediately, the reason it does so is that your program gets executed and auto shut. Try putting a scanner in the end to terminate and it'll keep your prompt waiting for input before terminating. (Or use delay maybe)
Was in the very same situation, where running .jar from cmd was working fine, but double clicking did nothing.
Solution:Open any text editor and write the command line: java -jar Example.jarSave the file as a .bat file.Run this bat file to get the needed output.
Taking it one step forward, you can convert this bat file to exe file using a simple GUI tool like Bat To Exe Converter.
Now you can share your .jar as a distribution in .exe file which anyone can use just make sure you keep all the files together. (Especially the .jar and .bat file cause .bat is only a cmd prompt)(How it feels logical)
I am fairly new to development and learning a lot. Please excuse for any mistakes if committed. Suggestions are welcome.
Manthan_AdmaneManthan_Admane
If you use eclipse for making your java files, you can choose to export it as a runnable jar file. I did this with my programs and I can just click on the jar and it will run just like that. This will work on both windows, as well as os x.
user2675678
Making a start.bat was the only thing that worked for me.
open a text document and enter. java -jar whatever yours is called .jar
save as start.bat in the same folder as the .jar file you want to execute. and then run the. bat
freeloaderzfulfreeloaderzful
If you need to run the jar file by double clicking on it, you have to create it as a 'Runnable JAR'. you can do it simply with your IDE.
If you're using eclipse, follow these steps :
more information can be found on Eclipse help Page: LINK
Nomesh DeSilvaNomesh DeSilva1,39933 gold badges1919 silver badges3939 bronze badges
There are many methods for running .jar file on windows. One of them is using the command prompt.
Steps :
- Open command prompt(Run as administrator)
- Now write 'cd' command for root directory
- Type 'java jar filename.jar'Note: you can also use any third party apps like WinRAR, jarfix, etc.
1,62022 gold badges2727 silver badges5050 bronze badges
irisrei08irisrei08
Steps:
1.) search for Java SE Runtime Environment on Google: https://www.google.com/search?q=Java+SE+Runtime+Environment
2.) install the appropriate version onto your computer
iorguiorgu
Create
.bat
file:And choose app default to open
.jar
with this .bat
file.It will close
HongarcHongarccmd
when start your .jar
file.2,70622 gold badges1111 silver badges2727 bronze badges
Zoe the transgirl16.2k1212 gold badges6767 silver badges9898 bronze badges
anil kumar meenaanil kumar meena
Actually, I faced this problem too,I got around with it by making a .bat runner for my jar file
here is the code:
here is the code:
Then in Your Main application class do this:
Please Note that
- this code (my code) works only with a jar file, not a class file.
- the jar file must have the same name as the String 'jarName' is the Main class
ZOLDIKZOLDIK
Create a
.bat
file:And put your command in it. here, your command will be
java -jar pathyourJarName.jar
. Save it and double click on bat file to run your jar.Your file name will be like this
fileName.bat
Bandham ManikantaBandham Manikanta
Not the answer you're looking for? Browse other questions tagged javajarexecutable-jar or ask your own question.
Executable Jar File Windows 10 64
Java is one of the most popular coding languages amongst the worldwide developers. The Java environment is used in almost all types of fields including communication, banking, Government sites, gaming and many more. So, there are chances that the file you download from the web or other PC whether of games, documents, codes, software, applications or anything, it is formatted in .jar version.
Sometimes, the Operating Systems like Windows 10 fails to open such type of files. Then it becomes annoying to get access to the data that particular file contains. Today, I will show you the best methods on how to run jar file in Windows 10 OS. Let’s go into the details below.
How to Open .jar Files on Windows 10
Here I have provided all the solutions to open. jar files in Windows 10 system. Check and try them all.
Method-1: Install or Update the Java
This is the easiest and recommended way to run java files in Windows 10 if you are using such data frequently. If you already installed the Java runtime environment but still .jar files won’t open, then try to reinstall or upgrade the software.
- To download Java Runtime Environment,
- Connect to the web on your system
- Go to the official site to download Java
- Click on the ‘Free Java Download’ button
- After the downloaded finished, install the software on your Windows 10 system
- When the process completed, restart your PC
If you are reinstalling the Java application, go to Control Panel > Uninstall a program under the ‘Programs’ section. Then look for the ‘Java’ software package there and uninstall it from your system. Follow the steps mentioned above to reinstall Java.
- To upgrade Java Runtime Environment,
- Check the updates section in your PC settings
- Locate Java software
- If you find the update available for Java, click on that to upgrade to the latest Java package files
Java also has automatic update checking functionality. It’s recommended that you keep it on and whenever you see a prompt to upgrade the software, click on it for improving the app.
Method-2: Use a Third-Party App
One of the most common solutions to open .jar files in Windows is using third-party software. Such tools open the Java files just like you access them in Java environment. Jarfix is one such popular application to open .jar files in Windows 10.
- Download and install Jarfix from the official resource
- Open the software and follow the steps appear on your screen
- Run the application in the ‘Administrative’ mode to get the best result
Method-3: Use Default Programs to Run Jar Files
Sometimes, due to the file association issue, then the jar files won’t open on your PC. You can check and fix the problem in the program settings.
- Press Windows + S on the desktop
- Write “Settings” and open when the icon prompted
- Click on “Apps” category
- Now choose “Default apps” from the left sidebar and then click on “Choose default apps by file type” feature
A window with associated file types will open, where you will see all kinds of files and the apps installed on your PC. The .jar file may show as the .java file format.
- In front of that particular java file format choose the default app as “WinRAR archiver.”
How To Install Executable Jar File On Windows 10
This should allow to open .jar files in Windows 10 system. You can also have more default apps options in the default apps settings in Control Panel of your PC. Go that section and look for javaw.exe file to make it default for the .jar file version.
Executable Jar File Not Opening Windows 10
Method-4: Using Command Prompt
Command Prompt is also a useful and easy way to open .jar files on Windows 10. Follow the steps below:
- Make sure to transfer the jar file to the root directory in your system
- Press Windows + S and type “Command Prompt.”
- When you see the icon, right click on it and choose “Run as administrator” option
- Write the commands below:
cd
java jar filename.jar
Note: You should replace the ‘filename’ with the original name of file.
- In case, if you don’t want to move the jar file to the root directory, then you can use the ‘cd’ command to locate the jar file to the particular directory.
Method-5: Creating .bat File to open .jar File
Executable Jar File Windows 10 Download
If you still wonder how to open .jar files on Windows 10 system, then try creating a .bit file. It will help to access the Java files without any problem.
- In the directory where your jar file is stored, create a new notepad file
- Write ‘java -jar filename.jar’ in that
- Now click on “File” menu and choose “Save As.” option
- Select the Save as Type as “All Files”
- Now, in the File Name box, enter the particular file name with .bat extension
- Click on the ‘Save’ button and make sure the destination directory location is the same where you have stored your Java files
- Follow this process for all Java files you want to access
This solution will surely allow to open .jar files in your Windows Operating System.
Conclusion
Mostly Java files are from either of the two categories; Enterprise Java Archive (EAR) or Java Web Application (WAR). Using the solutions and methods above, you can easily access any kind of Java file in your Windows 10 system.
If you know any other reliable and quick method on how to run jar file in Windows 10, then use the comment section below to spread the words here.
This object-oriented and class-based programming language helps design as many dependencies as you can!