Hi, I have converted mmj2 to a maven project (see https://github.com/jvierling/mmj2) and included the `nashorn-core` dependency. The mmj2 executable JAR file can be generated with the command `mvn package`. Jannik.
[email protected] schrieb am Freitag, 3. März 2023 um 20:23:58 UTC+1: > > If this is likely to be an issue going forward would it be a good idea to > mavenize/gradleize the mmj2 build process so that the standalone version of > nashorn-core ( > https://mvnrepository.com/artifact/org.openjdk.nashorn/nashorn-core) gets > auto-downloaded and incorporated into the Jar file? It would increase the > size of the jar somewhat but would at least ensure that the program isn't > dependent on an antique version of Java? Although jdk8 is still technically > under LTS it's no longer recommended for production use and anything modern > should really be targeting jdk11+, if not jdk17. > > I'm a Java guy and have some time off work coming up later this month, if > Mel and Mario are okay with it I'd at least be willing to spend a day > looking at the repo to see how much work it would be likely to be. > > DC > On Thursday, 2 March 2023 at 22:38:49 UTC David A. Wheeler wrote: > >> >> >> > On Mar 2, 2023, at 4:36 PM, Mario Carneiro <[email protected]> wrote: >> > >> > It sounds like the nashorn JS engine was removed from a later version >> of JDK, and the empty list following the prompt suggests there is no >> replacement. Without it you won't be able to run any macros, although you >> might be able to install it manually? The easiest thing to do is probably >> just to downgrade to JDK 9. >> >> Ah, of course! I should have noticed the openjdk version more carefully. >> >> Oracle has long warned that they'd stop supporting JavaScript from Java >> using the Nashorn JS engine, but mmj2 depends on it. >> >> --- David A. Wheeler >> >> >> > >> > On Thu, Mar 2, 2023 at 3:53 PM David A. Wheeler <[email protected]> >> wrote: >> > >> > >> > > On Mar 2, 2023, at 3:23 AM, William Mitchell Jr <[email protected]> >> wrote: >> > > >> > > running mmj2 in the mmj2jar directory produced this error: >> > > >> > > mmj.pa.MMJException: E-UT-1502 You attempted to use a macro, but the >> default Macro language 'js' does not exist. Use 'MacroLanguage,xxx' with >> one of the following installed languages: >> > > >> > > This is the git version (uncompiled) running on >> > > arm64 >> > > Debian Linux >> > > openjdk-18 >> > >> > Weird. I have no idea what's going on. Anyone else? >> > >> > --- David A. Wheeler >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Metamath" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected]. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/metamath/CCC54F28-92E6-4C7D-B8EF-1A993DB50449%40dwheeler.com. >> >> >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Metamath" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected]. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/metamath/CAFXXJSsoTbBby4QCy6zh-JEF%2B3qM80bSASPLJ4zk9RkA4%2B1C%2Bw%40mail.gmail.com. >> >> >> >> -- You received this message because you are subscribed to the Google Groups "Metamath" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/metamath/4505e124-53cd-4f04-88f6-98e646392a2cn%40googlegroups.com.
