admin管理员组文章数量:1208155
I recently converted a .jar file containing a java project into a .exe file using Launch4j, however, I am unable to launch it by clicking the icon or by right clicking and selecting run. I am able to run it through the console but I intend to publish it. Can someone help?
My jdk version is 21. I am using an Ubuntu system.
.xml configuration:
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>/home/james/Desktop/waw.jar</jar>
<outfile>/home/james/Desktop/Wild_And_Wyrd/waw.exe</outfile>
<errTitle/>
<cmdLine/>
<chdir>.</chdir>
<priority>normal</priority>
<downloadUrl>;/downloadUrl>
<supportUrl/>
<stayAlive>false</stayAlive>
<restartOnCrash>false</restartOnCrash>
<manifest/>
<icon>/home/james/Documents/Wild_And_Wyrd/waw_logo.ico</icon>
<jre>
<path>%JAVA_HOME%;%PATH%</path>
<requiresJdk>false</requiresJdk>
<requires64Bit>false</requires64Bit>
<minVersion>1.4.0</minVersion>
<maxVersion/>
<opt>/home/james/Desktop/Wild_And_Wyrd/waw.exe</opt>
</jre>
<messages>
<startupErr>An error occurred while starting the application.</startupErr>
<jreNotFoundErr>This application requires a Java Runtime Environment.</jreNotFoundErr>
<jreVersionErr>This application requires a Java Runtime Environment</jreVersionErr>
<launcherErr>The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.</launcherErr>
<instanceAlreadyExistsMsg>An application instance is already running.</instanceAlreadyExistsMsg>
</messages>
</launch4jConfig>
本文标签: javaUnable to run exe file by clickingStack Overflow
版权声明:本文标题:java - Unable to run .exe file by clicking - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738729505a2109238.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论