应用场景:

我开发了一个应用程序,并连同jre一起刻成光盘,提供给用户,用户直接双击批处理文件即可运行,而不需要自己额外装jre。

目录组织结构如下:

client

        |-images

        |-jre

        |-lib

        |-myApp.jar

        |-appSettings.properties

        |-start.bat

 

批处理文件内容。start.bat

@echo off

set path=%cd%\jre\bin

%path%\java.exe -cp myApp.jar 包名称.含入口方法的类名称

相关文章:

  • 2022-02-22
  • 2021-06-12
  • 2021-09-18
  • 2022-01-31
  • 2022-02-06
  • 2022-12-23
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案