library « jar « Java I/O Q&A





1. Classloader issues - How to determine which library versions (jar-files) are loaded    stackoverflow.com

I've just solved another I-though-I-was-using-this-version-of-a-library-but-apparently-my-app-server-has-already-loaded-an-older-version-of-this-library-issue (sigh). Does anybody know a good way to verify (or monitor) whether your application has access to all the appropriate jar-files, or loaded class-versions? Thanks in advance! [P.S. A ...

2. Checking-in JAR files (libraries) into Version Control tool - Is it a good practice?    stackoverflow.com

I'm developing a web application in Java and I'm using several third party JAR files in my lib folder. I also have Subversion as my version control tool. My question is, ...

3. Java distribuion as jar file containg config, libs and deps    stackoverflow.com

I am developing a framework that needs a lot of stuff to get working. I have several folders inside of my Eclipse project that are needed [root]
- config
- src
- lib
- serialized
Also there ...

4. How can I create a .jar file?    stackoverflow.com

In the tutorial I found out that jar files can be created in the following way:

jar cf jar-file input-file(s)
However, it was not clear what are the input-file(s). Is that ...

5. Shipping jar with default .properties file configurations    stackoverflow.com

I would like to include a default default.properties file in my .jar library. The idea is to allow the user to override my default is he so desires. I'm having trouble getting ...

6. can 32 bit exported jar file be executed using 64 bit java libraries?    stackoverflow.com

I export try.jar file using 32 bit java libraries. On the client site, I have 64 bit java libraries. Can try.jar behave 64 bit executable? For example, I have

Runtime rt = ...

7. Determine used libraries to reduce JAR file size    stackoverflow.com

I am using HtmlUnit in some programs and I always have the problem that whenever I use it, I have to add all the files (libraries) that I downloaded from HtmlUnit ...

8. Third party lib to create jar files?    stackoverflow.com

I've Goog'd but I can't find any third party library that will let you create a jar file programmatically. I amazed that even Apache commons-io doesn't seem to have such functionality. I'd ...

9. Create common lib methods in jar file for SoapUI free version    stackoverflow.com

I am using SoapUI free version. In the free version since it is not possible to create lib functions using Groovy. So i am trying to create jar file. How do ...





10. How to import libraries from JAR-files into a Java program using TextMate    stackoverflow.com

I need to write a simple program in Java and would love to do it the same way I program in Python and Ruby using TextMate. I can write and run ...

11. Export a java library in a .jar file    stackoverflow.com

I'm still pretty new to java and I'm VERY new to exporting .jar files. I've got a little game that I want to send to some friends and I was told ...

12. Creating Jar files with external libraries    coderanch.com

Hi, I am creating a Jar file of a java application that references external libraries (GUI components). When I click on the Jar file created it does nothing! I know the format for manifests to identify the main class. However I am not sure about including a "Class-path" in the Manifest for the external libraries as I have been told. Has ...

13. understanding java libraries, jar files, classes...    coderanch.com

I am having a bit of a hard time conceptualizing the scope of java libraries, jar files, source code, and classes. I am, hopefully, going to post this question in a way that is easy for beginning programmers to understand and learn from, as well as, in a way that is easy for well established programmers to understand my questions so ...

14. Create Executable Jar File With User Library    coderanch.com

Hi, I am Experienced Delphi GUI Prgrammer, I have Created a test Application Using Eclipse, Windows Builder Pro, Openswing. The application Runs From Eclipse Well Then I exported it to Jar and Expected That it will run with java -jar ???.Jar but it wont run and gives excetion about Openswing Jars. How can I package my application with all the jars ...

15. how to make executable jar file with library jar files?    coderanch.com

I want to make a executable jar file with my java sources. But it's using some library jar files(like commons or etc.) and I want to make all in one jar file. Is there any way to make it? or am I have to write manifest file? If you use a manifest, you can specify a class path to point to ...

16. Can a non-executable (ie class library) JAR file contain other JAR files?    coderanch.com

