Frage

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" %*
War es hilfreich?

Lösung

Navigate to your file in cmd, and then type

java -jar jarfile.jar

If you can could you upload the file please?

Andere Tipps

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

If there are any errors it will show you.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top