Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34349

clickable jars

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject clickable jars
Date 2016-05-20 11:28 -0700
Organization Canadian Mind Products
Message-ID <uklujb91cpbrk168agqqm8mh88ag8icaff@4ax.com> (permalink)

Show all headers | View raw


Has anyone got jar to be clickable in windows 10?

i.e.  type  xxx.jar on the command line and have it execute with
javaw.exe or java.exe

If you have W10-32 and W10-64, you can reinstall the JRE or JDK which
will set up a link from jars to that jvm. Then use regedit.exe to find
the jar link to javaw.exe in the registry, and modify it to java.exe.
The link looks like this: Computer : HKEY_CLASSES_ROOT : jarfile :
shell : open : command : "C:\Program
Files\java\jre1.8.0_92\bin\javaw.exe" -jar "%1" %*. Or you can run
under administrator filetype jarfile= "C:\Program
Files\java\jre1.8.0_92\bin\javaw.exe" -jar "%1" %* at a command
prompt. Do not put the command in a bat file or the " and % quoting
will confuse it. Then run under administrator assoc .jar=jarfile
Though in theory this should work, I cannot get it to. I always get an
error message like this Error: Could not find or load main class
E:\mindprod\applet\xxx.jar

Just plain reinstalling the JRE does not work for me either.  All the
registry entries look fine, but they don't launch.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Incorrect documentation is often worse than no documentation.
~ Bertrand Meyer (born:1950 age 65)

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

clickable jars Roedy Green <see_website@mindprod.com.invalid> - 2016-05-20 11:28 -0700
  Re: clickable jars Martin Gregorie <martin@address-in-sig.invalid> - 2016-05-20 19:31 +0000
    Re: clickable jars Lew <lewbloch@gmail.com> - 2016-05-20 12:49 -0700
      Re: clickable jars Roedy Green <see_website@mindprod.com.invalid> - 2016-05-20 13:00 -0700
    Re: clickable jars Roedy Green <see_website@mindprod.com.invalid> - 2016-05-20 12:55 -0700
  Re: clickable jars Nigel Wade <nmw@ion.le.ac.uk> - 2016-05-23 09:25 +0100
  Re: clickable jars Roedy Green <inquiry@mindprod.com> - 2016-07-06 14:13 -0700

csiph-web