如何将java exe解压缩到jar

编程入门 行业动态 更新时间:2024-10-20 01:32:38
本文介绍了如何将java exe解压缩到jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个我知道的exe是用java编写的。我知道java程序可以制作成exe,并且有工具将jar文件转换为exe但是可以转换回来吗? AFAIK jar文件可以在任何可以运行java的平台上运行,我想在mac上使用windows编译的java程序而不使用任何额外的虚拟化(wine,vmware)

I have an exe that I know was written in java. I understand that java programs can be made into an exe and there are tools to convert jar files to exe but is it possible to convert back? AFAIK jar files can be run on any platform that can run java and I would like to use a windows compiled java program on mac without using any extra virtualisation (wine,vmware)

推荐答案

这取决于如何构建exe:

It depends how the exe has been built:

  • 如果它只是简单包装,像 JSmooth 这样的工具(正如主题),同样的工具可以提取jar
  • 如果已经编译了,例如gcj(如由这个问题说明,...我不确定。
  • 如果它是由静态编译器编译的(或 AOT - 提前 - ),我相信不是可以提取orignial罐子。
  • If it has simply wrapped, with a tool like JSmooth (as suggested by this thread), the same tool can extract the jar
  • If it it has been compiled, with for instance gcj (as illustrated by this question),... I am not sure.
  • If it has been compiled by a static compiler (or AOT - Ahead-Of-Time -), I believe it is not possible to extract the orignial jars.

更多推荐

如何将java exe解压缩到jar

本文发布于:2023-11-05 08:07:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560313.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:解压缩   如何将   exe   java   jar

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!