Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

@JavaScript and share jQuery library between multiple modules

Petr Prikryl
10 years ago Feb 27, 2013 8:36pm

what is the best way to share library (jar with jQuery) between multiple modules (.jar).
I used to use inherit in gwt.xml in vaadin 6.
But I found annotation @JavaScript. I expected I coud use @JavaScript("/cz/xy/sharedjar.jQuery.js") (something like absolute path) but it seems it is impossible to refer root of classpath.

Thank you

Alexander Pchelintsev
10 years ago Mar 18, 2013 2:34pm