Код: Выделить всё
dfc.jarПри поиске на форумах Opentext кажется, что мне нужно добавить --add-opens=java.base/java.lang=ALL-UNNAMED в список аргументов JVM, чтобы сохранить мой код с новым JDK.
Я делаю это в своем install.bat:
Код: Выделить всё
set JAVA_OPTS=--JvmMs=256 --JvmMx=512 --add-opens=java.base/java.lang=ALL-UNNAMED
set INSTALL_PARAMS=%INSTALL_PARAMS% %JAVA_OPTS%
Код: Выделить всё
E:\installationPath>E:\installationPath\myService.exe //IS//myService_Java17 --Install=E:\installationPath\myService.exe --Description="My Service" --Classpath=E:\installationPath\myService.jar --Startup=manual --StartMode=jvm --Jvm=C:\temp\jdk-17.0.15_windows-x64_bin\jdk-17.0.15\bin\server\jvm.dll --JvmMs=256 --JvmMx=512 --add-opens=java.base/java.lang=ALL-UNNAMED --StartClass=it.reply.square.isa.daemon.Service --StartMethod=main --StartParams=start --StopMode=jvm --StopClass=it.reply.square.isa.daemon.Service --StopMethod=main --StopParams=stop --LogPath=E:\installationPath\log --LogLevel=Info --StdOutput=auto --StdError=auto
[error] [ 7560] Unrecognized program option --add-opens
[error] [ 7560] Invalid command line arguments.
[error] [ 7560] Apache Commons Daemon procrun failed with exit value: 1 (failed to parse command line arguments).
- JDK 17.0.15 (соответственно изменяя JAVA_HOME)
- dfc.jar версии 23.4
- Apache Commons Daemon Service Runner 1.4.1.0
Подробнее здесь: https://stackoverflow.com/questions/797 ... ith-jdk-17
Мобильная версия