From: Edward H. <edw...@ya...> - 2005-09-24 01:40:07
|
Hi, I'm also wondering how instances are created and destroyed using java bridge. It seems to me (and from reading the docs) that when instances are created i.e. when u do smth like $newinstance=new java_class("java.lang.someclass"); This class and all variables/properties belonging to that class will never get destroyed? Is this correct? This is because I have a class and when I run JavaBridge.jar and execute the class for the first time it always works. But subsequent calls to that class will fail unless I shut down JavaBridge.jar (by terminating javaw.exe from Task Manager) and restart it again. And it also works when I call the java class from command prompt and calling it multiple times does not create any problem. The error that I'm getting is ArrayIndexOutofBounds Exception on one of the variables of the class. I'm just wondering if there is any difference calling java class from command prompt and calling it via the java bridge which can explain this behaviour. Thanks. --------------------------------- Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. |