使用mozilla平台开发桌面应用程序
Mozilla 平台的设计初衷似乎是专注于 Web 开发(浏览器、电子邮件客户端、即时消息...)。
我想使用Mozilla平台来开发最需要访问计算机串口的桌面应用程序以及一些与Web无关的应用程序。我正在考虑使用 mozilla,因为它是多平台的,并且易于使用主题和扩展进行扩展。
是否可以使用 mozilla 等对串行终端进行编程? mozilla 是否有任何类或框架可以完成这项工作,或者我必须为 Windows API 编写代码?
谢谢你!
From what It seems mozilla platform was designed to be used focused in web development (browsers, e-mail clients, instant message...).
I want to use Mozilla platform to develop desktop applications that need most access to computer serial port and some applications that have nothing to do with web. I'm considering mozilla because it's multi-platform and easy to extend using themes and extensions.
Is it possible to program a serial terminal for example using mozilla? Does mozilla have any class ou framework that do this job or I`ll have to code for windows API?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Java 绝对是最佳选择,Java 串行端口编程有两个主要库,RxTx 和 JavaComm。这是关于该主题的很好的读物: http://en.wikibooks.org/ wiki/Serial_Programming/Serial_Java#Using_Java_for_Serial_Communication
编辑 我不排除 Mozilla 作为前端,但您无法直接在 XUL 和 javascript 中进行串行端口编程。这并不意味着您仅限于 XUL,我会看看 Komodo Edit 在 Mozilla 平台上所做的事情,看看您可以向 Java 公开什么。我不知道他们是否使用 Java,我想不会,但您也许能够了解如何使用和滥用 Mozilla 平台。您也许可以使用 Java 或“某种其他语言”以及 Mozilla 平台的可扩展接口来编写串行代码。
Mozilla 的插件系统非常棒。
Java is definitely the way to go, there are two primary libraries for Java Serial Port programming, RxTx and JavaComm. This is a pretty good read on the subject: http://en.wikibooks.org/wiki/Serial_Programming/Serial_Java#Using_Java_for_Serial_Communication
EDIT I wouldn't rule out Mozilla as a front end but you won't be able to do serial port programming directly in XUL and javascript. That doesn't mean you are restricted just to XUL, I'd look at what Komodo Edit has done with the Mozilla platform and see just what you can expose to Java. I don't know if they use Java, I'd assume not but you may be able to see how to use and abuse the Mozilla platform. You might be able to write your Serial Code with Java or 'some other language' and an extensible interface with Mozilla's platform.
Mozilla's plugin system is fantastic.
我认为Java也是跨浏览器的,可能是更好的选择。使用 Mozilla 来做这件事有点像用锤子在墙上打螺丝,它可能有用,但它绝对不是适合这项工作的工具。
I think Java which is also cross browser may be a better choice. Using Mozilla for this is a little like putting a screw in the wall with a hammer, it may work but it definitely is not the right tool for the job.