Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Run JEuclid "mml2xxx" Command on macOS
How to Run JEuclid "mml2xxx" Command on macOS?
✍: FYIcenter
"mml2xxx" is a command provided in JEuclid 3.1.9 that
allows you to render a MathML document into an image file
in the following formats:
JPEG (always) PNG (always) BMP (always) WBMP (always) GIF ( > JDK 1.6, or with FreepHEP) SVG (with Batik) EMF (with FreeHep) PDF (with FreeHep) PS (with FreeHep) SWF (with FreeHep)
You can follow these steps to run the "mml2xxx" command.
1. Create the following MathML document and save it as JEuclid-MathML-Example-4.xml.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<math xmlns="http://www.w3.org/1998/Math/MathML"
mode="display" overflow="scroll">
<mrow>
<mo stretchy="false">{</mo>
<munder>
<mrow>
<mover>
<mrow>
<mpadded width="0"/>
<mi>a</mi>
<mo>,</mo>
<mo>...</mo>
<mo>,</mo>
<mi>a</mi>
</mrow>
<mover>
<mo>︷</mo>
<mrow>
<mi>k</mi>
<mtext> </mtext>
<mi>a</mi>
<mtext>'s</mtext>
</mrow>
</mover>
</mover>
<mo>,</mo>
<mover>
<mrow>
<mpadded/>
<mi>b</mi>
<mo>,</mo>
<mo>...</mo>
<mo>,</mo>
<mi>b</mi>
</mrow>
<mover>
<mo>︷</mo>
<mrow>
<mi>ℓ</mi>
<mtext> </mtext>
<mi>b</mi>
<mtext>'s</mtext>
</mrow>
</mover>
</mover>
</mrow>
<munder>
<mo>︸</mo>
<mrow>
<mi>k</mi>
<mo>+</mo>
<mi>ℓ</mi>
<mtext> elements</mtext>
</mrow>
</munder>
</munder>
<mo stretchy="false">}</mo>
</mrow>
</math>
2. Render the MathML document into a PNG image file. You may see the following error.
fyicenter$ ~/Applications/jeuclid-3.1.9/bin/mml2xxx \ JEuclid-MathML-Example-4.xml output.png -fontSize 48 Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/events/CustomEvent ... at net.sourceforge.jeuclid.converter.Converter.render(Converter.java:294) at net.sourceforge.jeuclid.converter.ImageIOConverter.convert(ImageIOConverter.java:67) at net.sourceforge.jeuclid.converter.Converter.convert(Converter.java:251) at net.sourceforge.jeuclid.converter.Converter.convert(Converter.java:175) at net.sourceforge.jeuclid.converter.Converter.convert(Converter.java:144) at net.sourceforge.jeuclid.app.Mml2xxx.main(Mml2xxx.java:130)
3. Fix the error by using an older version of Java Runtime.
fyicenter$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_341.jdk/Contents/Home fyicenter$ ~/Applications/jeuclid-3.1.9/bin/mml2xxx \ JEuclid-MathML-Example-4.xml JEuclid-MathML-Example-4.png -fontSize 48
4. View the math formula saved in the PNG file.
⇒ Run JEuclid "mathviewer" Command on macOS
⇐ Install JEuclid 3.1.9 Binary Package on macOS
2025-04-29, ∼2189🔥, 0💬
Popular Posts:
JDK 17 java.sql.rowset.jmod is the JMOD file for JDK 17 SQL Rowset module. JDK 17 SQL Rowset module ...
How to download and install JDK (Java Development Kit) 1.4? If you want to write Java applications, ...
JDK 11 jdk.crypto.mscapi.jmod is the JMOD file for JDK 11 Crypto MSCAPI module. JDK 11 Crypto MSCAPI...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
What is the dom\ElementPrinter.java provided in the Apache Xerces package? I have Apache Xerces 2.11...