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

Dll library in 64 bits

Fboulart
Super Contributor

Hi there,

 

I'm having issues with the version of the dll called from the Mega Java API.

 

Here is a java program that simply attempts to connect to Mega and list the available environments.

 

       public boolean createApplicationTest() {

              MegaApplication mega = new MegaApplication();

              MegaEnvironments envs = mega.getEnvironments();

             

              for (MegaEnvironment me: envs) {

                     System.out.println(me.getName());

              }

             

              return false;

       }

 

In the documentation, it tells me that I need to copy the “mg_jnib.dll” file onto an accessible path for my java program to find, which I have done.

 

However, when I run my java program, I get the following error:

 

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\fermrich\workspace\AppRegisterDataSync\bin\mg_jnib.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

 

I assume that I get this error because the Mega DLL is compiled for a 32 bit environment, and I am using a 64-bit environment.

 

Is there a 64-bit version of this library somewhere?

 

Cheers,

 

francois

2 Replies

Merci Noe.

 

Good to know.

 

Cheers,

nlavallee
MEGA
MEGA

Hello François,

 

We currently only supply a 32-bit version of mg_jnib.dll.

This does not stop you from using it on a 64-bit Windows.

You must however run your Java code using a 32-bit JVM (JRE or JDK)  for this to work.

You can for example use the JRE supplied with Mega (in the java/jre directory of your Mega installation).

 

Regards