Solved

How to update a jar file

Posted on 2011-02-15
3
264 Views
Last Modified: 2012-05-11
Hello,

I've extracted a jar file, made changes to a .properties file, saved and added the files to a new jar archive (WInRAR).  Will this work?

The Java project in Eclipse, seems to have no changes.

I have posted another question today about CastorXML, and noticed during a google search the following properties must be set to true to enable Validation (castor.properties).  The castor Library is castor-0.9.5.2.jar. I don't see any changes in the console.

# True if all documents should be indented on output by default
#
org.exolab.castor.indent=true


# True if xml documents should be validated by the SAX Parser
#
org.exolab.castor.parser.validation=true
org.exolab.castor.parser.namespaces=true

# True if all documents should be validated by the marshalling framework
#
org.exolab.castor.marshalling.validation=true

Thanks
0
Comment
Question by:AndyC1000
3 Comments
 
LVL 12

Expert Comment

by:enachemc
ID: 34894800
it will work
a jar is actually a zip file
0
 
LVL 92

Accepted Solution

by:
objects earned 125 total points
ID: 34894823
make sure you are including the new jar (and removed old one) in your projects build path
0
 
LVL 20

Assisted Solution

by:ChristoferDutz
ChristoferDutz earned 125 total points
ID: 34895301
Just my 50ct: And if you are using Maven (Jar File name looks as if this could be the case), you would have to deploy your updated version to your repository using a new version, which you would have to reference in your pom.xml
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSum5 challenge 5 71
Impossible to extract MSI from new JAVA releases 2 48
jar file executable 12 40
netstat -ano | find "8000" and taskkill /f /pid 2984 3 33
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now