N
N
Nonprogrammer2014-06-09 12:07:33
Java
Nonprogrammer, 2014-06-09 12:07:33

How to run jar program on Windows XP? Does it run normally on Windows 8?

Wrote a small program. I made a jar. On Windows 8 it starts in two clicks. And on Windows XP only from the command line - but it works fine. "Opened with" both java and javaw. Doesn't start. Written on Windows 8 with jdk-1.7. On Windows XP is jre-1.8. How to launch in two clicks?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LPzhelud, 2014-06-09
@c_pro_lang

Create a BAT file (eg jarrunner.bat) and put the following in it:

start javaw -jar %1
exit

Save the file anywhere, and then "Open with" this batch file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question