Java – can I decompile jar files to get raw resources?

I have a big problem I'm writing a program. It took me three months. Today I accidentally deleted the source code

I work in NetBeans, I just cleaned it up and built it, so I still have work Jar file The program is stored on a flash drive, not on my computer, so these classes are not in the recycle bin

Can anyone tell me how to get my source code?

Solution

Unless you explicitly package the source code in a jar file, you cannot retrieve the original source code You can try using a decompiler like this, but it will hardly give you beautiful, readable code

The best solution is to stop using your computer immediately Then use the recovery tool to recover the deleted files It has recently been deleted, the higher your chances of getting it There are many tools to do this (just Google)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>