Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. Calling jar file from javascript at client side

Calling jar file from javascript at client side

Scheduled Pinned Locked Moved JavaScript
tutorialjavajavascripthtmlsysadmin
3 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sakthii
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • S sakthii

      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.

      M Offline
      M Offline
      moocr com
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • M moocr com

        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

        S Offline
        S Offline
        sakthii
        wrote on last edited by
        #3

        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!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups