DEV Community

Discussion on: What's new and interesting in Java?

Collapse
 
cjbrooks12 profile image
Casey Brooks

Java is finally coming to terms with the fact that every project is going to need modern Javascript, and they're working to make it less painful to work with the two ecosystems in the same project.

GraalJS is the replacement of their poorly-supported Nashorn engine (which itself was a replacement of the poorly-supported Rhino engine), supporting the full ES2019 specification and all NodeJS APIs, which runs directly inside the JVM. This makes it easier to use Javascript code from a JVM application.

In addition, Kotlin has been working to give Java developers a nicer way to write Javascript code with Kotlin/JS. The latest version of Kotlin, 1.3.40, even included Webpack bundling and NPM dependency management directly in Gradle. So now, Kotlin/JS developers can just work with their normal Gradle build tooling and get a browser app bundled or NodeJS app fully working without needing to actually learn and set up the Javascript tooling. This makes it easier for a Java developer to develop apps for the browser or Node.