title: Adding META-INF\services\javax.xml.parsers.SAXParserFactory to jar
body: <p>I have a folder which has few class files, the command i was using to create a jar was </p>
  
  <pre><code>jar cfm0 my.jar MANIFEST *.class
  </code></pre>
  
  <p>Now I also want to add following to the jar META-INF\services\javax.xml.parsers.SAXParserFactory. Please suggest what will be the command which  will create a jar with classes and META-INF\services\javax.xml.parsers.SAXParserFactory.</p>
  
  <p>I thought of tampering with jar i.e. add META-INF\services\javax.xml.parsers.SAXParserFactory using 7z but wasnt convinced.</p>
  
  <p>Using this command returns following error</p>
  
  <pre><code>jar cfm0 CAM_AAA_JDBCPowerReports.jar META-INF/services/javax.xml.parsers.SAXParserFactory *.class
  
  java.io.IOException: invalid header field
          at java.util.jar.Attributes.read(Attributes.java:389)
          at java.util.jar.Manifest.read(Manifest.java:180)
          at java.util.jar.Manifest.&lt;init&gt;(Manifest.java:50)
          at sun.tools.jar.Main.run(Main.java:149)
          at sun.tools.jar.Main.main(Main.java:1147)
  </code></pre>
  
  <p>Please note I dont use any IDE. All I use is Editplus and command prompt</p>