Using JNI and applet


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Using JNI and applet

  1. #1
    Join Date
    Mar 2006
    Posts
    5

    Question Using JNI and applet

    hi All,

    can anyone explain the steps involved in calling from a .dll using Java and JNI? Steps with sample code will guide better. I'm confused

    rgds,
    jpdbay

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    Happiness is good health and a bad memory.

  3. #3
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    The original post is entitled "Using JNI and applet". I think you are going to find that JNI is not going to be available to you through an applet. Applets are not usually given access to the client's operating system, and JNI is all about having access to the services exposed by the client's operating system.

  4. #4
    Join Date
    Mar 2006
    Posts
    5
    hi nspils,

    I just wanna clarify ur statement. Did u mean that I can't access third party dll (not system dll) for eg. dll to initialize smart card reader? From my understanding, Applets can access native methods (dll) using JNI but I hv no idea how to implement that? Plz correct me if my statement is wrong n plz clarify. Thnx in advance.

  5. #5
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    I have not researched this issue sufficiently to give you an definitive answer to your question.

    My post was based on the fact that one of the properties of an applet (for security reasons) is that it runs entirely within the browser window opened on the client, and has no access to the operating system running on the client. It runs in its own little virtual machine - without connection to any other process on the client. Running a .dll on the client would, therefore, be out of the question since to connect to it you would have to reach outside of the browser window and you will be relying on OS processes to gain access to the dll.

    You might be able to get around that limitation with "signing" - you'll need to research this point if you really want to use a .dll.

  6. #6
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    Here's an old article on signed applets being able to access the OS through JNI:

    http://www.javaworld.com/javaworld/j...pptowin32.html

Similar Threads

  1. sound recording with applet
    By anski in forum Java
    Replies: 0
    Last Post: 06-22-2000, 09:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center