windows « jar « Java I/O Q&A





1. Running Jar file in Windows    stackoverflow.com

I have a "helloworld.jar" file. For running a JAR file I am using a command-line window and executing the following command:

    java -jar helloworld.jar
By using this ...

2. how to add a java class to a folder within a jar file    stackoverflow.com

using jar on the windows command prompt, how can I add foo.class to a folder "classes" in foo.jar? I can add the file to the jar using

jar uvf foo.jar ...

3. Not able to run my jar file on Windows    stackoverflow.com

I have these files board.class and x4.class (x4.class has main() method). To jar these files, I wrote

jar cf x4.jar *.class
and got a x4.jar file. I copied this x4.jar file to my Desktop (on ...

4. How to delete file which is used/locked by windows in java    stackoverflow.com

I have some application, which has ability to update itself. Its downloads the jar file from the net, and then tries to replace used jar to run this application by downloaded ...

5. Add Jar File to Buildpath in Windows Command Line    stackoverflow.com

Im quite annoyed at having to ask this but I cant get it to work. Currently I have a project with:

5 Classes in the src/ folder ...

6. java- jar file cannot find resources    stackoverflow.com

I 'm working on a java application and in the program I use some files such as images, a local database and an .htm file (used as help file). I have ...

7. how to list currently running jar files in windows using java?    stackoverflow.com

Im developing a simple console application using java. I want to display currently running jar files in my system. The following code is displaying all running process window.

try {


  ...

8. how to find the jar file containing a class definition?    stackoverflow.com

What is your favorite tool, plugin, script, to find a java class in a bunch of jar files? Very often I inherit code that complains about a class that doesn't exist, and ...

9. how to run or install a *.jar file in windows?    stackoverflow.com

i have downloaded jbpm-installer-3.2.7.jar but i don't know how to install or run the file. if i double click it it is opening in winrar application. i tried installing through command prompt, ...





10. Compile folder with .java files and Jar it    stackoverflow.com

I'm trying to figure out compiling a folder with Java source files in it. There's a folder structure (root folders are org.AppName.i18n and META-INF). Eventually I need to get a Jar ...

11. How do JARs handle Windows vs. *nix file systems?    stackoverflow.com

So my understanding is that JARs can have a hierarchy of files and folders. So if I want to JAR up the following file structure:

someDir/
    anotherDir/
   ...

12. My jar file will not execute    stackoverflow.com

File PrintTest.java:

    public class PrintTest{
      public static void main(String[] args){
           System.out.println("Why are you ...

13. I Cant get a .jar file to run after being double clicked on windows 7    stackoverflow.com

i have tried several things so far, i have used a .bat file to run it, and it opens up the command prompt, but closes right after opening. i have a ...

14. How Open *.jar File? Is It the Same as .*exe for Windows?    stackoverflow.com

I'm new to Java. I just created my first Java application using NetBeans. Here's the source code:

package helloWorld;


public class Main {

    public static void main( String[] args ) ...

15. How to start JAR on Windows with .bat file?    stackoverflow.com

I need to start a jar file with a *.bat file so that after it executes it detaches from the terminal window (command prompt). Is this possible? If so, how? Thanks!

16. Jar files on Solaris listed as corrupt, fine on Windows    stackoverflow.com

Using ant build scripts in eclipse to create a tar file using the following command Build is run on a Windows 32-bit machine and the resulting tar ...





17. Why is java (32-bit) JDK installer not copying rt.jar file to JRE directory? (Windows 2008 R2 SP1)    stackoverflow.com

The system is using Windows Server 2008 R2 SP1, Tomcat 5.5.28, and Java SE 6 Update 20 for both JDK and JRE. I updated the system to the latest JDK update, Java ...

18. Running a jar file from cygwin is throwing error where from commad prompt it is running, why? (in windows)    stackoverflow.com

this is the command. java -cp clojure.jar;sum.jar CalculateSum sum.jar is a jar file made from clojure and java code. CalculateSum is file which contains main method of java. error from cygwin can't execute binary file, Error ...

19. Invalid byte 2 of 4-byte UTF-8 sequence, but only when executing JAR?    stackoverflow.com

I have this java program where I transform with TransformerFactory a XML string that I get from a SQL Server database and write it to a file, and then use this ...

20. What is the default working directory for a jar launched from windows explorer?    stackoverflow.com

I have created a jar file of my application so that users can run it from windows explorer. It loads a json file in its own working directory for some settings ...

21. Windows XP patch 2 & comm.jar    coderanch.com

Has anyone been able to use the java Communications API (comm.jar) with XP after patch 2 is applied? It used to work fine on my machine and now doesn't - can't find any ports at all. I've tried it on a second machine (also on XP SR2) and I get the same results. ms

22. help with using .jar files in windows (using Textpad)    coderanch.com

Hello, I am a student currently working on a project involving the Gridworld case study. While trying to work on my project at home, I discovered that I would get new "cannot find symbol" compiler errors that I had not previously gotten while compiling the same code at school. I am assuming this has something to do with the .jar file ...

23. External Jar file problems in Windows    coderanch.com

Good Afternoon, I have written a small Java swing app, it runs from a self executing Jar file but at this point will not run on my contractors machines. It relies on an external jar (imageio.jar) which I have placed in his jre/lib/ext/ directory (the same as on the 15 machines it dows work on) but it still fails. I have ...

24. create windows executable using executable jar file    java-forums.org

Hello, I have built a simple java project in Eclipse..... The project uses: JRE system libraray = jdk 1.6.0_21 Three external libraries jars A resource folder that contains images etc. I have created an executable jar file packed with the external libraries and it works well..... the only thing is I have to put the resource folder on the same place ...

25. Scheduling a jar file in windows 2000    forums.oracle.com

Hi I have used below configuration to execute my jar file at required time. Program you want windows to run : "path\javaw.exe" Advance properties : Run : -jar "someotherpath\com.jar" Start in : "directory_containg_jar_file" i.e. "someotherpath\" But when this scheduled task executes, in status it shows "could not start" My jar file is executing if i am double clicking on it....i.e. working ...

26. jar file doesn't read classpath environment variable from windows xp    forums.oracle.com

I created a small program that uses javamail and jdbc driver. I program on Win XP and use java 1.6.04. When I compiled my classes the program works fine but when I created a jar package the jar file cannot 'see' the classpath that windows has already set. I have to set the classpath in the manifest file and then it ...

27. Jar file wont open on windows 7 64 bit    forums.oracle.com

29. Executing jar file in windows?    forums.oracle.com

Yeah sorry, that's my fault for the confusion. in the OP i was just stating the general case, they weren't the actual names. Then I switched to giving the actual names. My bad! Basically, The main class specified by Main-Class in the manifest is the main class of the application. The jar file is the only thing referenced in the Class-Path! ...

30. Error in updating jar file in windows    forums.oracle.com

Hi... I am updating a jar file using Runtime.exec() by passing a batch file in it. While updating the jar file I am getting error like this: java.io.IOException: Error in writing existing jar file at sun.tools.jar.Main.run(Main.java:198) at sun.tools.jar.Main.main(Main.java:1022) The batch file (upgradejar.bat) is like this: echo IQuinox NextGen Upgrade Management cd shared/upgrade/upgrade/IQfullversion/classes jar uf ../../../../../../jars/ng.jar ./qlc/postmaster/PMStartup.class ./qlc/postmaster/wpm/admin/scheduler/others/OthersScheduleServlet.class The java code is ...

31. Java Applet(s) jar files with windows executables or UNIX elf/aout files    forums.oracle.com

I wonder if any one can anwser a question for me. I am working on a signed applet project which I would like to be able execute a non java executable on a client system. That is I would like to be able to do the following: jar up a windows .exe, as part of the applet jar file, then upon ...

32. Memory used by runnable jar file in windows    forums.oracle.com

I wrote a java program that locates my mouse pointer position and then moves it around on the screen using Robot class. I created a runnable jar file(executable file) of that single java file and executed it. Then i went to task manager process list and saw that the exe is occupying 11MB which looks quite huge to me. Anybody knows ...