Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: xml file in JAR archive vs xml in classes folder

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Thanked 0 Times in 0 Posts

    Default xml file in JAR archive vs xml in classes folder

    I just started a new position at a company and have been setting up my dev box for a couple weeks. I working on java at the college that I went to but I never worked on any big projects. The project I am currently working on uses tomcat and struts (two that I have touched base on but thats about it (am learning how they work)). So we have a lot of JAR libraries and some of them have some XML files in them that I need to edit. Well I have done this and just edited the xml files in the jar. but what if I were to create the XML files under the WEB-INF/classes dir instead of editing the WEB-INF/lib/name.jar/file.xml. So instead of editing:
    could I create this file in the class dir
    I am guessing that this is not possible as I would think everything would be read from the xml files within the JAR file. But honestly I am not positive and thats why I am wondering.

    Since I have never worked in an environment this big it can be a bit intimidating compared to my normal smaller apps I would write in school. Please let me know or if you could point me in the right direction, thanks

  2. #2
    Join Date
    Nov 2013
    Bangalore, India
    My Mood
    Thanked 6 Times in 6 Posts

    Default Re: xml file in JAR archive vs xml in classes folder

    Yes the files will be read from the JAR file unlike your java classes which takes priority from classes folder.

Similar Threads

  1. Replies: 0
    Last Post: November 9th, 2012, 02:38 AM
  2. convert excel to xml and read the input from xml file
    By rahulruns in forum Object Oriented Programming
    Replies: 5
    Last Post: April 3rd, 2012, 11:13 AM
  3. Reading XML File using DOMParser and have problem with accessing xml
    By optiMystic23 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 21st, 2012, 02:22 PM
  4. [SOLVED] Write an xml dom to a xml file
    By Kakashi in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: March 2nd, 2011, 03:30 PM
  5. java xml-rpc response parsing to xml
    By kievari in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: November 19th, 2009, 02:36 PM