{"action":"opened","issue":{"url":"https://api.github.com/repos/VirgilSecurity/virgil-sdk-java-android/issues/8","repository_url":"https://api.github.com/repos/VirgilSecurity/virgil-sdk-java-android","labels_url":"https://api.github.com/repos/VirgilSecurity/virgil-sdk-java-android/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/VirgilSecurity/virgil-sdk-java-android/issues/8/comments","events_url":"https://api.github.com/repos/VirgilSecurity/virgil-sdk-java-android/issues/8/events","html_url":"https://github.com/VirgilSecurity/virgil-sdk-java-android/issues/8","id":171172023,"number":8,"title":"Exception thrown when running main() in EncryptionWithPublicKey.java","user":{"login":"charlesfranciscodev","id":12102640,"avatar_url":"https://avatars.githubusercontent.com/u/12102640?v=3","gravatar_id":"","url":"https://api.github.com/users/charlesfranciscodev","html_url":"https://github.com/charlesfranciscodev","followers_url":"https://api.github.com/users/charlesfranciscodev/followers","following_url":"https://api.github.com/users/charlesfranciscodev/following{/other_user}","gists_url":"https://api.github.com/users/charlesfranciscodev/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesfranciscodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesfranciscodev/subscriptions","organizations_url":"https://api.github.com/users/charlesfranciscodev/orgs","repos_url":"https://api.github.com/users/charlesfranciscodev/repos","events_url":"https://api.github.com/users/charlesfranciscodev/events{/privacy}","received_events_url":"https://api.github.com/users/charlesfranciscodev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-15T13:39:21Z","updated_at":"2016-08-15T13:39:21Z","closed_at":null,"body":"Link: [EncryptionWithPublicKey.java](https://github.com/VirgilSecurity/virgil-sdk-java-android/blob/master/samples/crypto/src/main/java/EncryptionWithPublicKey.java)\r\n\r\nI tried this sample code in an Android project and a Java project but both fail at line 59:\r\n\r\n`\t\tKeyPair keyPair = KeyPairGenerator.generate();`\r\n\r\nStack Trace:\r\n\r\nEnter text to encrypt: \r\ntest\r\n\r\nNative code library failed to load. \r\njava.io.FileNotFoundException: Resource 'windows\\amd64\\virgil_crypto_java' not found\r\nException in thread \"main\" java.lang.UnsatisfiedLinkError: com.virgilsecurity.crypto.virgil_crypto_javaJNI.swig_module_init()V\r\n\tat com.virgilsecurity.crypto.virgil_crypto_javaJNI.swig_module_init(Native Method)\r\n\tat com.virgilsecurity.crypto.virgil_crypto_javaJNI.<clinit>(virgil_crypto_javaJNI.java:408)\r\n\tat com.virgilsecurity.crypto.VirgilKeyPair.generate(VirgilKeyPair.java:52)\r\n\tat com.virgilsecurity.sdk.crypto.KeyPairGenerator.generate(KeyPairGenerator.java:77)\r\n\tat com.virgilsecurity.sdk.crypto.KeyPairGenerator.generate(KeyPairGenerator.java:49)\r\n\tat EncryptionWithPublicKey.main(EncryptionWithPublicKey.java:59)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)"}}
{"actor":{"display_login":"charlesfranciscodev"}}