[x3d-public] Ant Saxon issue, -?, OpenJDK 18, windows 10
John Carlson
yottzumm at gmail.com
Sun Apr 10 19:28:00 PDT 2022
The following ant code fails on Windows 10 and Linux, JDK 17, 18. Help is
welcome. I realize it may be an ant configuration issue. Any magic
secrets would be welcome. I found something on the Savage site that loaded
a bunch of jars into my ant folders, but it's not clear what effect they
had, if any! I realize that this is a duplicate, and there's a
workaround! I'm guessing this is something that Apache needs to fix
with ant and recent versions of OpenJDK?
<java classname="net.sf.saxon.Transform"
classpath="${saxon.dir}/${saxon.jar};." failonerror="true">
<arg value="-?" description="help information"/>
</java>
======================================================================
john at DESKTOP-8OPL3IE MINGW64 /c/x3d-code/www.web3d.org/x3d/stylesheets
$ ant create.X3DJSAIL
Buildfile: C:\x3d-code\www.web3d.org\x3d\stylesheets\build.xml
create.X3DJSAIL:
[echo] Build API for X3D Java Scene Authoring Interface Library
(X3DJSAIL) from X3D Unified Object Model (X3DUOM)
versions:
[echo] ANT_HOME=${env.ANT_HOME}
[echo] JAVA_HOME=C:/openjdk-18_windows-x64_bin/jdk-18
[echo] PYTHONHOME=${env.PYTHONHOME}
[echo] PYTHONPATH=${env.PYTHONPATH}
[echo] Check CLASSPATH for X3DJSAIL X3DJSAIL.4.0.full.jar or
X3DJSAIL.4.0.classes.jar
[echo] CLASSPATH=${env.CLASSPATH}
[echo] javac source/target $java.source=16
[echo] $java.target=16
[echo] Java/JVM version $ant.java.version=18
[echo] Java/JVM detail version $java.version=18
[echo] Saxon directory $saxon.dir=C:\x3d-code\www.web3d.org
\x3d\stylesheets\java\lib
[echo] Saxon jar $saxon.jar=saxon-he-11.2.jar
[echo] Ant version $ant.version=Apache Ant(TM) version
1.10.12 compiled on October 13 2021
[echo]
[echo] ant -version
[exec] Apache Ant(TM) version 1.10.12 compiled on October 13 2021
[echo] java -version
[exec] openjdk version "18" 2022-03-22
[exec] OpenJDK Runtime Environment (build 18+36-2087)
[exec] OpenJDK 64-Bit Server VM (build 18+36-2087, mixed mode, sharing)
[echo] python -version
[exec] Python 3.10.2
[echo] saxon -? help
BUILD FAILED
C:\x3d-code\www.web3d.org\x3d\stylesheets\build.xml:364: The following
error occurred while executing this line:
C:\x3d-code\www.web3d.org\x3d\stylesheets\build.xml:164:
java.lang.UnsupportedOperationException: The Security Manager is deprecated
and will be removed in a future release
at java.base/java.lang.System.setSecurityManager(System.java:416)
at
org.apache.tools.ant.types.Permissions.setSecurityManager(Permissions.java:103)
at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:216)
at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:155)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:891)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:231)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.Main.runBuild(Main.java:818)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Total time: 0 seconds
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220410/1432cb18/attachment.html>
More information about the x3d-public
mailing list