java - Replacing a class file inside a folder in a jar file -


I have a jar file in C: \ (xx.jar). I need to change a class file (path: com \ sample \ folder \ xfile.class) inside xx.jar with a square file (yfile.class) that is C:.

Please help me command to change a class file in jar with another class file out of jars I point to the directory structure.

I tried,

jar uf c: \ xx.jar C: \ yfile.class

The above command creates a new folder C: \ xx In .jar and yfile.class comes inside C. But I want to put the file inside xx.jar inside com.ample.folder

Please help please thank in advance!

You really can not have jars to actually package a ready folder. I think this is the reason that with Mare, etc. everything creates a build folder that ends in jar / war / ear file.

  jar uf C: \ xx.jar C: \ Yfile.class  

Really adding the file to the archive Some-C can use the instructions, but it's about it. Let's say that you have a dior in myfile.class C: \ classes and you can call it jar from the folder

  jar uf c: \ xx.jar -C .. classes \ file.class < / Code> 

The folder is going to add the square to the jar, in which the file is myclass.class.

Kind regards


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -