Nashorn + Spring Boot; help appreciated
Remi Forax
forax at univ-mlv.fr
Sun Dec 13 17:07:32 UTC 2020
Hi Attila,
for compatibility, you have to both use the new module-info descriptor and the old META-INFO/services when you declare a service.
It's a shame that jar doesn't do that by itself, it was something we (module/jigsaw EG) discussed but it was never implemented.
regards,
Rémi
----- Mail original -----
> De: "Attila Szegedi" <szegedia at gmail.com>
> À: "nashorn-dev" <nashorn-dev at openjdk.java.net>
> Envoyé: Dimanche 13 Décembre 2020 17:54:06
> Objet: Nashorn + Spring Boot; help appreciated
> Hey folks,
>
> seems like folks are trying to use standalone Nashorn with Spring Boot, and are
> running into an issue where Boot doesn’t load Nashorn as a JPMS module. If
> anyone has expertise with this (Spring Boot loading app dependencies as JPMS
> modules) and can help it’d be most appreciated.
>
> I outlined the problem (and I even have a very small reproducer Boot app) in a
> comment on Stack Overflow[0], if you want to help, you’ll find the details
> there.
>
> Thank you,
> Attila.
>
> [0]
> https://stackoverflow.com/questions/65265629/how-to-use-nashorn-in-java-15-or-later/65278158#65278158
More information about the nashorn-dev
mailing list