Menu

#47 Please remove check for X3DJSAIL jar on CLASSPATH for native-image apps

X3D4
open
None
2025-08-09
2025-08-09
No

Please remove check for X3DJSAIL jar on CLASSPATH for native-image apps

I shouldn't have to have a CLASSPATH for graalvm native-image apps

Thanks!

Related

Tickets: #47

Discussion

  • John W Carlson

    John W Carlson - 2025-08-09

    or at least, don't exit the app.

     
  • Don Brutzman

    Don Brutzman - 2025-08-09

    Sorry but this description is not clear. What problem are you seeing?

     
    • John W Carlson

      John W Carlson - 2025-08-09

      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:

      Sorry but this description is not clear. What problem are you seeing?

      [tickets:#47] https://sourceforge.net/p/x3d/tickets/47/ Please remove
      check for X3DJSAIL jar on CLASSPATH for native-image apps

      Status: open
      Milestone: X3D4
      Created: Sat Aug 09, 2025 06:02 AM UTC by John W Carlson
      Last Updated: Sat Aug 09, 2025 06:11 AM UTC
      Owner: Don Brutzman

      Please remove check for X3DJSAIL jar on CLASSPATH for native-image apps

      I shouldn't have to have a CLASSPATH for graalvm native-image apps

      Thanks!

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/x3d/tickets/47/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #47

  • John W Carlson

    John W Carlson - 2025-08-09

    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

     
  • John W Carlson

    John W Carlson - 2025-08-09

    Let me update X3DJSAIL.

     

Log in to post a comment.

MongoDB Logo MongoDB