Can not open ".jar" file in windows 8
Solution 1
Regarding your Original Question, the JAR file you are downloading is meant for Java Micro Edition running on Mobile Devices. So you cannot directly run those JAR'S on PC unless you have a mobile emulator (here)
As you have stated in your comment you only want to test if a JAR file is runnable or not, you can find various online. One of them Tic-Tac-Toe. Or you can pack your own JAR and test them.
Solution 2
The game you downloaded is for a mobile phone device i.e java micro edition available only on mobile phones
To run the game on a PC you should dowload a Java mobile emulator for the PC
Download emulator from here Java Mobile Emulators
Related videos on Youtube
Seyed Morteza Mousavi
Hi, I am a software developer and sometimes write blog posts: https://mousavi310.github.io/ https://medium.com/@mousavi310
Updated on September 18, 2022Comments
-
Seyed Morteza Mousavi over 1 year
I downloaded a jar application named Need for speed most wanted. I double clicked on the jar file icon, however it did not execute.
I checked I have jre installed in my windows 8 (64 bit) machine in path "C:\Program Files\Java\jre8\bin" and there is also javaw file.
I saw some link like Running Jar file in Windows, how to run .jar file by double click on windows 7 (64) and Can't Run JAR Files but none of them helped me.
I also installed Jarfix and used it. Any way it does not work for me.
I tried to run jar application using command prompt using command:
java -jar "NeedForSpeedMostWanted"
But I get error:
Error: Unable to access jarfile NeedForSpeedMostWanted
And I tried adding .jar extension to command:
java -jar "NeedForSpeedMostWanted.jar"
But again I get another error:
no main manifest attribute, in NeedForSpeedMostWanted.jar
So what else I must check to run my jar file.
-
abhishekkannojia almost 10 yearsAre you trying to run Java Mobile Game on PC ?? I believe you cannot run them directly without a mobile emulator.
-
Seyed Morteza Mousavi almost 10 yearsWhere can I find a simple jar application for testing whether my windows can open jar application or not?
-
abhishekkannojia almost 10 years
-
Seyed Morteza Mousavi almost 10 yearsThanks, now I download jar file in java2s.com/Code/Jar/c/Downloadcontentmanager18jar.htm but it does not work. I dabble clicked and it does not open.
-
abhishekkannojia almost 10 yearsI think those jar files are not standalone binaries. Ok, try this sourceforge.net/projects/tictactoe-javab
-
abhishekkannojia almost 10 yearsThe JAR file sourceforge.net/projects/erframework/files/… does not contain any Main-Class that's why giving an error. Type
java -jar BlockingFramework.jar
oncmd
to see the error. I don't have much knowledge about JAVA, and I think you should refer to their documentation for more details.
-
-
Seyed Morteza Mousavi almost 10 yearsWhere can I find a simple jar application for testing whether my windows can open jar application or not?