Visual Studio solution for compiling the SDK library.
This solution, created with Visual Studio 2015 Express edition, allows to compile mega.dll for Windows
Such library is required to run Java applications using the MEGA SDK and must be provided with its corresponding Java clases.
-
Download the 3rd-party libraries from this link.
-
Extract the content to
sdk/bindings/java/contrib/vs2015/. -
Download the Java bindings files created by SWIG from this link.
-
Extract the content to
sdk/bindings/java/ -
Open the solution
MEGAdll.slnand hit "Build". -
If success, you should find a
mega.dlllibrary insdk/bindings/java/contrib/vs2015/Release/.
The provided VS solution uses the files megaapi_wrap.h and megaapi_wrap.cpp located in the folder sdk/bindings/java. The generated DLL must be provided with the Java clases in sdk/bindings/java/nz/mega/sdk/.
If you need an updated version of any of those files (megaapi_wrap.cpp, megaapi_wrap.h or any of the Java classes), then you will have to generate them by following the instructions here, adding the option --enable-java to your configure command. Due to build tool requirements it might be easiest to do this on a different platform (e.g. a Linux system).
./configure --enable-java