https://bz.apache.org/bugzilla/show_bug.cgi?id=66493
Bug ID: 66493
Summary: Could not run ant.bat on old Java with new
"java.security.manager" parameter
Product: Ant
Version: 1.10.13
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: Core
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Did not see any open bug like this, but I just cannot run ant.bat script on old
java (8 or 11, for example), because of:
set "ANT_OPTS=%ANT_OPTS% -Djava.security.manager=allow"
This is what I got on "ant.bat -v" execution:
ANT_OPTS is set to -Djava.security.manager=allow
Error occurred during initialization of VM
java.lang.Error: Could not create SecurityManager
at java.lang.System.initPhase3([email protected]/System.java:2061)
Caused by: java.lang.ClassNotFoundException: allow
at
jdk.internal.loader.BuiltinClassLoader.loadClass([email protected]/BuiltinClassLoader.java:581)
at
jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass([email protected]/ClassLoaders.java:178)
at java.lang.ClassLoader.loadClass([email protected]/ClassLoader.java:521)
at java.lang.Class.forName0([email protected]/Native Method)
at java.lang.Class.forName([email protected]/Class.java:398)
at java.lang.System.initPhase3([email protected]/System.java:2046)
--
You are receiving this mail because:
You are the assignee for the bug.