Web application hang without comm.jar
I am writing an web application which my applet is using comm.jar to talk to my hardware. The problem is that not all the users (client) have the device connect to their PC and so when my applet is invoke, it hang the webpage (JSP). I am using jre 1.5 update 6 to do it.
Here is my code in my applet
// Get port
portname = this.getParameter("PORTNAME");
System.out.println("Com Port "+ portname);
portId = CommPortIdentifier.getPortIdentifier(portname);
// TODO Auto-generated catch block
System.out.println("Destroying the Applet due to no Comm.jar + NoSuchPortException");
System.out.println("Destroying the Applet due to no Comm.jar + Exception");
And the error I got in my java console
(It cannot find the comm.jar in the jre)
Is there a way to write to prevent my application to hang if I don't put the comm.jar in the JRE (Because some user don't have device on their PC) other than upgrading the JRE.