Code: Select all
dfc.jarBei der Suche in Opentext-Foren scheint es, dass ich --add-opens=java.base/java.lang=ALL-UNNAMED zur Liste der JVM-Argumente hinzufügen muss, um meinen Code mit dem neuen zu halten JDK.
Ich mache das in meiner install.bat:
Code: Select all
set JAVA_OPTS=--JvmMs=256 --JvmMx=512 --add-opens=java.base/java.lang=ALL-UNNAMED
set INSTALL_PARAMS=%INSTALL_PARAMS% %JAVA_OPTS%
Code: Select all
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 (Änderung von JAVA_HOME entsprechend)
- dfc.jar Version 23.4
- Apache Commons Daemon Service Runner 1.4.1.0
Mobile version