-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not Able to Compile and Install the themis in windows for Java. #316
Comments
Hello, Sourabh! Thank you Issue template:I have:
Issue descriptionDescribe here the issue that you are experiencing. Environment infoOS: OS name and version Themis version: 0.0.0 Installation way:
Crypto provider: OpenSSL / BoringSSL / LibreSSL (v0.0.0) Link to the example project. . . |
Hello @karenswry I have searched from open and closed issues for duplicates. I am not able to install this on windows10 os.I want to use this library in Java For Encryption and decryption. Environment info Link to project: |
While I am running the jni code. I am facing the error in Line Can you guide me how to fix this issue? Even While I compile in Ubuntu Xenial.I get the build with this libsoter.so,libthemis.so,libthemis.a. Regards |
@sourabhlodha This error means that jni was not built
Have you done |
@vixentael After that I used the jni example to run the code but got the exception Can you guide me how to run a themis with simple example. Thanks |
I tried with set the path of build files in java but facing same error |
Can you please check if you call Step by step guide for Java and Android described below |
I can use this command and it will create libthemis_jni.so but not able to use in java project. |
You said you were getting the same outcome in Ubuntu Xenial. Could you please describe your steps and errors you're getting in Ubuntu? |
@karenswry After that I create a simple java project and copy all files from here Then create a main class Use this code to run. But Facing error I tried by import libthemis_jni.so as jar but it also giving error. Now I am stuck here. Can you share steps what should I do after this? |
Try looking more closely into the following piece of the Themis documentation and see the examples. Also - this is how we compile Themis using Circle CI. |
@karenswry I changed to Now it will show me the error. |
According to error message you got, I think one step you're missing is to provide a library path for compiled Themis library in your project.
Tell me if it helped |
@vixentael |
Which step is causing this error? |
@vixentael |
Okay, so basically you were able to compile
The error log Please specify what OpenSSL version do you use and where is it located. This issue might be helpful. Meanwhile, we have updated example projects for Java and Android. https://github.com/cossacklabs/themis-java-examples Examples were built on MacOS, so You can download |
@vixentael |
@vixentael |
@sourabhlodha |
@karenswry |
We prepared a step-by-step instruction how to install and compile Themis and run example project on Ubuntu Xenial. Most steps are described in Java and Android Howto, however we provide you a necessary explanations for each of them: 1. We installed clean Ubuntu Xenial with java:
2. Download and install JetBrains IDEA as Java IDE
3. Install all dependencies, download and install Themis
4. Download Themis java example project and change
5. Run project in IDEA
6. See successfully compiled up and running Themis java example project: If performing these steps will lead to OpenSSL configuration errors on your system, most likely something is wrong with OpenSSL installation on your system. |
Hi @vixentael Can you share the steps in windows also as It doesn't work in Ubuntu so Let me try with Windows10 64 bit OS. |
We provided a full step-by-step guide for compiling and using Themis on Ubuntu Xenial, as you previously asked. Which step is failing on your side? Themis doesn't have ready-to-use installation command for Windows, you should compile it from sources using GCC. Basically, you have two options: Compiling directly on Windows
Compiling on Ubuntu for Windows x64
If you succeed in compiling |
@sourabhlodha, any updates? |
@vixentael Not able to run in my project. |
Sorry to hear that. Themis Would you mind sharing particular steps that are failing for you either for Windows or for Ubuntu, so we can help you? |
Dear @sourabhlodha, it's a pity that both ways to solve a problem didn't work for you. We will consider this issue closed, but we're happy to answer any questions about our products and libraries if you have them. |
I have:
Read the documentation and follow the same step but not able to install the themis in windows system for Java Version.
Kindly provide me the solution ASAP
Thanks
Sourabh Lodha
The text was updated successfully, but these errors were encountered: