cancel
Showing results for 
Search instead for 
Did you mean: 

An error occurs when I'm executing a java plugin

Solved
Occasional Contributor

An error occurs when I'm executing a java plugin

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

Tags (2)
5 Replies
Contributor

Re: An error occurs when I'm executing a java plugin

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
Occasional Contributor

Re: An error occurs when I'm executing a java plugin

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

Occasional Contributor

Re: An error occurs when I'm executing a java plugin

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 ?

Highlighted
MEGA

Re: An error occurs when I'm executing a java plugin

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

Claudio Pucci
Occasional Contributor

Re: An error occurs when I'm executing a java plugin

It works.

Thanks for your response.

 

--

N. Gibanel