0

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.

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.

1

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

  • Where can I find a simple jar application for testing whether my windows can open jar application or not? – Seyed Morteza Mousavi Jun 25 '14 at 11:22
-1

Probably it's because you are using jre8. The jar file you downloaded may not be compatible with it. Try a lower version: jre6 or jre7.

protected by Community Mar 24 '18 at 13:08

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.