About 4,120,000 results
Open links in new tab
  1. java - How to run a JAR file - Stack Overflow

    Dec 4, 2016 · I created a JAR file like this: jar cf Predit.jar *.* I ran this JAR file by double clicking on it (it didn't work). So I ran it from the DOS prompt like this: java -jar Predit.jar It raised "Fai...

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

    Dec 10, 2011 · C:\Java> jar xf myFile.jar foo bar The folder where jar is probably isn't C:\Java for you, on my Windows partition it's: C:\Program Files (x86)\Java\jdk[some_version_here]\bin …

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

    Nov 26, 2008 · Drag the jar file in question into a Java project. A copy of the jar file appears. Right click on the jar file, and choose "Build Path" -> "Add to Build Path". Jar file is moved to …

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

    While learning about JAR, I came across this thread, but couldn't get enough information for people like me, who have .NET background, so I'm gonna add few points which can help …

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

    Extract each jar to it's own directory using the jar command with parameters xvf. i.e. jar xvf myjar.jar for each jar. Then, use the UNIX command diff to compare the two directories. This …

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

    Fixing .jar file opening on Windows requires two steps. Open the Control Panel, and chose "Default Programs -> Set Associations". Find .jar extension (Executable JAR file) there, and …

  7. Java using "-cp" and "-jar" together - Stack Overflow

    Aug 21, 2012 · As per the Java cli documentation you can not combine -cp and -jar in the same command-jar Execute a program encapsulated in a JAR archive. The first argument is the …

  8. java - How to Open JAR Files in Windows 7 - Stack Overflow

    If you want to execute your jar file while clicking it, then you must have a main-method in your jar file and configure the same in your mainfest file. you should have an Main-Class attribute …

  9. Could not find or load main class with a Jar File - Stack Overflow

    If you try to run this jar with java -jar App.jar, it will complain that it cannot find the App class. This is because the packages inside App.jar don't match the actual packages in the project. This …

  10. java - How to search for a string in JAR files - Stack Overflow

    Jan 6, 2017 · forfiles /S /M *.jar /C "cmd /c jar -tvf @file | findstr "classname" && echo @path You can either navigate to your desired path , and open cmd from there and run this command OR …

Refresh