Solved

How to update a jar file

Posted on 2011-02-15
3
255 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

762 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