Calling jar file from javascript at client side
-
Is it possible to call a method of jar file which is residing in Client side, through java script. this is required to access USB port for testing tool development. Here is give a simple example to help me with code snippet. A simple Java program (simple.java) which has two methods GetName() and GetID() which returns string and integer value respectively. which is then converted to jar(simple.jar) and placed in C:\Temp\simple.jar. Can some one help me in java script code snippet, how to call the jar file inside my html file, and how to access the GetName() and GetID() method. Note: Simple.jar file will be at client machine and NOT at server side, may be i have to learn how to use plugin to download simple.jar from server to client (will be happy if i get some pointers on this too!) FYI, I am newbie to javascript.
-
Is it possible to call a method of jar file which is residing in Client side, through java script. this is required to access USB port for testing tool development. Here is give a simple example to help me with code snippet. A simple Java program (simple.java) which has two methods GetName() and GetID() which returns string and integer value respectively. which is then converted to jar(simple.jar) and placed in C:\Temp\simple.jar. Can some one help me in java script code snippet, how to call the jar file inside my html file, and how to access the GetName() and GetID() method. Note: Simple.jar file will be at client machine and NOT at server side, may be i have to learn how to use plugin to download simple.jar from server to client (will be happy if i get some pointers on this too!) FYI, I am newbie to javascript.
-
if dont consider the safe or you browser allow, you can do it use javascript. but you'd better dont do this operation. moocr.com
Thanks for your reply... at last some one is hearing me ! Well.. I am developing a tool which is very internal to our office.. a web access to one of the hardware which is connected to com port. Got a jar file with the hardware which shall be used to connect the hardware through comport. I dont have the source of the jar file. So, i am not worrying about the security and whether it is feasible etc. I would appreciate if some one can give the solution.. for the problem i posted. There is some guy who developed hardware is giving the jar file.. think he had lot of trust with Java language growth!