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

Debugging a Java component called from MEGA

mdemonteil
New Contributor

Hi,

 

Did somebody already success to connect Eclispe and Mega with CurrentSession() from Java code. It is to do debugging a Java component called from Mega.

 

I did that : MegaCurrentEnvironment mce = new MegaCurrentSession("D:\\program files\\mega\\mega\\System\\");

 

I already followed the part "Debugging a Java component called from MEGA" from "Creating MEGA plug-ins with Java.pdf".

 

Thanks for your suggestions.

 

Marie

2 Replies

Mohamed,

 

Thanks for you answer.

Normaly yes. I imported mj_api.jar and the external file mj_api_doc.zip at my project. I also generate identifiers for Java components from MEGA. Is it sufficient ?

 

I can execute my functions implemented in java by Mega, but I would like a mode debugging to follow each line of my code.
So, I would like connect me at my current session in Mega from Eclipse. Is it possible ?

 

Best regards,

 

Marie

mtenzali
Retired

Hi,

 

Did you import the necessary libraries of the JAVA API to your project on Eclipse)?

 

If not, you should proceed so before you start debugging.

 

Mohamed