1. How do I update a pre-existing Jar file stackoverflow.comI've got a WAR file that I need to add two files to. Currently, I'm doing this:
|
2. update file in a jar stackoverflow.comI'm trying to update a file in an existing jar (in this example antlr) using the command:
But I get the following message
java.util.zip.ZipException: duplicate entry: antlr/ANTLRError.class ... |
3. Java: Load class while jar-file is updated stackoverflow.comMy Java program loads classes dynamically at runtime. All classes are located in the same jar. After deploying a new jar file, I sometimes get errors while the jar file is copying ... |
4. Is there a way with Apache Ant to update a jar file after it's been built? stackoverflow.comIs there a way to update a jar file in Ant? EDIT: For example, if I wanted to add some additional files to an already existing JAR file? |
5. Automatically update jar files stackoverflow.comI am currently working on desktop software based on java.It's quite a big code base (more than 40 jar files). I wish to provide an automatic update functionality. The desktop software ... |
6. prog.java and prog.class in Prog.jar file - How can I easily update this code? stackoverflow.comBack story: |
7. How to auto-update jar files for hundred hosts? stackoverflow.comI have a application for monitoring Linux Host, so I have to deploy a Agent for every host, but This causes a problem to update these so many Agent (mainly, a ... |
8. About Updating JAR FILES coderanch.comI have created Java Programme which is based on Swing-Servlet Communication. After it the Jar-File which contain the Swing Programme Class files put on Client Side .same swing-Files on Server side .Now the Problem comes when i update any of Swing Files on server side then how could i download it to client. and second if i got download then how ... |
9. Is it possible to update an entry in an executing Jar file? coderanch.comI'm writing an executable Jar file which contains one class (to FTP data to another machine) and one properties file (which contains amonsgst other things a unique sequence number to go in each new filename). Each time the Jar executes, the last thing it must do is increment the sequence number by one. Unfortunately I can't do this while it's in ... |
10. Updating a xml file inside a jar file coderanch.com |
11. jar file update coderanch.comHello I am not sure if i should have posted this question in this forum or in the beginners forum :-) I have been given a project to work on recently and its pretty complex. It is a java application running on a webserver. This application has a very structered build process.Now they made some changes to a certain jar file ... |
12. Problem updating the JAR file coderanch.comHi, I've been working on an application, a sort of a test engine. The structure of the app is something like this - TestEngine.jar (All the classes needed to run the app) | | Resources.jar (Some text files, from which the questions and answers are read) Reading from the jar files is no problems. But writing to jar, i.e. Resources.jar is ... |
13. issues with updating jar files which are being used in a program coderanch.comI'm trying to create some feature that the program will do automatic updates for itself. The program uses some jar file while running. During the run time, I let the program download an updated jar file at some point, with different name, say, append a '_TMP' at the end, which is to avoid directly overwriting the current used jar file, which ... |
14. Updating a .jar File java-forums.orgOk, please bear with me, as it is kind of late and I might not be able to explain this as well as I could :rolleyes: Right, now I know basic Java (All self taught) Arrays, Variables, FileIO, little bit of Sockets, Swing, ect. But I am having trouble with something. Let's say I have two .jar files, one when run ... |
15. Decompile JAR , Update .Class file , Compile? forums.oracle.comWell, you wouldn't decompile the jar. You'd basically just unpack it, and then you'd decompile the classes inside it, and then you'd update the .java file, and then recompile the source code files and repackage it into a new jar. But otherwise, yes. There may be a variety of better options though. For example, maybe you could create a single new ... |
16. Updating to a directory in a jar file forums.oracle.comDo you mean that you want a running program to alter the jar file that it's deployed in? I'd strongly advise against this. It's a huge pain in terms of ongoing maintenance if the jar file you deploy isn't the same jar file that the user has after a month of using the program. Plus it means that the user is ... |
17. Update or Patch a jar file while the process is still running.. forums.oracle.comIf you have a restricted list of classes which will be loaded from the jar, and loading those classes from the jar doesn't happen too often, then it can be done. (I have a working example here.) Basically, every time you want to create an instance of a class from the jar, you create a new classloader based on the (latest ... |
18. Updating jar file using Java forums.oracle.comDuring the installation we need to update the jnlp file inside war file, with some properties which user gives. and these properties will be used on the client side. so please let me know if this can be achived. Iam trying to update a jar file programatically through java. doing Runtime.getRuntime().exec("jar uf login.jar shadow.jnlp"); But for the above command to execute, ... |
19. Updating jar file forums.oracle.comI have a jar file test.jar. It has many classes archived in it one of the classes adapter.class has bug in it. I have fixed the bug but now I want to update the jar file by copying this fixed class file. Can any one help me with this. Is there way to update jar file that will overwrite old file. ... |
20. Updating an XML file inside the Jar executable forums.oracle.comHello paulcw, thanks for your reply and im sorry i crossposted, im new to the forum and didn't know in which group to send it. I know that this is architecturally wrong, but my application has to be a single jar. Do you have any suggestions plz? The actuall values are only 2 strings. Thanks again and ill be more careful ... |
21. Updating JAR file programmatically forums.oracle.comOkay, it's really more complicated than that. I have a WAR file that contains a couple of JAR files, one of which has a properties file that needs to be updated before deploying the app. I've tried unjarring the WAR file then unjarring the JAR file that has the properties file, but trying to put the JAR and WAR back together ... |
22. how to update a dat file from within a jar file while running it? forums.oracle.comi am making a java based dictionary for mobiles..so i am making a jar file ..i have kept the database of the dictionary in .dat files placed inside the jar...and used file handling for mapping the words to their meanings ....what i wanted to know is that is it possible to accept some text ( words, notes) from the user during ... |
23. can't update files inside a jar forums.oracle.comSure, you can! A jar file is Java version of zip files, You would first extract the contents of the jar file, make updates to your xml files and again create a new jar according to your need, You would use jar utility that comes with Java SDK for this, See [how to use Jar tool.|http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/jar.html] |
24. Updating an XML file inside the executable JAR. forums.oracle.com |
25. Updating JAR file forums.oracle.comI have a Java Library (in the form of JAR file with source files)....I need to use it for my purpose. I need to change one of its source files to do my job...and this source file is using the other classes included in this JAR file..I edit this source file ...copy it in BIN directory (note:JAR file is added in ... |
26. Problem in updating a jar file forums.oracle.com |
27. Updating my Jar files forums.oracle.comDear Folks, I know I am being a pain in the a** with my incessant questions today, but I appear to have a strange problem here. I am trying to make several changes to a GUI-based chat program which previously ran perfectly. I am using NetBeans to create the changes and Netbeans is able to read the files from the directory ... |
28. Updating .Jar file through another program forums.oracle.comHi, I've been practicing wih java lately and started to write some little program for my mobile phone. The problem is that I can't get the program to read text files I added in the mobile's folders so I guess what I should do is update the .jar file by adding the text files to it. Anybody know how I should ... |
29. Can we update a text file included in jar file forums.oracle.comI want to ship this application (i.e jar file consisting of Swing classes+client_List.XML )on a CD, so i dont want to manually create a file on the local filesystem of each client. Also i do not want user to edit Client_List..xml. I want to edit data only through my application , but want to protect it otherwise |
30. update Manifest in jar files forums.oracle.com |
31. update a file from a jar forums.oracle.comHi i have a problem with a jar My application reads data from a excel file.. if i run the application from eclipse, the application sees the modifications from the excel file and reads correctly. After i made a jar it doesn't see anymore the changes made in the excel file .. The application works also as a jar ..but it ... |
32. Update properties file in JAR file? forums.oracle.comHi, using Class.getResourceByStream() is great because you can ensure everything is in one JAR file. But what happens when you want to re-write the properties file (ie my app has a config menu which should be able to save its changes). Is there a way to do this, or must I resort to file on file system? Thanks |
33. updating jar files forums.oracle.comI am wondering if there is any way to specify in the jar command to overwrite existing .class files that have the same name as the ones that you are updating the jar file with? Is that what java does normally? If anyone happens to know I thank you in advance David |