Click here to Skip to main content
15,887,285 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,

I have created one aspx application to get client system information. For getting the client system information, i have created a JNI library.

I have used java script to load a applet jar which in-turns will load the JNI library where the JNI library is located in every client system.

I have tested this application and it is working fine.

For testing purpose, i have hosted my application in two to three system. For eg, Server A, B and C. I had access the server pages in a system (TEST system).

When i access the page from system A and C in the TEST system, the application works fine.

But when i access the page from system B in the TEST system, the java script gives error.

The error is object does not support this method or property in the line Obj.GetUserName().

Sample source is below:

Java script:

JavaScript
document.write('<applet code="Client.Information.class" width="0" height="0" MAYSCRIPT archive="Client.jar" id="Obj"></applet>');

function ClientInformation ()
{
    Obj.GetUserName();
    Obj.GetSystemMemory();
}


Applet jar:

Java
package Client;
import java.*;
import java.io.*;
import java.lang.*;
import java.applet.Applet;
import java.awt.*;

public class Information extends Applet
{
     public native string GetUserName();
     public native string GetSystemMemory();

     static
     {
          System.loadLibrary("ClientInformation");
     }
}


As surfing through internet, updating the java version and clearing the browser cache will solve this problem. But i have tried this.

Please guide me to solve this error.

Thanks for your reply.
Posted
Updated 2-Oct-13 22:26pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900