使用Processing作为java servlet
这个主题之前已经在这里讨论过(使用处理在服务器上在幕后创建图像,以及渲染图像与 Java servlet 上的Processing.org)以及@George Bashi 提出的一个非常有前途的解决方案。但我在实施过程中遇到了困难。如果我使用处理语法编写 .java 文件,我需要使用哪些库进行编译以保留处理结构?当我使用processing.core.jar、servlet-api.jar 编译这样的文件时,javac 在所有Processing 独特语法上调用错误。为了避免将Processing 程序重新编写为标准Java,如何将Processing .java 文件编译为可用作Java servlet 的.class?
This topic has been discussed before here (Using Processing on a server to create images behind the scenes, and Rendering images with Processing.org on Java servlet) and a very promising solution proposed by @George Bashi. But I have encountered difficulties regarding its implementation. If I write a .java file with Processing syntax, with which libraries would I need to compile with it to preserve Processing structure? When I compile such a file with processing.core.jar, servlet-api.jar, javac calls errors on all the Processing-unique syntax. Trying to avoid re-writing a Processing program into standard Java, how would one compile a Processing .java file into a .class that is usable as a Java servlet?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哇我感觉自己很蠢。带有 Web 工具的 Eclipse 和 http: //www.java-tips.org/java-tutorials/tutorials/introduction-to-java-servlets-with-eclipse.html 扭转了局面。每天学习新东西。
Wow I feel dumb. Eclipse with Web Tools and http://www.java-tips.org/java-tutorials/tutorials/introduction-to-java-servlets-with-eclipse.html saved the day. Learn something new every day.