Packing an XML Parser with a Java Application

Packing an XML Parser with a Java Application

You can pack the XML Parser along with the Java Application you are shipping. The following steps show how to do this. I used the Apache’s Xerces and Xalan parsers for XML and XSLT as an example.

  1. Un-Jar the xerces.jar and xalan.jar into a temporary directory.
  2. Copy your Java application class files to the same directory. If you use packages in your code, copy the entire directory created after compilation of the Java Code.
  3. In the Meta-Inf information for the JAR file, give the following line:
        Main-Class: MainClassFile

    This will start the first class file which has to be executed by the JavaVirtual Machine.

  4. Now JAR the contents in the temporary directory (not the directory itself) into a .Jar file.
  5. Double click on the created .Jar File. This will load the application.
Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular