简体   繁体   中英

No .java source files in a WAR file

I imported a WAR file for a project but it doesn't contain the source .java files. Is there any way I can generate them. Without them it's not possible to work on the project. I am using Eclipse for the IDE.

war通常是Java Web应用程序的可部署构建,并且包含编译的类(不是源,除非进行定制以包含通常不需要的类)

archives like war/jar normally does not contains the source. They are meant to distribute the final java application consisting of .class files and other resources. If you dont have access to the original source code try a java decompiler tool. There are eclipse plugins that does the decompilation. eg: JAD ( http://sourceforge.net/projects/jadclipse/ )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM