I have a very simple project. I have a scale connected to the serial port. I would like to read the scale output using my browser.
Windows xP
FireFox (only browser to be used)
Java 7 update 51
JSSC 2.8.0
I have installed Java and adjusted the settings so it runs in FireFox.
I have installed jSSC-Terminal (a sample program which can be run in the browser). I connected the scale and I am able to see the actual output in the jSSC-Terminal app (the output is exactly what I am looking for).
I understand that you can make direct calls to public Java methods from javaScript.
The downloaded bundle (zip file) found at
http://code.google.com/p/java-simple...C-Terminal.zip appears to be all I need, but I need help putting it to use.
The basic examples of reading and writing to the serial port are shown at http://code.google.com/p/java-simple.../jSSC_examples.
If you do not want to click on the links shown here you can just google "jssc example"
Questions:
1. Must I write a java app to use the reading example shown? Or can that just be written in javaScript? If so can someone provide an example.
2. If I must write a java app (like jSSC-Terminal.jar), is there a free compiler available?
Any guidance will be greatly appreciated. I'm a total newbie to Java.
I already have a desktop app that reads the scale but a web app will be more useful to me.