About 52 results
Open links in new tab
  1. java - How to run a JAR file - Stack Overflow

    Dec 4, 2016 · java -jar Predit.jar It raised "Failed to load main class" exceptions. So I extracted this JAR file:

  2. java - Extracting .jar file with command line - Stack Overflow

    Dec 10, 2011 · I am trying to extract the files from a .jar file. How do I do that using command line? I am running Windows 7

  3. java - What exactly does a jar file contain? - Stack Overflow

    A jar file is basically a zip file containing .class files and potentially other resources (and metadata about the jar itself). It's hard to compare C to Java really, as Java byte code maintains a lot more metadata …

  4. java - Running JAR file on Windows - Stack Overflow

    I have a JAR file named helloworld.jar. In order to run it, I'm executing the following command in a command-line window: java -jar helloworld.jar This works fine, but how do I execute it with dou...

  5. java - Что такое jar файл и зачем он нужен? - Stack Overflow на …

    Jun 20, 2017 · Вопрос такой что такое jar файл и зачем он нужен на практике. Ведь если есть файл java, есть файл class который уже переведен в байт-код, зачем тогда jar файл? Какая его …

  6. Difference between java class and jar - Stack Overflow

    Apr 21, 2011 · A Jar file is an Zip archive containing one or multilple java class files. This makes the usage of libraries (consisting of multiple classes) more handy. Directories and Jar files are added to …

  7. java - Comparing two .jar files - Stack Overflow

    Oct 6, 2010 · How do I compare two .jar files? Both of them have compiled .class files. I want the difference in terms of method changes, etc.

  8. gradle clean fails with "GradleException: Failed to create Jar file"

    Oct 3, 2023 · The answer was to do with a bug in gradle. Versions prior to 7.6.2 (?) failed to handle multi-release jar files (ie with multiple binaries built with different Java versions in them). The jackson …

  9. How to create jar file with package structure? - Stack Overflow

    $ jar cvf asd.jar . to specify the directory (e.g. .) to jar from. That will maintain your folder structure within the jar file.

  10. java - How to make an executable JAR file? - Stack Overflow

    Mar 10, 2011 · A jar file is simply a file containing a collection of java files. To make a jar file executable, you need to specify where the main Class is in the jar file. Example code would be as follows.