Is it possible for a non-executable (i.e. class library) JAR file to contain other JAR files (its dependencies perhaps) inside it? Perhaps bundled up inside a lib/ sub-directory? Here is what I am trying to do: I have an existing class library, mylib.jar. I want to modify one class (e.g. MyClient) from mylib.jar by overriding a couple of its methods, and ...





17. PortTyper.jar using RxTx-2.1.7 Library stop listing the port output    coderanch.com

PortTYper.java using the RxTx-2.1.7 jar stopped working suddenly. I had the PortTyper.java (http://jcs.mobile-utopia.com/jcs/1322_PortTyper.java except that instead of javax.comm I been using ) using the RxTx library working, reading from COM2 port and listing it in the console. Last 2 days I am trying to integrate this to an Java Application, so that I can assign the a snapshot of read data ...

18. Set library classpath inside runnable JAR file    coderanch.com

I'm not sure if this is possible, but I've never been able to do it. I want to be able to have a JAR file (a library) in my runnable JAR file. The JAR file that I am running needs to use the library. How am I able to put the library in my runnable JAR file and use it? How ...

19. pack libraries into jar file    java-forums.org

Hi all, I made program, where I had to use third party libraries. When I compile and link the program, my 'application.jar' is made, but directory 'lib' with my libraries is copied into my application directory too. I'd like to generate just one application.jar file, which can include the libraries. How can I do it? Is that possible? (btw I'm developing ...

20. problem with libraries (jar files)    java-forums.org

Hey all! I have been given a java code to edit and it uses java 3d to run. I am able to execute it properly but when i make the required changes in the code and compile it throws me a hundred errors. Can anyone tell me the possible reason? i think it is something got to do with the jar ...

21. Removing jar file from JRE System Library without screwing up my programs    forums.oracle.com

Hi I stupidly added a jar-file to the JRE System Library and when I now removed it my java-program stops working correctly. I get an error message of the following type, even though I am not using the jar-file! Project 'MyProject' is missing required library: 'C:\Program Files\Java\jre1.6.0\lib\ext\commons-codec-1.3.jar' How can I make Eclipse understand that the jar file in question doesn't belong ...

22. JAR files and Reference Libraries    forums.oracle.com

I read somewhere that JAR files can't contain other JAR files.. that would be great as I could place all the referenced libraries in 1 file.. eg swt, mysql connector. Then i noticed, that when using swing, forms.jar and and looks.jar are placed in the exported jar.. at this point i'm kind of confused.. if not all jar files can be ...

23. Adding lib jars to actual jar file    forums.oracle.com

24. what jar file needed for the import of persistence.* library    forums.oracle.com

In my code I need the import of the persistence.* library. When I do this import I get an error message that the import cannot be resolved. I think I have to add a jar file to my project, but I don't have a clou witch one I need to resolve my problem. Can somebody tell me witch jar I need? ...

25. Calling a user-made library inside a jar file (jar in jar)    forums.oracle.com

Hi all, I am quite sure this has been asked & answered before, however I couldn't find it in the forum. I have created a jar file out of my common gui-classes that I had written. So this jar is my library. I am developing a program that uses this library inside it. I have added it to project build path ...

26. Loading library from jar file    forums.oracle.com

28. How to create a jar file as a library in java?    forums.oracle.com

Let me put it simple: rb.java is already put under /home/jiane/rb/rb.java; the tar file rb.tar being located under /mylib/rbcore/, the test client is put under /home/jiane/test.java. now rb.java looks like //// rb.java import java.until.*; public class rb { ... }; //// %>jar cvf /mylib/rbcore/rb.jar /home/jiane/rb.class test.java as below //// test.java import mylib.rbcore.*; import java.until.*; class test { ... } %>export CLASSPATH="/mylib/rbcore/rb.jar;." ...

29. creating a jar files with lib's    forums.oracle.com

I dont see how can i add the libs? anyways i dont know what i am doing wrong but i still getting, the message: Exception in thread "main" java.lang.NoClassDefFoundError: RUN/GUI when i try to run it. here is my manifest.mf Manifest-Version: 1.0 Main-Class: RUN.GUI Created-By: 1.6.0 (Sun Microsystems Inc.) GUI.java is the main method.