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. I can't execute .jar files at all

    in Windows 10 Gaming
    I can't execute .jar files at all: good afternoon everyone, I can't open .jar files on my windows 11 laptop.I've tried most of the fixes that pop up online:-reinstalling Java;-opening as administrator with the JavaTM Platform SE Binary;-I have my system up to date;-I tried changing variables on the system...
  3. I can't execute .jar files at all

    in Windows 10 Software and Apps
    I can't execute .jar files at all: good afternoon everyone, I can't open .jar files on my windows 11 laptop.I've tried most of the fixes that pop up online:-reinstalling Java;-opening as administrator with the JavaTM Platform SE Binary;-I have my system up to date;-I tried changing variables on the system...
  4. shimeji not showing when jar file opened

    in Windows 10 Gaming
    shimeji not showing when jar file opened: i downloaded the zip file and extracted it, downloaded java. why can't i see my shimeji when the jar file's running? https://answers.microsoft.com/en-us/windows/forum/all/shimeji-not-showing-when-jar-file-opened/8addc836-c62c-4237-b6b3-c2e5f6594c4f
  5. shimeji not showing when jar file opened

    in Windows 10 Software and Apps
    shimeji not showing when jar file opened: i downloaded the zip file and extracted it, downloaded java. why can't i see my shimeji when the jar file's running? https://answers.microsoft.com/en-us/windows/forum/all/shimeji-not-showing-when-jar-file-opened/8addc836-c62c-4237-b6b3-c2e5f6594c4f
  6. Cannot Open .jar files

    in Windows 10 Software and Apps
    Cannot Open .jar files: I've been facing an issue on my Windows 11 system related to .jar files. Despite using the Jarfix tool, I'm still unable to open .jar files on my system.Here are some details:Operating System: Windows 11Tool Used: JarfixI've utilized Jarfix to fix the file association for...
  7. Cannot Open .jar files

    in Windows 10 Gaming
    Cannot Open .jar files: I've been facing an issue on my Windows 11 system related to .jar files. Despite using the Jarfix tool, I'm still unable to open .jar files on my system.Here are some details:Operating System: Windows 11Tool Used: JarfixI've utilized Jarfix to fix the file association for...
  8. Can't find .jar files in "Choose default apps by file type"

    in Windows 10 Network and Sharing
    Can't find .jar files in "Choose default apps by file type": When I try to find the .jar extension so I can change its default app, it is literally not there. I've seen screenshots, and I do everything right, yet the .jar extension isn't even there for me....
  9. Can't find .jar files in "Choose default apps by file type"

    in Windows 10 Gaming
    Can't find .jar files in "Choose default apps by file type": When I try to find the .jar extension so I can change its default app, it is literally not there. I've seen screenshots, and I do everything right, yet the .jar extension isn't even there for me....
  10. Can't find .jar files in "Choose default apps by file type"

    in Windows 10 Software and Apps
    Can't find .jar files in "Choose default apps by file type": When I try to find the .jar extension so I can change its default app, it is literally not there. I've seen screenshots, and I do everything right, yet the .jar extension isn't even there for me....