Java Socket Bridge unable to connect
I have a project for varsity where we should use Java Socket Bridge to connect to a chat server (that is how I understand the project at least).
So according to this github page, you should add this to your head
and this to your body
<applet id="JavaSocketBridge" archive="JavaSocketBridge.jar" code="JavaSocketBridge.class" width="0" height="0"></applet>
I have done so and I also ran the make.sh file to produce the jar file. Here is my php file:
So my problem is that when I call the socket_connect() function my web console displays
"Java Socket Bridge cannot connect until the applet has loaded" "not connected!"
I have tried calling the java_socket_bridge_ready() function (although it was not specified to do so) and then the web console displays:
TypeError: get_java_socket_bridge(...).connect is not a function
on line 39 of the java_socket_bridge.js file.
I can't find any help on Google on this issue I've been looking all day. I am using Ubuntu 14.04 and the latest firefox and XAMPP to run my webserver.
I figured out that I have to enable Java in my browser. I used this page from Java's website on how to install and enable Java in my browser.