A longtime customer has asked me to build a PC-hosted GUI to control an existing system I designed for him a long time ago. Actually the system was designed to control a vending machine, but he now wants to use the same hardware as a sort of poor man's PLC, to operate various other machinery in his facility.
I don't like wasting effort on Windows-specific code if I don't have to, so I was thinking of writing the GUI in Java.
Can anyone who has been down this path (i.e. talking to an embedded system over serial from a PC running a JVM) give any tips on the pros and cons of using something like javacomm vs. JNI? (I figure the JNI DLL would be