td icon indicating copy to clipboard operation
td copied to clipboard

Maven Release with native libraries included

Open J0s3f opened this issue 7 years ago • 2 comments

For Java it would be great to have a version with prebuilt libraries for most common systems (Linux 32/64bit, Windows 64bit, Mac) which will be automatically loaded to enable easy usage and deployment for Java developers.

J0s3f avatar Feb 11 '18 00:02 J0s3f

https://github.com/tdlib/td/issues/5

isopen avatar Mar 01 '18 15:03 isopen

The difference to e.g. building it for C++ development is, that for Java there is no dependency on the compiler version etc. For C++, one wants to build tdlib with the same compiler and same dependencies as the main application. For java, one build of tdlib runs on all systems with same ABI not depending on exact JVM version etc.

So there can be one build that runs on all Windows with 32bit support and one for Linux AMD64.

Also with some additional logic it is possible to load the right library and package all of them in one jar. The goal should be to have a single jar file that "just works" on most systems.

J0s3f avatar Mar 22 '18 13:03 J0s3f