[x3d-public] Java to JavaScript -- JSweet

yottzumm at gmail.com yottzumm at gmail.com
Sun Mar 5 11:13:08 PST 2017


I’m trying it out.  I need the Saxon source code (can the saxon folks create a candy?).  Thanks!

Tried:

$ export CLASSPATH=../stylesheets/java/lib/saxon9he.jar

Of note:

http://www.saxonica.com/saxon-js/index.xml


$ ~/apache-maven-3.3.9/bin/mvn generate-sources
[ snip ]
ERROR: package net.sf.saxon.s9api does not exist at C:\x3d-code\www.web3d.org\x3d\jsweet-quickstart\src\main\java\org\web3d\x3d\jsail\Core\X3DObject.java(44)
2017-03-05 13:42:18.018 ERROR JSweetTranspiler:373 - C:\x3d-code\www.web3d.org\x3d\jsweet-quickstart\src\main\java\org\web3d\x3d\jsail\Core\X3DObject.java:44: error: package net.sf.saxon.s9api does not exist
import net.sf.saxon.s9api.*;
^
2017-03-05 13:42:19.019 INFO  JSweetTranspiler:721 - transpilation process finished in 1840 ms
[ERROR] transpilation failed
org.apache.maven.plugin.MojoFailureException: transpilation failed with 1 error(s) and 1 warning(s)
        at org.jsweet.AbstractJSweetMojo.transpile(AbstractJSweetMojo.java:337)
        at org.jsweet.JSweetMojo.execute(JSweetMojo.java:41)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.340 s
[INFO] Finished at: 2017-03-05T13:42:19-05:00
[INFO] Final Memory: 17M/592M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jsweet:jsweet-maven-plugin:1.2.0:jsweet (generate-js) on project jsweet-quickstart: transpilation failed: transpilation failed with 1 error(s) and 1 warning(s) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170305/6222b3e5/attachment-0001.html>


More information about the x3d-public mailing list