简体   繁体   English

使用外部文件创建Java exe

[英]Create Java exe with external files

I have a jar file with external files (ie executables ) that I access using Runtime. 我有一个jar文件,其中包含我可以使用运行时访问的外部文件(即可执行文件 )。

I was wondering if I would be able to package these files into a single executable (not necessarily a jar) where I can still access all of the files using the windows file system. 我想知道是否能够将这些文件打包到一个可执行文件 (不一定是jar文件)中,在那里我仍然可以使用Windows文件系统访问所有文件。

I think you can combine these 2 solutions to get your answer. 我认为您可以结合使用这两种解决方案以获得答案。

Creating Runnable Jar with external files included 创建包含外部文件的可运行Jar

How can I convert a .jar to an .exe? 如何将.jar转换为.exe?

I don't know if two answers will make this one duplicate? 我不知道两个答案是否会使这个重复?

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

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