xjc :GConf 错误:无法启动配置服务器:无法分叉子进程(无法分配内存)

发布于 2025-01-05 18:12:01 字数 438 浏览 4 评论 0原文

我想将这个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素染倾城色 2025-01-12 18:12:01

尝试增加 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文