About 54 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 - 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...

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

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

  4. 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 …

  5. 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.

  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 - The simplest way to create a jar file? - Stack Overflow

    Jul 8, 2014 · I have a Java project and need to create a jar file for it. What is the simplest way to do this?

  8. How can I build JAR files from IntelliJ IDEA properly?

    I'd like to create a JAR file, in a separate directory, that contains the compiled module. In addition, I would like to have the dependencies present beside my module. No matter how I twist IntelliJ IDEA's …

  9. 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.

  10. 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 …