About 744,000 results
Open links in new tab
  1. 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 …

  2. java - How to use classes from .jar files? - Stack Overflow

    Jan 20, 2009 · I read the Java tutorials on Sun for JAR files, but I still can't find a solution for my problem. I need to use a class from a jar file called jtwitter.jar, I downloaded the file, and tried executi...

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

  4. java - How to run a JAR file - Stack Overflow

    Dec 4, 2016 · Follow this answer, if you've got a jar file, and you need to run it See troubleshooting sections for hints to solve most common errors Introduction There are several ways to run java …

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

    Dec 10, 2011 · Given a file named Me.Jar: Go to cmd Hit Enter Use the Java jar command -- I am using jdk1.8.0_31 so I would type C:\Program Files (x86)\Java\jdk1.8.0_31\bin\jar xf me.jar That should …

  6. java - The simplest way to create a jar file? - Stack Overflow

    Jul 8, 2014 · The c option indicates that you want to create a JAR file. The f option indicates that you want the output to go to a file rather than to stdout. jar-file is the name that you want the resulting …

  7. java - Viewing contents of a .jar file - Stack Overflow

    Nov 26, 2008 · Well, a jar-file is just a zip-file, so if you unzip it (with your favorite unzipping utility), you get all the files inside. If you want to look inside the class files to see the methods, you'll need a tool …

  8. How can I add local JAR files to a Maven project? - Stack Overflow

    How do I add local JAR files (not yet part of the Maven repository) directly in my project's library sources?

  9. java - Run jar file in command prompt - Stack Overflow

    May 23, 2017 · 263 If you dont have an entry point defined in your manifest invoking java -jar foo.jar will not work. Use this command if you dont have a manifest or to run a different main class than the one …

  10. How to add local .jar file dependency to build.gradle file?

    Note that - if you have external dependencies in your jar, you have to build a shadow jar to be able to use it this way, however, if you publish it to your local maven repo it's unnecessary.