html - Starting a JAR/Java file over Custom URI Scheme -


i have managed create batch file can executed using
<a href="testbatch: -username admin -password pass123 openform?id=111">open batch file</a>

here testing handling switches important part testbatch: have registry set correctly batch file runs. can call jar file within batch file no problems, unless in new edge browser, jar file not found(no idea why).

so modify registry , link jar file executed. reg file looks like.

windows registry editor version 5.00 [hkey_classes_root\testjava] @="url: test java" "url protocol"=""  [hkey_classes_root\testjava\shell]  [hkey_classes_root\testjava\shell\open]  [hkey_classes_root\testjava\shell\open\command] @="\"java.exe\" -jar \"c:\\users\\public\\testapp.jar\" %1" 

when make uri call of testjava: usual prompt run jar file on local machine suggests accessing fine. allow , command prompt flashes doesn't run jar.

all jar file create .txt file. , have tested works via clicking it/ running in cmd , works in batch.

what should run jar file?

edit update: have managed launch edge , internet explorer directly jar file wanted. had explicitly locate java.exe before starting jar file. reg file looks this:

windows registry editor version 5.00 [hkey_classes_root\testjava] @="url: testjava" "url protocol"=""  [hkey_classes_root\testjava\shell]  [hkey_classes_root\testjava\shell\open]  [hkey_classes_root\testjava\shell\open\command] @="\"c:\\program files (x86)\\java\\jre1.8.0_51\\bin\\java.exe\" -jar \"c:\\users\\public\\testapp.jar\" %1" 

still not sure why is? , unknown why running batch file edge launches jar file doesn't work.

edit update 2

i have made batch file locate java.exe explicitly , works in edge browser. weird?


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -