program the LPT port using Java. Really?

巧了我就是萌 提交于 2019-12-04 05:07:10

问题


Conditions:

OS is Windows XP

have LPT port

LED light bulb is connected to the LPT port

Necessary:

using Java to make the bulb flash Is it possible? Interested in real, proven solutions.

Has anyone done this?

I have our few options: the use javax.comm and RXTX. How successful is to use these solutions?


回答1:


There used to be a nice Java parallel port library available at this URL:

http://www.geocities.com/Juanga69/parport/

It seems to be gone now, however you can still access it through the Internet Archive's wayback machine:

http://web.archive.org/web/20080523134328/http://www.geocities.com/Juanga69/parport/

The files can also be downloaded from here (Windows and Linux versions available, binaries and source code included):

http://www.ioi.knaw.nl/~heimel/computers/parport/

Note that for Windows XP you'll need to install a kernel-mode driver such as UserPort. This also can be downloaded from the sites above.



来源:https://stackoverflow.com/questions/3976907/program-the-lpt-port-using-java-really

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!