LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Replacing file in .Jar (https://www.linuxquestions.org/questions/programming-9/replacing-file-in-jar-821255/)

Fracker 07-21-2010 08:38 AM

Replacing file in .Jar
 
Hello guys,

I am working on a script to update .Jar file, I have tried jar xf to unpack and jar cf to repack it is giving me some java.lang.NoClassDefFoundError exception at main class. I also tried jar uf, which is also not working for me :-s

Basically my jar file requires to update date, which i do from "winrar" Manual it works fine, but now to remove "Donkey work", i want to make an script which does this all automatically, and the last stage is to update jar file which is not happening. :-s

Ps: Date file is a text file.

paulsm4 07-22-2010 12:57 AM

In general, you'd possibly use "ant" to manage your build, and "ant" would call "jar" to update the file. For example "jar cvf JARFILE MY_CLASS_DIR"


All times are GMT -5. The time now is 04:17 AM.