Launch4J executable not executing as expected

前端 未结 3 1793
清酒与你
清酒与你 2021-01-16 01:12

Tools: Win 7, Launch4J 3.5, Simple Hello world Java console app (bundled in a JAR file)

Hello all,

I have a basic JAVA console application t

3条回答
  •  天涯浪人
    2021-01-16 02:06

    Yes. You do need to use the console mode. You also do need to have some method of keeping the console window open, because it closes the console the moment the program terminates. Use scan.nextLine(); or Thread.sleep(i) if you really need to.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题