- RUN A JAVA JAR FILE FROM WINDOWS COMMAND LINE PC
- RUN A JAVA JAR FILE FROM WINDOWS COMMAND LINE WINDOWS 7
- RUN A JAVA JAR FILE FROM WINDOWS COMMAND LINE SERIES
This gave me partial happiness: Windows finally realized the entry in the Open With menu was the one with a working path. So eventually I just deleted the jar_auto_file entry. I fussed with assoc and ftype a bit to see if this might wake Windows up I figured the anti-hijacking functionality somehow prevented Windows from listening to the updated path. I also tried pointing it to jarfile, which didn't help either. jar -> jar_auto_file association which pointed to an old an invalid path.Įditing this path did not fix it. jar-> jarfile setup, with jarfile pointing to the right path. Using regedit, I found that HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE registry entries weren't in agreement.
RUN A JAVA JAR FILE FROM WINDOWS COMMAND LINE SERIES
And somehow, I managed to fix it, although I am not sure entirely what fixed it I can only offer you the approximate series of steps I've taken. I ran into someone who had the same problem you did today. I asked the same question over on stackoverflow, but it was pointed out to me that superuser is more suitable for this kind of question. jar files.įor now, I am using C:\Windows\System32\cmd.exe /k "java -jar C:\path\to\jarfile\Program.jar" as a shortcut location to run jar files, but I am not satisfied with this solution as this opens the console to run even Swing applications. I am not looking for a 3rd party application to run.jar files by running java -jar jarfile.jar in cmd.exe. I have already tried fixing this problem with solutions on the following links (without success): jar files I am trying to run, some are GUI Swing applicationsĪnd some open the system console (if not already open) using I have the newest version of both JRE and JDK (Java 8 version 121).jar files by double-clicking them used to work on my PC,īut suddently stopped working some time ago.
RUN A JAVA JAR FILE FROM WINDOWS COMMAND LINE PC
Updates installed both on my PC and laptop.