{"action":"created","issue":{"url":"https://api.github.com/repos/selendroid/selendroid/issues/757","labels_url":"https://api.github.com/repos/selendroid/selendroid/issues/757/labels{/name}","comments_url":"https://api.github.com/repos/selendroid/selendroid/issues/757/comments","events_url":"https://api.github.com/repos/selendroid/selendroid/issues/757/events","html_url":"https://github.com/selendroid/selendroid/issues/757","id":52270539,"number":757,"title":"Resigning Error while running: java -jar selendroid-standalone-0.1 2.0-with-dependencies.jar -app selendroid-test-app-0.12.0.apk","user":{"login":"gaurav00504","id":10223804,"avatar_url":"https://avatars.githubusercontent.com/u/10223804?v=3","gravatar_id":"","url":"https://api.github.com/users/gaurav00504","html_url":"https://github.com/gaurav00504","followers_url":"https://api.github.com/users/gaurav00504/followers","following_url":"https://api.github.com/users/gaurav00504/following{/other_user}","gists_url":"https://api.github.com/users/gaurav00504/gists{/gist_id}","starred_url":"https://api.github.com/users/gaurav00504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaurav00504/subscriptions","organizations_url":"https://api.github.com/users/gaurav00504/orgs","repos_url":"https://api.github.com/users/gaurav00504/repos","events_url":"https://api.github.com/users/gaurav00504/events{/privacy}","received_events_url":"https://api.github.com/users/gaurav00504/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-17T17:54:13Z","updated_at":"2015-01-13T09:26:03Z","closed_at":"2014-12-18T12:08:54Z","body":"Please help on this error:\r\n\r\nC:\\Users\\Gaurav\\Desktop\\Workspace\\selendroid>java -jar selendroid-standalone-0.1\r\n2.0-with-dependencies.jar -app selendroid-test-app-0.12.0.apk\r\n################# Selendroid #################\r\n################# Configuration in use #################\r\nio.selendroid.SelendroidConfiguration@2f2c9b19[\r\n  port=4444\r\n  timeoutEmulatorStart=300000\r\n  supportedApps=[selendroid-test-app-0.12.0.apk]\r\n  verbose=false\r\n  emulatorPort=5560\r\n  deviceScreenshot=false\r\n  selendroidServerPort=8080\r\n  keystore=<null>\r\n  keystorePassword=<null>\r\n  keystoreAlias=<null>\r\n  emulatorOptions=<null>\r\n  registrationUrl=<null>\r\n  proxy=<null>\r\n  serverHost=<null>\r\n  keepAdbAlive=false\r\n  noWebViewApp=false\r\n  noClearData=false\r\n  sessionTimeoutSeconds=1800\r\n  forceReinstall=false\r\n  logLevel=ERROR\r\n  deviceLog=true\r\n  serverStartTimeout=20000\r\n  printHelp=false\r\n]\r\nDec 17, 2014 11:16:43 PM io.selendroid.SelendroidLauncher launchServer\r\nINFO: Starting selendroid-server port 4444\r\nDec 17, 2014 11:16:44 PM io.selendroid.io.ShellCommand exec\r\nINFO: executing command: C:\\Users\\Gaurav\\Desktop\\Workspace\\android-sdk-windows\\b\r\nuild-tools\\21.1.2\\aapt.exe remove C:\\Users\\Gaurav\\Desktop\\Workspace\\selendroid\\s\r\nelendroid-test-app-0.12.0.apk META-INF/MANIFEST.MF\r\nDec 17, 2014 11:16:44 PM io.selendroid.io.ShellCommand exec\r\nINFO: executing command: C:\\Users\\Gaurav\\Desktop\\Workspace\\android-sdk-windows\\b\r\nuild-tools\\21.1.2\\aapt.exe remove C:\\Users\\Gaurav\\Desktop\\Workspace\\selendroid\\s\r\nelendroid-test-app-0.12.0.apk META-INF/CERT.RSA\r\nDec 17, 2014 11:16:44 PM io.selendroid.io.ShellCommand exec\r\nINFO: executing command: C:\\Users\\Gaurav\\Desktop\\Workspace\\android-sdk-windows\\b\r\nuild-tools\\21.1.2\\aapt.exe remove C:\\Users\\Gaurav\\Desktop\\Workspace\\selendroid\\s\r\nelendroid-test-app-0.12.0.apk META-INF/CERT.SF\r\nDec 17, 2014 11:16:44 PM io.selendroid.io.ShellCommand exec\r\nINFO: executing command: C:\\Users\\Gaurav\\Desktop\\Workspace\\android-sdk-windows\\b\r\nuild-tools\\21.1.2\\aapt.exe remove C:\\Users\\Gaurav\\Desktop\\Workspace\\selendroid\\s\r\nelendroid-test-app-0.12.0.apk META-INF/ANDROIDD.SF\r\nDec 17, 2014 11:16:44 PM io.selendroid.io.ShellCommand exec\r\nINFO: executing command: C:\\Users\\Gaurav\\Desktop\\Workspace\\android-sdk-windows\\b\r\nuild-tools\\21.1.2\\aapt.exe remove C:\\Users\\Gaurav\\Desktop\\Workspace\\selendroid\\s\r\nelendroid-test-app-0.12.0.apk META-INF/ANDROIDD.RSA\r\nDec 17, 2014 11:16:44 PM io.selendroid.io.ShellCommand exec\r\nINFO: executing command: C:\\Users\\Gaurav\\Desktop\\Workspace\\android-sdk-windows\\b\r\nuild-tools\\21.1.2\\aapt.exe remove C:\\Users\\Gaurav\\Desktop\\Workspace\\selendroid\\s\r\nelendroid-test-app-0.12.0.apk META-INF/NDKEYSTO.SF\r\nDec 17, 2014 11:16:44 PM io.selendroid.io.ShellCommand exec\r\nINFO: executing command: C:\\Users\\Gaurav\\Desktop\\Workspace\\android-sdk-windows\\b\r\nuild-tools\\21.1.2\\aapt.exe remove C:\\Users\\Gaurav\\Desktop\\Workspace\\selendroid\\s\r\nelendroid-test-app-0.12.0.apk META-INF/NDKEYSTO.RSA\r\nDec 17, 2014 11:16:44 PM io.selendroid.io.ShellCommand exec\r\nINFO: executing command: C:\\Program Files\\Java\\jdk1.8.0_25\\bin\\bin\\keytool.exe -\r\ngenkey -v -keystore C:\\Users\\Gaurav\\.android\\debug.keystore -storepass android -\r\nalias androiddebugkey -keypass android -dname CN=Android Debug,O=Android,C=US -s\r\ntoretype JKS -sigalg MD5withRSA -keyalg RSA -validity 9999\r\nDec 17, 2014 11:16:44 PM io.selendroid.SelendroidLauncher launchServer\r\nSEVERE: Error occurred while building server: An error occurred while resigning\r\nthe app 'selendroid-test-app-0.12.0.apk'.\r\nio.selendroid.exceptions.SessionNotCreatedException: An error occurred while res\r\nigning the app 'selendroid-test-app-0.12.0.apk'.\r\n        at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication\r\nsUnderTest(SelendroidStandaloneDriver.java:116)\r\n        at io.selendroid.server.model.SelendroidStandaloneDriver.<init>(Selendro\r\nidStandaloneDriver.java:84)\r\n        at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidS\r\nerver(SelendroidStandaloneServer.java:61)\r\n        at io.selendroid.server.SelendroidStandaloneServer.<init>(SelendroidStan\r\ndaloneServer.java:50)\r\n        at io.selendroid.SelendroidLauncher.launchServer(SelendroidLauncher.java\r\n:64)\r\n        at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:112)\r\nCaused by: io.selendroid.exceptions.ShellCommandException: An error occured whil\r\ne executing shell command: C:\\Program Files\\Java\\jdk1.8.0_25\\bin\\bin\\keytool.exe\r\n -genkey -v -keystore C:\\Users\\Gaurav\\.android\\debug.keystore -storepass android\r\n -alias androiddebugkey -keypass android -dname CN=Android Debug,O=Android,C=US\r\n-storetype JKS -sigalg MD5withRSA -keyalg RSA -validity 9999\r\n        at io.selendroid.io.ShellCommand.exec(ShellCommand.java:49)\r\n        at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendro\r\nidServerBuilder.java:275)\r\n        at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSer\r\nverBuilder.java:153)\r\n        at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication\r\nsUnderTest(SelendroidStandaloneDriver.java:114)\r\n        ... 5 more\r\nCaused by: io.selendroid.exceptions.ShellCommandException:\r\n        ... 9 more\r\nException in thread \"main\" io.selendroid.exceptions.SessionNotCreatedException:\r\nAn error occurred while resigning the app 'selendroid-test-app-0.12.0.apk'.\r\n        at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication\r\nsUnderTest(SelendroidStandaloneDriver.java:116)\r\n        at io.selendroid.server.model.SelendroidStandaloneDriver.<init>(Selendro\r\nidStandaloneDriver.java:84)\r\n        at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidS\r\nerver(SelendroidStandaloneServer.java:61)\r\n        at io.selendroid.server.SelendroidStandaloneServer.<init>(SelendroidStan\r\ndaloneServer.java:50)\r\n        at io.selendroid.SelendroidLauncher.launchServer(SelendroidLauncher.java\r\n:64)\r\n        at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:112)\r\nCaused by: io.selendroid.exceptions.ShellCommandException: An error occured whil\r\ne executing shell command: C:\\Program Files\\Java\\jdk1.8.0_25\\bin\\bin\\keytool.exe\r\n -genkey -v -keystore C:\\Users\\Gaurav\\.android\\debug.keystore -storepass android\r\n -alias androiddebugkey -keypass android -dname CN=Android Debug,O=Android,C=US\r\n-storetype JKS -sigalg MD5withRSA -keyalg RSA -validity 9999\r\n        at io.selendroid.io.ShellCommand.exec(ShellCommand.java:49)\r\n        at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendro\r\nidServerBuilder.java:275)\r\n        at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSer\r\nverBuilder.java:153)\r\n        at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication\r\nsUnderTest(SelendroidStandaloneDriver.java:114)\r\n        ... 5 more\r\nCaused by: io.selendroid.exceptions.ShellCommandException:\r\n        ... 9 more\r\n"},"comment":{"url":"https://api.github.com/repos/selendroid/selendroid/issues/comments/69716809","html_url":"https://github.com/selendroid/selendroid/issues/757#issuecomment-69716809","issue_url":"https://api.github.com/repos/selendroid/selendroid/issues/757","id":69716809,"user":{"login":"operatiay","id":4378133,"avatar_url":"https://avatars.githubusercontent.com/u/4378133?v=3","gravatar_id":"","url":"https://api.github.com/users/operatiay","html_url":"https://github.com/operatiay","followers_url":"https://api.github.com/users/operatiay/followers","following_url":"https://api.github.com/users/operatiay/following{/other_user}","gists_url":"https://api.github.com/users/operatiay/gists{/gist_id}","starred_url":"https://api.github.com/users/operatiay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/operatiay/subscriptions","organizations_url":"https://api.github.com/users/operatiay/orgs","repos_url":"https://api.github.com/users/operatiay/repos","events_url":"https://api.github.com/users/operatiay/events{/privacy}","received_events_url":"https://api.github.com/users/operatiay/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T09:26:03Z","updated_at":"2015-01-13T09:26:03Z","body":"please don't comment on closed issues (especially if it's not your own one.\r\n\r\nhere's a description how to set JAVA_HOME properly in Windows (you can google for it if you don't like this description): https://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows"}}