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:
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:
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.