I need to use a Java library, in a web-deployed DukeScript app. Working from the samples from the DukeScript book, I am able to get the library to work with the Java-based client project, of course. However, nothing I've done in NetBeans has worked as far as getting the library ".js" file both generated and loaded correctly, when running the client-web project using the "custom / run in browser".
I did add the JAR as a runtime dependency in the client-web project, and that seems to correctly trigger generation of the corresponding *.js file in client-web/target/lib. However, when I debug the running app in Chrome, console reports that it cannot find the resource "
http://localhost:5324/lib/lib/mylibrary.js", nor can it find all of the other *.js files for libraries, using the "lib/lib" path for each. Chrome does report the resources available as sources, but under just one level of "lib" folder.
Is there some Maven magic that controls and coordinates the generation and loading? Library use seems to be something of a black box, though I did find a terse and cryptic (to me) entry in wiki, linked from the release notes.
Thank you,
Scott Vorthmann