cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

An error occurs when I'm executing a java plugin

ngibanel
Super Contributor

Hello,

 

I try to execute a java plugin but I have an error.

 

I create a macro with this settings :

  • Name : TestJava
  • _ObjectFactory : java:fr/adp/TestJava
  • SystemComponent : Dispatch

I create a java project (see below) and export (JavaTest.jar)

 

javaproject.JPG

 

When I execute this code :

CurrentEnvironment.GetMacro("TestJava").test1

 

I have an error message :

 

error.JPG

TestJava : Erreur d'exécution Microsoft VBScript line 1, offset 1 :
Error(0x800a01b6) : Cet objet ne gère pas cette propriété ou cette méthode: 'CurrentEnvironment.GetMacro(...).test1' 

 

Thank you in advance for your help.

 

--

N. Gibanel

6 Replies

Hello ,

 

Could you please tell me what change you did for your macro to work .

I also facing same error when i try to call Java function from Mega Macro .

 

Mega Macro Syntax used :

CurrentEnvironment.GetMacro(Class Name").Method

 

Error : Object doesn't support the property CurrentEnvironment.GetMacro

 

 

ngibanel
Super Contributor

It works.

Thanks for your response.

 

--

N. Gibanel

Remember that you have to close and restart MEGA to get the JARs updated.

Claudio Pucci

ngibanel
Super Contributor

After several tests, my macro works.

 

But if I update my jar file, the same error appears...

Can I change the implementation of the plugin after a first execution ?

ngibanel
Super Contributor

Thanks a lot for the response.

 

Yes, I execute this code

 

CurrentEnvironment.GetMacro("TestJava").test1

 

and I followed the process to create and run a Java plugin.

 

I don't understand where is the problem

pabobo
Retired

Hi, 

 

Did you execute your macro using a VB line like the following one ?

 

CurrentEnvironment.GetMacro("TestJava").test1 

 

I don't know if you've already taken a look a this, but there is a PDF file called creating MEGA plug-ins with Java where the process to create and run a Java plugin is explained. 

 

Regards



Patrick Bobo