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, ∼1954🔥, 0💬
Popular Posts:
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...
The Web Services Description Language for Java Toolkit (WSDL4J), Release 1.6.2, allows the creation,...
Apache Commons Codec library provides implementations of common encoders and decoders such as Base64...
Where Can I see Java Source Code files for Xerces Java 2.11.2? Here are Java Source Code files for X...
Java Servlet API 3.0.1 Source Code Files are important if you want to compile them with different JD...