Re: using a Java library in the web

Skip to first unread message

Jaroslav Tulach

Jul 10, 2016, 2:32:30 PM7/10/16
to Scott Vorthmann, DukeScript,
Thanks for your interest in my  Bck2Brwsr VM. Should you need to incllude some changes into the bck2brwsr sources, feel free to ping me.

2016-07-09 7:50 GMT+02:00 Scott Vorthmann <>:
Never mind... I found the bck2brwsr sources, and so all is made clear.

On Wednesday, July 6, 2016 at 10:39:18 AM UTC-7, Scott Vorthmann wrote:

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

You received this message because you are subscribed to the Google Groups "DukeScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
Visit this group at
To view this discussion on the web visit

For more options, visit

Reply all
Reply to author
0 new messages