xjc :GConf 错误:无法启动配置服务器:无法分叉子进程(无法分配内存)
我想将这个 xhtml 解组为 Java 对象。我已经下载了 dtd 并使用以下命令对其进行解组。
dtd 为 http://www.wapforum.org/DTD/xhtml-mobile10.dtd
我使用的命令是:
[/opt/downloads/test/Original_dtd]# xjc -dtd xhtml-mobile10.dtd 正在解析架构... GConf 错误:无法启动配置服务器:无法分叉子进程(无法分配内存)
如何解组 dtd ?或者有什么方法可以将 dtd 转换为 xsd 并对其进行解组吗?使用 xjc 将 dtd 传输到 xsd 进行解组会更容易吗?
I would like to unmarshal this xhtml in to Java objects. I have downloaded the dtd and using the following command to unmarshal it.
The dtd is http://www.wapforum.org/DTD/xhtml-mobile10.dtd
And the command I am using is:
[/opt/downloads/test/Original_dtd]# xjc -dtd xhtml-mobile10.dtd
parsing a schema...
GConf Error: Failed to launch configuration server: Failed to fork child process (Cannot allocate memory)
How can I unmarshal the dtd ? Or is there any way to convert the dtd to xsd and unmarshal it ? will it be easier to transfer the dtd to xsd for unmarshalling using xjc?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试增加 JVM 的内存:
[.../Original_dtd]# XJC_OPTS="-Xmx512m" xjc -dtd xhtml-mobile10.dtd
Try to increase the memory for your JVM:
[.../Original_dtd]# XJC_OPTS="-Xmx512m" xjc -dtd xhtml-mobile10.dtd