My environment
Win7 Eclipse3.5.2 , JDK1.6.0_19-b04
The TestTex.java can successfully run as java application.
But when run TestMath.java as java application, error displayed as follows:
---------------------------------------------------------------------------------------------------------
parse failed: JMathLib.xml
java.net.MalformedURLException
at java.net.URL.<init>(URL.java:601)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:518)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:865)
at cz.natur.cuni.mirai.math.meta.MetaModel.<init>(MetaModel.java:107)
at cz.natur.cuni.mirai.math.test.TestMath.main(TestMath.java:72)
Initializing JMathTeX http://jmathtex.sf.net
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: MetaGroup Not found Array
at cz.natur.cuni.mirai.math.meta.MetaModel.getGroup(MetaModel.java:240)
at cz.natur.cuni.mirai.math.meta.MetaModel.getArray(MetaModel.java:118)
at cz.natur.cuni.mirai.math.controller.MathController.setFormula(MathController.java:71)
at cz.natur.cuni.mirai.math.editor.JMathField.setFormula(JMathField.java:139)
at cz.natur.cuni.mirai.math.editor.JMathWorkbook.addFormula(JMathWorkbook.java:261)
at cz.natur.cuni.mirai.math.editor.JMathWorkbook.addElement(JMathWorkbook.java:240)
at cz.natur.cuni.mirai.math.editor.JMathWorkbook.access$4(JMathWorkbook.java:238)
at cz.natur.cuni.mirai.math.editor.JMathWorkbook$WorkbookList.add(JMathWorkbook.java:175)
at cz.natur.cuni.mirai.math.model.MathModel.replaceElementList(MathModel.java:100)
at cz.natur.cuni.mirai.math.editor.JMathWorkbook.attachModel(JMathWorkbook.java:206)
at cz.natur.cuni.mirai.math.test.TestMath.newWorkbook(TestMath.java:63)
at cz.natur.cuni.mirai.math.test.TestMath.main(TestMath.java:76)
---------------------------------------------------------------------------------------------------------
I think the reason is the JMathLib.xml file is missing.
But I didn't find this file along with the source distribution: miraimath-0.5-src.tar.bz2.
Can anyone please give a suggestion?
Thank in advance.