Solved

How to update a jar file

Posted on 2011-02-15
3
290 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

636 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