gedr
gedr

Reputation: 316

Jar file won't run on double click

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" %*

Upvotes: 6

Views: 23388

Answers (2)

Stephen Corcoran
Stephen Corcoran

Reputation: 346

In the command line type java -jar jar_name.jar.

If there are any errors it will show you.

Upvotes: 1

Roberto Anić Banić
Roberto Anić Banić

Reputation: 1421

Navigate to your file in cmd, and then type

java -jar jarfile.jar

If you can could you upload the file please?

Upvotes: 5

Related Questions