簡體   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