Windows 10: Java won't work when I try and open jar files with it

Discus and support Java won't work when I try and open jar files with it in Windows 10 Network and Sharing to solve the problem; I just got Java SE binary and this message keeps pooping up when ever I try and open a jar file:[ATTACH] I've already installed Java and had the... Discussion in 'Windows 10 Network and Sharing' started by JoshuaFarr1, Feb 6, 2020.

  1. Java won't work when I try and open jar files with it


    I just got Java SE binary and this message keeps pooping up when ever I try and open a jar file: Java won't work when I try and open jar files with it 207d3262-eac8-4213-bebb-956aa6cace66?upload=true.png I've already installed Java and had the installation complete, what do I do?

    :)
     
    JoshuaFarr1, Feb 6, 2020
    #1
  2. 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 6, 2020
    #2
  3. .java to .jar file

    if you know the manual then you know you dont put the code in the program, you convert all of your java class files into a jar file using their compiler.
     
    Easy Rhino, Feb 6, 2020
    #3
  4. DaveM121 Win User

    Java won't work when I try and open jar files with it

    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 6, 2020
    #4
Thema:

Java won't work when I try and open jar files with it

Loading...
  1. Java won't work when I try and open jar files with it - Similar Threads - Java won't try

  2. Cannot set Java to open .jar files by default

    in Windows 10 Network and Sharing
    Cannot set Java to open .jar files by default: I have Windows 10 Home, on an HP Pavilion.Anyway, today I downloaded a .jar file, and whenever I double-clicked on it, it would not open automatically. When right clicking on the .jar file and selecting "open with", "JavaTM Platform SE binary" would not show up. Yes, I have...
  3. Jar file not turning into a java file

    in Windows 10 Ask Insider
    Jar file not turning into a java file: [ATTACH] submitted by /u/Dentist-Ecstatic [link] [comments] https://www.reddit.com/r/Windows10/comments/mchi81/jar_file_not_turning_into_a_java_file/
  4. .Jar files not opening

    in Windows 10 Ask Insider
    .Jar files not opening: ive tried everything, jarfix CMD pathing , BAT file, javaw.exe fucking nothing. submitted by /u/jmantechno [link] [comments] https://www.reddit.com/r/Windows10/comments/l8afe2/jar_files_not_opening/
  5. java doesnt want to open .jar files

    in Windows 10 Network and Sharing
    java doesnt want to open .jar files: yea i know that you need to select the java binary platform in open with. but when i do that and try to open the .jar file it instantly closes it again and doesnt do anything. i have tried to reinstall it and all kinds of other stuff...
  6. I want to open a JAR file with java

    in Windows 10 Network and Sharing
    I want to open a JAR file with java: I want to open up a JAR file through java, I open up the file, right-click on it, press open with and scroll through but cannot find java anywhere, even though I have it installed. in this case, I want to download Optifine for Minecraft 1.14.4. I've been trying to figure this...
  7. Java won't open a .Jar file, please help!

    in Windows 10 Customization
    Java won't open a .Jar file, please help!: So I have a file that is a .Jar and for some reason Adobe is set as the default application to open it. When I go to change the default the only thing that shows up is adobe or The Microsoft store. I have just recently updated to Java to 1.8 and it still won't show up in the...
  8. Java .jar file is not downloaded as a java file.

    in Windows 10 Installation and Upgrade
    Java .jar file is not downloaded as a java file.: I like playing Minecraft, and I like to play with friends. So I tried to download the sever.jar file and it downloaded a download but, when I wnt to open this file it brought me to internet explorer manage download files page. It asked me if I wanted to save, open, or save...
  9. Java .jar file is not downloaded as a java file.

    in Windows 10 Installation and Upgrade
    Java .jar file is not downloaded as a java file.: I like playing Minecraft, and I like to play with friends. So I tried to download the sever.jar file and it downloaded a download but, when I wnt to open this file it brought me to internet explorer manage download files page. It asked me if I wanted to save, open, or save...
  10. Jar files won't open.

    in Windows 10 Software and Apps
    Jar files won't open.: I cannot for the life of me get ANY executable jar file to run, it opens, flashes, and closes if anything. I have tried updating and making sure I have the correct version of java. (Im currently running windows 10 64bit). I have tried going into the command prompt...