Page 1 of 1

Using a Java Class from Jade

Posted: Fri Aug 07, 2009 11:58 am
by ConvertFromOldNGs
by Chris Garty >> Wed, 22 Nov 2000 22:49:40 GMT

Hi,

I have a Java class that does some stuff (don't ask) that I can't do with Jade.
I need to be able to use this class from Jade.

I created a dll and tried using the external function functionality in Jade to access it, but that wasn't right since I needed to 'create' an instance of the Java class.

After remembering the msxml.dll example, I imported the dll as an ActiveXAutomation class and did the declare, create, function call, delete. ---
callObject : Invoker;
create callObject;
xmlOutput := callObject.invokeXML(xmlInput);
delete callObject;
---

But this doesn't work. It gives a hideous error when the create line is encountered.
---
Type: UserInterfaceException
Error Code: 14128
Continuable: No
Error accessing ActiveX type information
Window error = 0x80004001
Not implemented
---

So... what is ActiveX type information ? Do I need to implement something (a method) in the Java class?

Any help is greatly appreciated.

Thanks

Chris Garty
PricewaterhouseCoopers