繁体   English   中英

如何导出 jar 文件包含.class 和 eclipse

[英]how to export jar file contains .class with eclipse

I need to add some Unicode character to JAR file, therefore I decompile the JAR file with JAVA DECOMPILER and after that I was be able to add Unicode character with Eclipse. 所以我需要修改后再次创建JAR文件。 我从项目中导出 JAR 文件,一切似乎都正常。 但我有一些问题。 When I opened the original file with Java decompiler (before modification) everything is.class, after modification and export JAR with eclipse everything is.java, how can I export JAR file with eclipse as original file with.class instead.java?

反编译修改前在此处输入图像描述

用eclipse反编译修改后在此处输入图像描述

修改前后两个文件都是jar。 提前致谢

Select the option, Export generated class files and resources instead of Export Java source files and resources while using the JAR Export wizard of eclipse.

在此处输入图像描述

更新:

从您的评论中,我了解到即使在重新启动 eclipse 并重新生成 jar 之后,上述解决方案也对您不起作用。 请 select 不同的导出目标,选中选项覆盖现有文件而不发出警告,然后重试。

在此处输入图像描述

试试这种方式 文件菜单 --> 导出 --> select JAR 文件 --> select 资源文件夹 --> 完成

供参考在此处输入链接描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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