Làm cách nào để hiển thị thông báo "Xin chào thế giới"?
Cảm ơn
Đây là tập tin cấu hình của tôi:
<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>
Tôi đã viết chương trình Java "hello world" và sử dụng lauch4j để chuyển đổi tệp jar thực thi thành tệp executable.exe. Khi tôi cố chạy nó trong cmd, không có gì xảy ra. Sử dụng nguồn này https://www.scaler.com/topics/c/hello-world-program-in-c/ , tôi cũng đã thử chạy nó trong launch4j. Theo nhật ký, C:Documents and Settingscnbq84Desktophelloworld.exe đang được thực thi. Tuy nhiên, không có thông báo "hello world" nào được hiển thị.