I agree the first part - write code in C

albxu (Yukon)
It does not make sence using CORBA to access this small piece C code only to access the COM1 port.

I agree with Jabber that JNI should be used.

But the whole idea sounds like crazy. Why Java and the COM1 together?

If you can treat the COM1 like a character stream (like in BASIC) you may possiblly use File/StreamReader to access the DOS device COM1 for read/write. But the quality of service may not be garanteed.

2001-3-16 -04:00

回到话题: Help, I want to receive data from COM1 port , how can I achieve this in Java, is there bean or something else easy to use in VisualAge? Thanks

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论