Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java XMLBeans inst2xsd内存不足错误_Java_Xml - Fatal编程技术网

Java XMLBeans inst2xsd内存不足错误

Java XMLBeans inst2xsd内存不足错误,java,xml,Java,Xml,我运行以下命令: inst2xsd -design ss -simple-content-types smart -enumerations 10 foo.xml 其中foo.xml是一个500m文件。我得到一个OutOfMemoryError:heapspace。如何在命令行上将正确的heapspace参数传递给inst2xsd进程 以下操作失败: inst2xsd -Xmx1024m -design ss -simple-content-types smart -enumerations

我运行以下命令:

inst2xsd -design ss -simple-content-types smart -enumerations 10 foo.xml
其中
foo.xml
是一个
500m
文件。我得到一个
OutOfMemoryError:heapspace
。如何在命令行上将正确的heapspace参数传递给
inst2xsd
进程

以下操作失败:

inst2xsd -Xmx1024m -design ss -simple-content-types smart -enumerations 10 foo.xml
以及:

inst2xsd -design ss -simple-content-types smart -enumerations 10 foo.xml -Xmx1024m

如果查看
xmlbeans-/bin
文件夹中的
inst2xsd
脚本,您会注意到该脚本不支持这一点

java -classpath "$cp" org.apache.xmlbeans.impl.inst2xsd.Inst2Xsd "$@"
因此,您必须手动更改脚本