could be a nice way to intergate jacascript libs in java clients.
javafx + webview(webkit) + nashorn
If you want to share code than go for a java client with javafx. I cant understand why people think a browser(designed to render static content) is a better plaftform than a vm(designed to execute code). But strangely "no deployment" is a killer phrase.
Imho the best new feature in java8 will be javafx8.