Subj : LiveConnect Problems To : netscape.public.mozilla.jseng From : rpazhyannur@hotmail.com (Rajesh Pazhyannur) Date : Tue May 13 2003 05:30 pm Hi I am experiencing the following LiveConnect problem. I have written a java class and included it in my CLASSPATH. LiveConnectTest.ShowString I have a javascript that is attempting to create the above class using new. var stringName = new Packages.LiveConnectTests.ShowString(); I am getting the following error. TypeError: Packages.LiveConnectTests.ShowString is not a constructor. I am running Netscape 7.0.2 (and Mozilla 1.4) JRE 1.4.1_02 on Windows XP. I suspect that the browser is not able to locate my java class. I am able to execute some Java commands like java.lang.System.getProperty(). Any help/suggestion/hints in solving this problem would be greatly appreciated. regards Rajesh PS. The HTML file and the java file are as follows. *********************************************************************
********************************************************************
*******************************************************************
/*
* ShowString.java
*
* Created on May 12, 2003, 2:20 PM
*/
// import netscape.javascript.JSObject;
/**
*
* @author Rajesh S. Pazhyannur
*/
Package LiveConnectTests;
public class ShowString {
/** Creates a new instance of ShowString */
public void ShowString(String st) {
lastString = st;
System.out.println(" Received String "+st);
}
static String lastString = null;
public static String getString (){
return lastString;
}
public static void main(String [] args){
ShowString sh = new ShowString("dummy");
}
}
*******************************************************************
.