+ 1

How to delete jar file by itself?

I have a jar file and want delete it after processing. How write code inside my project that at the end delete itself?

24th Sep 2020, 2:05 PM
hamid
hamid - avatar
5 Answers
+ 9
1)Go to control panel 2)Click on programs 3)Click on programs and features 4)Choose uninstall a program. Then select the required program to be deleted.
24th Sep 2020, 5:37 PM
Aditya
Aditya - avatar
+ 1
If you are using maven, you can run command 'maven clean' in folder where your pom.xml file resides. Or you can just find it and delete like any other file.
24th Sep 2020, 4:23 PM
Aleksandrs
Aleksandrs - avatar
+ 1
Jar files are archives that contain compiled java code. You can't edit it, unless you decompile it.
25th Sep 2020, 8:12 AM
Aleksandrs
Aleksandrs - avatar
0
i mean how to delete jar by itself, useing code inside jar file to delete itself
25th Sep 2020, 7:54 AM
hamid
hamid - avatar