I have exported some Processing code (outputs sensor data to 开发者_JAVA技巧a textbox) to an applet that includes the .jar and .html files. I have tried to insert this html on a simple website that I created and the java applet doesn't work. Do I have to somehow modify the html? I know that the .jar files are already in the same directory and are referenced appropriately in the exported html code. Is there a better approach to posting to a website? Thank you
I don't think that it is possible, due to security restrictions on applet communication.
More than likely you will have to write a small client/server program using sockets. The idea would be to transmit the the output from your locally running client application to your applet(server) which would receive and display the data.
You could use any language with socket support obviously(Flash, PHP, etc.), but I assume you will want to stick with Java.
精彩评论