Jar file won't run on double click

gedr picture gedr · Jan 31, 2014 · Viewed 23.2k times · Source

I know you may blame me for this being a dupe - but frankly, I do not know what to do next. I spent hours online trying to find my solution, and have found nothing. Zilch. Zero.

Anyway, this is my problem: when I double click my runnable jar file, it shows a hourglass cursor for a second and then it disapears, leaving me with nothing. I have re installed my JDK and JRE 2 times, and nothing happens. Here is my manifest file:

Manifest-Version: 1.0
Class-Path: .
Main-Class: gedr.proj.Paint.Frame

I have tried to run my application via the command line, but am baffled by how to do it.

Tell me if you need any more information, or tell me what to do. Thanks in advance

EDIT: If I try 'java -jar PaintV2.jar' in cmd, it returns

Error: Unable to access jarfile PaintV2.jar

when I run 'ftype | find "jarfile"' it returns

jarfile="C:\Program Files\Java\jre7\bin\javaw.exe" -jar "%1" %*

Answer

Roberto Anić Banić picture Roberto Anić Banić · Jan 31, 2014

Navigate to your file in cmd, and then type

java -jar jarfile.jar

If you can could you upload the file please?