从jar文件还原项目 [英] restore project from jar file

查看:92
本文介绍了从jar文件还原项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我想指出的是,对于netbeans和java来说,它是相当新的东西,无法在网络上准确找到我需要的东西. 我下载了软件的源文件,并在netbeans上对其进行了修改.自然,在构建项目时,netbeans会在(例如)documents/project_folder/dist/lib文件夹以及我可以使用的完成的JAR文件中创建. 如果我错误地删除了源文件,并且想使用以前仍然使用的JAR和lib文件夹将我以前对新的源文件所做的所有更改都应用到该文件中,这可能吗?怎么办?

first i'd like to point out that im fairly new to netbeans and java, couldnt exactly find what i need on the web.
I downloaded a software's source files and was modifying it on netbeans. naturally when building the project, netbeans creates in (for example) documents/project_folder/dist/ a lib folder and the finished JAR file that i can use.
if i delete by mistake the source files, and would like to apply all the changes i previously made to fresh source files using the JAR and lib folder i still have, is it possible and how?

推荐答案

首先,不可能再次从lib文件夹中的jar文件中获取源. Jar文件是可执行文件,将仅包含类文件.您可以使用Java反编译器再次获取源代码.

First of all it is not possible to get a source again from jar file in lib folder. Jar file is executable file which will just contain class files. You can use java decompilers to get source again.

这篇关于从jar文件还原项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