Debian Sid, arm64, X11, JDK 17 works. Thanks.
 
$ java --version:
openjdk 17.0.6 2023-01-17
OpenJDK Runtime Environment (build 17.0.6+10-Debian-1)
OpenJDK 64-Bit Server VM (build 17.0.6+10-Debian-1, mixed mode, sharing)

Build:
$ git clone https://github.com/jvierling/mmj2
$ cd mmj2
$ mvn package
Success

Run:
$ cd mmj2jar
$ mv mmj2.jar mmj2.jar.old
$ cp -vp ../target/mmj2-2.5.2-SNAPSHOT-jar-with-dependencies.jar mmj2.jar
$ cd
$ mmj2/mmj2jar/mmj2
Success

William
On Saturday, March 4, 2023 at 5:22:03 PM UTC-5 [email protected] wrote:

> 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/42657d37-cfa1-45ae-b146-2f8b0b464665n%40googlegroups.com.

Reply via email to