Windows 10: .jar file

Discus and support .jar file in Windows 10 Network and Sharing to solve the problem; My .jar file is not opening as it opens a cmd applictaion and then dissapears it is a Jar file as i would need it to be an excecutable jar file i do... Discussion in 'Windows 10 Network and Sharing' started by RobertoLopez6, Feb 17, 2019.

  1. .jar file


    My .jar file is not opening as it opens a cmd applictaion and then dissapears it is a Jar file as i would need it to be an excecutable jar file i do have java downloaded aswell as jdk latest version need help pleas

    :)
     
    RobertoLopez6, Feb 17, 2019
    #1
  2. DaveM121 Win User

    jar files

    Fixing .jar file opening on Windows requires two steps:

    • Open the Control Panel, and chose "Default Programs - Associate a File type or protocol with a program". Find .jar extension (Executable JAR file) there, and pick Java as default program to open this extension. It will probably be listed as "Java Platform(SE)".
      A faster alternative perhaps is straightforward right-click on a .jar file, and then change associated program by clicking on the "Change..." button.
    • Now open the regedit, and open the HKEY_CLASSES_ROOT\jarfile\shell\open\command key. Luckilly for us, we may specify parameters there for the (Default) value. This is normally: C:\Program Files\Java\jre7\bin\javaw.exe" -jar "%1" %*

    I Hope this Answers your Question!
     
    DaveM121, Feb 17, 2019
    #2
  3. temp02 Win User
    .java to .jar file

    As a side note to Easy Rhinos comment, you can only jar .class files, meaning that you need to compile all the .java files and them jar the .class files resulting from the compilation. Example:
    Code: javac Test.java jar cf Teste.jar Test.class[/quote]
     
    temp02, Feb 17, 2019
    #3
  4. GSquadron Win User

    .jar file

    .java to .jar file

    Hi guys!
    I have a problem i think i dont know how to do this little thing
    I have searched around the web, but i cant find anyone to explain it how to
    and where to put this code down here in order for the compilator to convert it
    from .java to a .jar file so the program or games i do in neatbeans can be executed in
    my mobile phone!
    Anyone can help??? The code is this one:
    jar cf jar-file input-file(s)
     
    GSquadron, Feb 17, 2019
    #4
Thema:

.jar file

Loading...
  1. .jar file - Similar Threads - jar file

  2. How to open a .jar file

    in Windows 10 Gaming
    How to open a .jar file: When I'm trying to open this file .jar its opening with my current browser opera gx's logo besides it. When I go into my files and find the download, open it, it just loops back to the download thing and doesnt fix. I've downloaded java because i've seen people opening .jar...
  3. How to open a .jar file

    in Windows 10 Software and Apps
    How to open a .jar file: When I'm trying to open this file .jar its opening with my current browser opera gx's logo besides it. When I go into my files and find the download, open it, it just loops back to the download thing and doesnt fix. I've downloaded java because i've seen people opening .jar...
  4. My .jar files don't work even with Jarfix and Java installed.

    in Windows 10 Gaming
    My .jar files don't work even with Jarfix and Java installed.: I have downloaded Jarfix and Java and my .jar files don't open. I double click and they are unresponsive. Please get back ASAP https://answers.microsoft.com/en-us/windows/forum/all/my-jar-files-dont-work-even-with-jarfix-and-java/27e20a0c-ebf3-4c66-818e-a4af7a7db56f
  5. My .jar files don't work even with Jarfix and Java installed.

    in Windows 10 Software and Apps
    My .jar files don't work even with Jarfix and Java installed.: I have downloaded Jarfix and Java and my .jar files don't open. I double click and they are unresponsive. Please get back ASAP https://answers.microsoft.com/en-us/windows/forum/all/my-jar-files-dont-work-even-with-jarfix-and-java/27e20a0c-ebf3-4c66-818e-a4af7a7db56f
  6. I can't open a .jar files

    in Windows 10 Gaming
    I can't open a .jar files: I tried to open .jar files with every browser but it doesn't work. I also uninstalled Java and reinstalled it but it didn't work https://answers.microsoft.com/en-us/windows/forum/all/i-cant-open-a-jar-files/394c6501-f561-4686-8c6e-3cf4cabb4d32
  7. I can't open a .jar files

    in Windows 10 Software and Apps
    I can't open a .jar files: I tried to open .jar files with every browser but it doesn't work. I also uninstalled Java and reinstalled it but it didn't work https://answers.microsoft.com/en-us/windows/forum/all/i-cant-open-a-jar-files/394c6501-f561-4686-8c6e-3cf4cabb4d32
  8. .jar file not opening

    in Windows 10 Gaming
    .jar file not opening: Hello. Every time I try to open a .jar file on windows 11, it doesn't work. I just see a command prompt for a split second, then it geos away. I have tried unblocking the file, jarfix, the .bat file, and much more....
  9. .jar file not opening

    in Windows 10 Software and Apps
    .jar file not opening: Hello. Every time I try to open a .jar file on windows 11, it doesn't work. I just see a command prompt for a split second, then it geos away. I have tried unblocking the file, jarfix, the .bat file, and much more....
  10. Cannot open .jar files, even though Java is installed.

    in Windows 10 Software and Apps
    Cannot open .jar files, even though Java is installed.: My computer has Java installed, but it does not show up as an option when I try to open .jar files. When I search for "java" in "Choose an app on the computer", it shows nothing. How can I solve this if I am not an administrator?...