I’ll try to get back this, I’ve got lots of pots cooking. I see it when
running an exe generated from GraalVM native-image app. When compiling,
one specifies a CLASSPATH, but I don’t think CLASSPATH should be required
when running the exe. This essentially means I have to include the jar
when distributing the name app (along with .dlls). AFAIK, there’s no
bytecode required.
I don’t know if native-image is in OpenJDK, but it’s available from Oracle.
Here’s a sample compilation script that might help bootstrap you. I am
still a novice at this:
With my native-image app, called CoderSchematron.exe that calls X3DJSAIL:
~/X3DJSONLD/CoderShematron.exe data/JinLOA4.x3d
CommandLine parameter: "-schematron" to produce X3D Schematron diagnostics for .x3d model
parameter: source file JinLOA4.x3d filesize 814734 bytes
CommandLine parameter: "-tofile" "data/JinLOA4.x3d.new.schematron.txt" for result file name data/JinLOA4.x3d.new.schematron.txt
First create intermediate SVRL file using stylesheet X3dSchematronValidityChecks.xslt
ERROR_CONFIGURATION_X3DJSAIL X3DJSAIL jar archive "" not found in CLASSPATH=
invoked from getTempFileFromX3dJsailJar(/stylesheets, X3dSchematronValidityChecks.xslt)
java.lang.NullPointerException
at java.base@24.0.2/java.util.Objects.requireNonNull(Objects.java:220)
at java.base@24.0.2/java.nio.file.Files.copy(Files.java:2828)
at org.web3d.x3d.jsail.Core.X3D.getTempFileFromX3dJsailJar(X3D.java:2013)
at org.web3d.x3d.jsail.CommandLine.fileStylesheetConversion(CommandLine.java:1646)
at org.web3d.x3d.jsail.CommandLine.run(CommandLine.java:922)
at org.web3d.x3d.jsail.CommandLine.main(CommandLine.java:247)
at net.coderextreme.CoderSchematron.main(CoderSchematron.java:10)
at java.base@24.0.2/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Parsing using Document Object Model (DOM) based X3DLoaderDOM... [Error] file conversion unsuccessful!
===================================
Here's the CLI that created the CLI, for reference:
or at least, don't exit the app.
Sorry but this description is not clear. What problem are you seeing?
I’ll try to get back this, I’ve got lots of pots cooking. I see it when
running an exe generated from GraalVM native-image app. When compiling,
one specifies a CLASSPATH, but I don’t think CLASSPATH should be required
when running the exe. This essentially means I have to include the jar
when distributing the name app (along with .dlls). AFAIK, there’s no
bytecode required.
I don’t know if native-image is in OpenJDK, but it’s available from Oracle.
Here’s a sample compilation script that might help bootstrap you. I am
still a novice at this:
https://github.com/coderextreme/X3DJSONLD/blob/master/ni.sh
I’d include the script, but I worry about formatting.
All very experimental of course!
Thanks!
On Sat, Aug 9, 2025 at 4:27 AM Don Brutzman brutzman@users.sourceforge.net
wrote:
Related
Tickets: #47
Here we are:
With my native-image app, called CoderSchematron.exe that calls X3DJSAIL:
~/X3DJSONLD/CoderShematron.exe data/JinLOA4.x3d
CommandLine parameter: "-schematron" to produce X3D Schematron diagnostics for .x3d model
parameter: source file JinLOA4.x3d filesize 814734 bytes
CommandLine parameter: "-tofile" "data/JinLOA4.x3d.new.schematron.txt" for result file name data/JinLOA4.x3d.new.schematron.txt
First create intermediate SVRL file using stylesheet X3dSchematronValidityChecks.xslt
ERROR_CONFIGURATION_X3DJSAIL X3DJSAIL jar archive "" not found in CLASSPATH=
invoked from getTempFileFromX3dJsailJar(/stylesheets, X3dSchematronValidityChecks.xslt)
java.lang.NullPointerException
at java.base@24.0.2/java.util.Objects.requireNonNull(Objects.java:220)
at java.base@24.0.2/java.nio.file.Files.copy(Files.java:2828)
at org.web3d.x3d.jsail.Core.X3D.getTempFileFromX3dJsailJar(X3D.java:2013)
at org.web3d.x3d.jsail.CommandLine.fileStylesheetConversion(CommandLine.java:1646)
at org.web3d.x3d.jsail.CommandLine.run(CommandLine.java:922)
at org.web3d.x3d.jsail.CommandLine.main(CommandLine.java:247)
at net.coderextreme.CoderSchematron.main(CoderSchematron.java:10)
at java.base@24.0.2/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Parsing using Document Object Model (DOM) based X3DLoaderDOM...
[Error] file conversion unsuccessful!
===================================
Here's the CLI that created the CLI, for reference:
https://github.com/coderextreme/X3DJSONLD/blob/master/schemani.sh
Let me update X3DJSAIL.