Windows 8.1 won't start a file extension using a .jar file, even though it's possible in Windows 7
This can happen due to a number of reasons, so go by trial and error for the following cases:
• Is the File to be executed empty? Check the Filesize...
• Are you trying to run a 64-Bit app on a 32-Bit Version of your OS?
and lastly...
• Is JDK 7 installed and is your path set? Run Ctrl + R and type cmd hit Enter and type path and Enter again. If your Java Bin Directory is not in this string then that is your Problem.
Related videos on Youtube
Ploug
Updated on September 18, 2022Comments
-
Ploug over 1 year
Here is a picture of the file I want to open, and the program I want to open it with:
If I just click the jar file, it opens my program smoothly (I made that Java program myself), no questions asked.
-
If I click the file and choose the program in the picture as my default program, it says this:
If I do all this with .txt as the file extension it says the same and still doesn't work.
If I do all this in Windows 7 with the same setup, it all works fine.
I also checked my event logs when this occurs and this pops up as a keyword "Audit Success" with the text:
An attempt was made to query the existence of a blank password for an account.
Do you have any idea what might cause this?
-
M.Bennett about 10 yearsWhat filetype is it? What does it execute and where is the source for your jar?
-
PlasmaPower about 10 yearsI think
java
or the file you are opening might be infected... See this Microsoft technet post on the error message. -
Ploug about 10 years@PlasmaPower no, i made the file my self, and i made the program (.jar file) my self. The ONLY thing the file contains is that i made a .txt document, wrote "lols" and saved it as a .atb file extension.
-
Ploug about 10 years@M.Bennet it's a .atb filetype, again only contains the word "lols". It's for me to use for my own program, and again it works in windows 7. The source for my .jar and the source for my file is both on the desktop, the file doesnt execute anything, my program is supposed to open it, and then the program will handle what it needs to handle it self, the problem is that the program won't even be opened so it could be able to do this, eventhough windows 7 allows the program to be opened.
-
Ploug about 10 yearsNo, on my windows 7 machine it actually launched the java program that i made, and handled the file as it was supposed to handle it. I associated it with the java program i can assure you of this. If you need me to open my W7 machine i can do so, but trust me it works as it should on windows 7.. :)
-
Ramhound about 10 yearsYou have configured the "open with" on Windows 8 correct? Windows 8 changed some behavior because it attempts to protect you from unsafe files, complicated to explain, but I suspect the problem is connected to that for some reason. Of course the more logical explanation is your recollection of what you did on your Windows 7 machine is wrong.
-
Ploug about 10 yearsI have only right clicked the file and then clicked "open with" and selected my program i wanna run it with, so i would love if you could explain this complicated thing to me, or atleast link me to something that could explain it?
-
mschenk74 almost 9 yearsHave you tried specifying "java -jar yourprogram.jar" as the program to open that special file type?
-
Ploug about 10 years1 -> no, it contains the word "lols" and so it makes sense the file size is 4 bytes. 2 > No my OS is 64 bit. 3 ->.. hmm i get this? picture
-
M.Bennett almost 9 yearsA little late, but your Path is not set according to your screenshot...Post the solution if you've solved it ;)