我创建了一个“hello world”java程序并使用lauch4j将可执行文件转换为.exe文件。当我试图用cmd运行它,但没有打印出来。我也尝试在launch4j中运行它。日志表示:执行:C:\ Documents and Settings \ cnbq84 \ Desktop \ helloworld.exe。但是仍然没有显示“hello world”。lauch4j hello world program
如何显示“Hello World”味精?
感谢
这里是我的配置文件:
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui|console</headerType>
<jar>C:\Documents and Settings\cnbq84\Desktop\helloworld.jar</jar>
<outfile>C:\Documents and Settings\cnbq84\Desktop\helloworld.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir></chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<customProcName>false</customProcName>
<stayAlive>false</stayAlive>
<manifest></manifest>
<icon></icon>
<jre>
<path>PATH</path>
<minVersion>1.4.0</minVersion>
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
</jre>
</launch4jConfig>
我这样做了。但仍然当我运行它在cmd中使用:helloworld.exe 控制台中没有输出 – Lily 2009-06-29 21:14:16
哎呀,错误的控制台。该引用是针对该工具而非其生成的exe。 – Clint 2009-06-29 21:19:17