Linked Questions

10 votes
1 answer
126k views

Running JAR file on Windows 10 [duplicate]

I have made a Jar file, but I cant make it to run by double clicking. It works fine using java -jar name.jar or by making a batch file. I have already reinstalled jdk1.8.0_102, set the JAVA_HOME ...
Asnira's user avatar
  • 313
0 votes
2 answers
6k views

How to make a .jar file run without cmd [duplicate]

Sorry if this a little dumb, but I have a .jar file that runs great when i type java -jar quiz.jar. But it doesn't work when i just double click on the file. I have it set to open with java.exe, and ...
Stefan Carlson's user avatar
303 votes
25 answers
1.6m views

Running JAR file on Windows

I have a JAR file named helloworld.jar. In order to run it, I'm executing the following command in a command-line window: java -jar helloworld.jar This works fine, but how do I execute it with ...
DonX's user avatar
  • 16.2k
6 votes
3 answers
17k views

Double Clicking JAR file does not open Command Prompt

I want to run a Jar file by double clicking it. Following is the only Java class file present in it. import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; ...
whitehat's user avatar
  • 2,381
2 votes
3 answers
22k views

How to create a cmd file to run jars?

I have literally tried everything to try and make my jar files executable by double clicking. But i have come to the conclusion that either I need some major help because my java installation has a ...
Stefan Carlson's user avatar
3 votes
2 answers
2k views

Cannot open runnable .jar file [duplicate]

I have created a runnable .jar file on Eclipse (right click on project --> export --> extract required libraries), and saved it to my desktop. However, the file doesn't run when I double click ...
g4m3r2's user avatar
  • 55
1 vote
0 answers
6k views

A java Exception has Occurred when Running .jar File of GUI

I have created a GUI project and compile the program using CMD. For Creating .jar File, I created manifest.txt and made the jar by using following command: jar cmf manifest.txt Client.jar *.class ...
Karedia Noorsil's user avatar
2 votes
1 answer
4k views

System.getenv("ProgramFiles") returns C:\Program Files (x86)

I am running on a 64 bit installation of Windows 7 and am calling System.getenv("programfiles") which is returning C:\Program Files (x86) instead of C:\Program Files. I have also noticed that when I ...
user2248702's user avatar
  • 2,929
0 votes
3 answers
4k views

Runnable jar exported with eclipse isn't working, in eclipse it still works

I'm trying to export a java project in eclipse as a runnable jar, but for some reason the runnable jar doesn't work. If I double click the executable jar, it doesn't do anything. I tried both extract ...
Yadeses's user avatar
  • 195
1 vote
1 answer
2k views

Unable to run .jar files by double-clicking them on Windows 7

Running a .jar file in the command line works fine, but I am unable to execute .jar files on my PC by double-clicking them. What is interesting, the same .jar files successfully execute on my laptop ...
bobasti's user avatar
  • 1,858
0 votes
2 answers
1k views

Problem with running jar file in windows10

I have a java project, which I converted into jar file. And later, my C# project is using that jar file with this code proc = new Process(); proc.StartInfo.WorkingDirectory = jarDir; ...
Mateusz Boruch's user avatar
1 vote
2 answers
1k views

Launch executable jar file

I have a problem with an executable jar file. When I launch my jar file with Windows command line, all is good : java -jar updater.jar When I double click on my jar file, nothing happens. This ...
Nicolas's user avatar
  • 19
0 votes
0 answers
1k views

How to run jar file on button click in my html page?

I have created testing automated script for a webpage of my desktop application. so it runs fine manually from eclipse. I am using selenium web driver and java. Now I want to create GUI/Easy ...
SAI RAM's user avatar
1 vote
1 answer
590 views

JAVA, Batch file errors

I have an existing Java project that compiles and runs properly through Eclipse. I have created the following .bat file to run the program sans Eclipse: java -classpath jflashplayer.jar;bin ...
Birrel's user avatar
  • 4,804
3 votes
1 answer
660 views

Unable to run jar file in Windows by double clicking

I am trying to run a very simple program by double clicking my Jar file with javaw. It runs fine from Netbeans AND from the command line. My registry path to javaw: "C:\Program Files\Java\jre1.8....
pabitele's user avatar

15 30 50 per page