This should not really matter for deployment case, but for development which keep on restarting may be useful http://ant.apache.org/manual/CoreTasks/jar.html#indexjars Edit JAR in code - http://www.java-tips.org/blog/java-se/how-to-modify-a-jar-file.html