linux - Shell script to replace a class file -


i have read many posts changing contents of file , replace whole file, little did understand.
referred this too. .sh 1 confuses me. need use .sh in case too. don't want ruin project trying new, without understanding.

how replace class file in jar? have class file ready workspace. need replace present class file in jar. moreover, need restart server after replacing, see effects?
application server using ibm websphere.
should navigate ear file location in server? example, cd aaa/bbb/ccc , execute command. please help, totally new this.

to extract/pull particular class ear:

jar -xf sample.ear com/sample/example.class 

then overwrite com/sample/example.class generated class , do:

jar -uf sample.ear com/sample/example.class 

to update ear file again updated class file.

ps: require deploy ear file again on app server , restart app server. suggest looking ant or maven task.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -