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


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

Re: clickable jars

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Nigel Wade <nmw@ion.le.ac.uk>
Newsgroups comp.lang.java.programmer
Subject Re: clickable jars
Date Mon, 23 May 2016 09:25:01 +0100
Lines 40
Message-ID <dqft2tFqc9uU1@mid.individual.net> (permalink)
References <uklujb91cpbrk168agqqm8mh88ag8icaff@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net i/kJOAH45uly6t/6wYtEJwDf2T6SxL5QhXUMEPnAHixUiJT5Os
Cancel-Lock sha1:riAcQjjliZxHOB0K1Zztytn8BGs=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0
In-Reply-To <uklujb91cpbrk168agqqm8mh88ag8icaff@4ax.com>
Xref csiph.com comp.lang.java.programmer:34378

Show key headers only | View raw


On 20/05/16 19:28, Roedy Green wrote:
> Has anyone got jar to be clickable in windows 10?
>

For me they Just Work.

> 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

I have not edited the registry at all. Jars work fine.
If I edit the registry to alter javaw to java then the jar also runs, but in a command shell with the standard 
output/error going to the command shell.
After changing it back to javaw it continues to work as expected.

>
> Just plain reinstalling the JRE does not work for me either.  All the
> registry entries look fine, but they don't launch.
>

Is your system a fresh install of W10, or an upgrade?
If it's an upgrade, maybe there is something you have done in the history of the original Windows that has adversely 
affected the operation of javaw.exe/java.exe after upgrading to W10.

The machine I tested it on is a Surface 3 Pro, which was originally supplied with W8, later upgraded to W8.1 and then to 
W10. If your upgrade path is different that may explain the different end results.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | 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