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

Unable to run selendriod server on Windows #1099

Open
madhukar3us opened this Issue Mar 2, 2017 · 8 comments

Comments

Projects
None yet
7 participants
@madhukar3us

madhukar3us commented Mar 2, 2017

C:>java -jar selendroid-standalone-0.17.0-with-dependencies.jar
Mar 02, 2017 10:01:38 AM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Selendroid #################
Mar 02, 2017 10:01:38 AM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Configuration in use #################
Mar 02, 2017 10:01:38 AM io.selendroid.standalone.SelendroidLauncher main
INFO: io.selendroid.standalone.SelendroidConfiguration@87aac27[
port=4444
timeoutEmulatorStart=300000
supportedApps=[]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=
keystorePassword=
keystoreAlias=
emulatorOptions=
keepEmulator=false
registrationUrl=
proxy=
serverHost=
keepAdbAlive=false
maxSession=5
maxInstances=5
registerCycle=0
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
deviceLog=true
serverStartTimeout=20000
printHelp=false
serverStartRetries=5
folder=
deleteTmpFiles=true
]

Mar 02, 2017 9:54:25 AM io.selendroid.standalone.SelendroidLauncher launchServer

INFO: Starting Selendroid standalone on port 4444
Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\madhredd\AppData\Local\Android\sdk\platf
orm-tools\aapt.exe remove C:\Users\madhredd\AppData\Local\Temp\android-driver228
2903612290581868.apk META-INF/MANIFEST.MF
Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--
Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\madhredd\AppData\Local\Android\sdk\platf
orm-tools\aapt.exe remove C:\Users\madhredd\AppData\Local\Temp\android-driver228
2903612290581868.apk META-INF/CERT.RSA
Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--
Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\madhredd\AppData\Local\Android\sdk\platf
orm-tools\aapt.exe remove C:\Users\madhredd\AppData\Local\Temp\android-driver228
2903612290581868.apk META-INF/CERT.SF
Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--
Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\madhredd\AppData\Local\Android\sdk\platf
orm-tools\aapt.exe remove C:\Users\madhredd\AppData\Local\Temp\android-driver228
2903612290581868.apk META-INF/ANDROIDD.SF
Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\madhredd\AppData\Local\Android\sdk\pla
tform-tools\aapt.exe remove C:\Users\madhredd\AppData\Local\Temp\android-driver2
282903612290581868.apk META-INF/ANDROIDD.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:145)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\madhredd\AppData\Local\Android\sdk\platf
orm-tools\aapt.exe remove C:\Users\madhredd\AppData\Local\Temp\android-driver228
2903612290581868.apk META-INF/ANDROIDD.RSA
Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\madhredd\AppData\Local\Android\sdk\pla
tform-tools\aapt.exe remove C:\Users\madhredd\AppData\Local\Temp\android-driver2
282903612290581868.apk META-INF/ANDROIDD.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:146)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\madhredd\AppData\Local\Android\sdk\platf
orm-tools\aapt.exe remove C:\Users\madhredd\AppData\Local\Temp\android-driver228
2903612290581868.apk META-INF/NDKEYSTO.SF
Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\madhredd\AppData\Local\Android\sdk\pla
tform-tools\aapt.exe remove C:\Users\madhredd\AppData\Local\Temp\android-driver2
282903612290581868.apk META-INF/NDKEYSTO.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:147)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\madhredd\AppData\Local\Android\sdk\platf
orm-tools\aapt.exe remove C:\Users\madhredd\AppData\Local\Temp\android-driver228
2903612290581868.apk META-INF/NDKEYSTO.RSA
Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\madhredd\AppData\Local\Android\sdk\pla
tform-tools\aapt.exe remove C:\Users\madhredd\AppData\Local\Temp\android-driver2
282903612290581868.apk META-INF/NDKEYSTO.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:148)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 02, 2017 9:54:25 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files\Java\jdk1.8.0_121\bin\jarsigner.
exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\madhredd\AppData\Loca
l\Temp\resigned-android-driver2282903612290581868.apk -storepass android -keysto
re C:\Users\madhredd.android\debug.keystore C:\Users\madhredd\AppData\Local\Tem
p\android-driver2282903612290581868.apk androiddebugkey
Mar 02, 2017 9:54:26 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->
jar signed.

Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a times
tamp, users may not be able to validate this jar after the signer certificate's
expiration date (2044-07-16) or after any future revocation date.
<--
Mar 02, 2017 9:54:26 AM io.selendroid.standalone.builder.SelendroidServerBuilder
signTestServer
INFO: App signing output: jar signed.

Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a times
tamp, users may not be able to validate this jar after the signer certificate's
expiration date (2044-07-16) or after any future revocation date.
Mar 02, 2017 9:54:26 AM io.selendroid.standalone.builder.SelendroidServerBuilder
signTestServer
INFO: The app has been signed: C:\Users\madhredd\AppData\Local\Temp\resigned-and
roid-driver2282903612290581868.apk
Mar 02, 2017 9:54:28 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\madhredd\AppData\Local\Android\sdk\tools
\android.bat list avds
Mar 02, 2017 9:54:28 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\madhredd\AppData\Local\Android\sdk\too
ls\android.bat list avds
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvai
lableAvds(DefaultAndroidEmulator.java:152)
at io.selendroid.standalone.server.model.DeviceStore.initAndroidDevices(
DeviceStore.java:124)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
AndroidDevices(SelendroidStandaloneDriver.java:185)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:95)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 02, 2017 9:54:28 AM io.selendroid.standalone.SelendroidLauncher launchServer

SEVERE: Error building server: io.selendroid.standalone.exceptions.ShellCommandE
xception: Error executing shell command: C:\Users\madhredd\AppData\Local\Android
\sdk\tools\android.bat list avds
Exception in thread "main" java.lang.RuntimeException: io.selendroid.standalone.
exceptions.AndroidDeviceException: io.selendroid.standalone.exceptions.ShellComm
andException: Error executing shell command: C:\Users\madhredd\AppData\Local\And
roid\sdk\tools\android.bat list avds
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:75)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)
Caused by: io.selendroid.standalone.exceptions.AndroidDeviceException: io.selend
roid.standalone.exceptions.ShellCommandException: Error executing shell command:
C:\Users\madhredd\AppData\Local\Android\sdk\tools\android.bat list avds
at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvai
lableAvds(DefaultAndroidEmulator.java:154)
at io.selendroid.standalone.server.model.DeviceStore.initAndroidDevices(
DeviceStore.java:124)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
AndroidDevices(SelendroidStandaloneDriver.java:185)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:95)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
... 1 more
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error exec
uting shell command: C:\Users\madhredd\AppData\Local\Android\sdk\tools\android.b
at list avds
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:56)
at io.selendroid.standalone.android.impl.DefaultAndroidEmulator.listAvai
lableAvds(DefaultAndroidEmulator.java:152)
... 7 more
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: The "andro
id" command is no longer available.
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use
tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat

    ... 9 more
@ray007

This comment has been minimized.

Show comment
Hide comment
@ray007

ray007 Mar 17, 2017

Same problem here.
Seems the android commands need to be converted to tools\bin\sdkmanager or tools\bin\avdmanager calls.

ray007 commented Mar 17, 2017

Same problem here.
Seems the android commands need to be converted to tools\bin\sdkmanager or tools\bin\avdmanager calls.

@occume

This comment has been minimized.

Show comment
Hide comment
@occume

occume Apr 29, 2017

same problem

occume commented Apr 29, 2017

same problem

@Sanjeewahsp

This comment has been minimized.

Show comment
Hide comment
@Sanjeewahsp

Sanjeewahsp Sep 3, 2017

I have same issue, Is there any solution?

Sanjeewahsp commented Sep 3, 2017

I have same issue, Is there any solution?

@ray007

This comment has been minimized.

Show comment
Hide comment
@ray007

ray007 Sep 13, 2017

I'm now using appium for mobile testing.

ray007 commented Sep 13, 2017

I'm now using appium for mobile testing.

@roopans

This comment has been minimized.

Show comment
Hide comment
@roopans

roopans Feb 19, 2018

D:\selendroid>java -jar selendroid-standalone-0.17.0-with-dependencies.jar -app selendroid-test-app-0.17.0.apk
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Selendroid #################
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Configuration in use #################
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.SelendroidLauncher main
INFO: io.selendroid.standalone.SelendroidConfiguration@1ab7765[
port=4444
timeoutEmulatorStart=300000
supportedApps=[selendroid-test-app-0.17.0.apk]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=
keystorePassword=
keystoreAlias=
emulatorOptions=
keepEmulator=false
registrationUrl=
proxy=
serverHost=
keepAdbAlive=false
maxSession=5
maxInstances=5
registerCycle=0
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
deviceLog=true
serverStartTimeout=20000
printHelp=false
serverStartRetries=5
folder=
deleteTmpFiles=true
]
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.SelendroidLauncher launchServer
INFO: Starting Selendroid standalone on port 4444
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/MANIFEST.MF
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/MANIFEST.MF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:142)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/CERT.RSA
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/CERT.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:143)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/CERT.SF
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/CERT.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:144)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.SF
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:145)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.RSA
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:146)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.SF
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:147)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.RSA
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:148)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files (x86)\Java\jre1.8.0_161\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar D:\selendroid\resigned-selendroid-test-app-0.17.0.apk -storepass android -keystore C:\Users\admin1.android\debug.keystore D:\selendroid\selendroid-test-app-0.17.0.apk androiddebugkey
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Program Files (x86)\Java\jre1.8.0_161\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar D:\selendroid\resigned-selendroid-test-app-0.17.0.apk -storepass android -keystore C:\Users\admin1.android\debug.keystore D:\selendroid\selendroid-test-app-0.17.0.apk androiddebugkey
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.builder.SelendroidServerBuilder.signTestServer(SelendroidServerBuilder.java:296)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:154)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.SelendroidLauncher launchServer
SEVERE: Error building server: An error occurred while resigning the app 'selendroid-test-app-0.17.0.apk'.
Exception in thread "main" io.selendroid.server.common.exceptions.SessionNotCreatedException: An error occurred while resigning the app 'selendroid-test-app-0.17.0.apk'.
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:124)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: C:\Program Files (x86)\Java\jre1.8.0_161\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar D:\selendroid\resigned-selendroid-test-app-0.17.0.apk -storepass android -keystore C:\Users\admin1.android\debug.keystore D:\selendroid\selendroid-test-app-0.17.0.apk androiddebugkey
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:56)
at io.selendroid.standalone.builder.SelendroidServerBuilder.signTestServer(SelendroidServerBuilder.java:296)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:154)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
... 6 more
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error: Could not find or load main class sun.security.tools.jarsigner.Main

    ... 10 more

Facing same error..can you please anyone resolve it?

roopans commented Feb 19, 2018

D:\selendroid>java -jar selendroid-standalone-0.17.0-with-dependencies.jar -app selendroid-test-app-0.17.0.apk
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Selendroid #################
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Configuration in use #################
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.SelendroidLauncher main
INFO: io.selendroid.standalone.SelendroidConfiguration@1ab7765[
port=4444
timeoutEmulatorStart=300000
supportedApps=[selendroid-test-app-0.17.0.apk]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=
keystorePassword=
keystoreAlias=
emulatorOptions=
keepEmulator=false
registrationUrl=
proxy=
serverHost=
keepAdbAlive=false
maxSession=5
maxInstances=5
registerCycle=0
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
deviceLog=true
serverStartTimeout=20000
printHelp=false
serverStartRetries=5
folder=
deleteTmpFiles=true
]
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.SelendroidLauncher launchServer
INFO: Starting Selendroid standalone on port 4444
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/MANIFEST.MF
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/MANIFEST.MF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:142)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/CERT.RSA
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/CERT.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:143)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/CERT.SF
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/CERT.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:144)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.SF
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:145)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.RSA
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/ANDROIDD.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:146)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.SF
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:147)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.RSA
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\admin1\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe remove D:\selendroid\selendroid-test-app-0.17.0.apk META-INF/NDKEYSTO.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:148)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files (x86)\Java\jre1.8.0_161\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar D:\selendroid\resigned-selendroid-test-app-0.17.0.apk -storepass android -keystore C:\Users\admin1.android\debug.keystore D:\selendroid\selendroid-test-app-0.17.0.apk androiddebugkey
Feb 19, 2018 7:25:43 AM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Program Files (x86)\Java\jre1.8.0_161\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar D:\selendroid\resigned-selendroid-test-app-0.17.0.apk -storepass android -keystore C:\Users\admin1.android\debug.keystore D:\selendroid\selendroid-test-app-0.17.0.apk androiddebugkey
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.builder.SelendroidServerBuilder.signTestServer(SelendroidServerBuilder.java:296)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:154)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

Feb 19, 2018 7:25:43 AM io.selendroid.standalone.SelendroidLauncher launchServer
SEVERE: Error building server: An error occurred while resigning the app 'selendroid-test-app-0.17.0.apk'.
Exception in thread "main" io.selendroid.server.common.exceptions.SessionNotCreatedException: An error occurred while resigning the app 'selendroid-test-app-0.17.0.apk'.
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:124)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(SelendroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error executing shell command: C:\Program Files (x86)\Java\jre1.8.0_161\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar D:\selendroid\resigned-selendroid-test-app-0.17.0.apk -storepass android -keystore C:\Users\admin1.android\debug.keystore D:\selendroid\selendroid-test-app-0.17.0.apk androiddebugkey
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:56)
at io.selendroid.standalone.builder.SelendroidServerBuilder.signTestServer(SelendroidServerBuilder.java:296)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:154)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
... 6 more
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error: Could not find or load main class sun.security.tools.jarsigner.Main

    ... 10 more

Facing same error..can you please anyone resolve it?

@prasadsagittarious

This comment has been minimized.

Show comment
Hide comment
@prasadsagittarious

prasadsagittarious Mar 13, 2018

I am facing the below error:

D:\Prasad's Data\Applications\Guru99>java -jar selendroid-standalone-0.11.0-with
-dependencies.jar
################# Selendroid #################
################# Configuration in use #################
io.selendroid.SelendroidConfiguration@19469ea2[
port=4444
timeoutEmulatorStart=300000
supportedApps=[]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=
emulatorOptions=
registrationUrl=
proxy=
serverHost=
keepAdbAlive=false
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
]
Mar 13, 2018 4:03:51 PM io.selendroid.SelendroidLauncher launchServer
INFO: Starting selendroid-server port 4444
Mar 13, 2018 4:03:52 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/MANIFEST.MF
Mar 13, 2018 4:03:52 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/CERT.RSA
Mar 13, 2018 4:03:52 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/CERT.SF
Mar 13, 2018 4:03:52 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/ANDROIDD.SF
Mar 13, 2018 4:03:53 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/ANDROIDD.RSA
Mar 13, 2018 4:03:53 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/NDKEYSTO.SF
Mar 13, 2018 4:03:53 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/NDKEYSTO.RSA
Mar 13, 2018 4:03:54 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigner.exe -s
igalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppData\Loca
l\Temp\resigned-android-driver5963366827784765749.apk -storepass android -keysto
re C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil08\AppDa
ta\Local\Temp\android-driver5963366827784765749.apk androiddebugkey
Mar 13, 2018 4:03:54 PM io.selendroid.SelendroidLauncher launchServer
SEVERE: Error occurred while building server: io.selendroid.exceptions.ShellComm
andException: An error occured while executing shell command: C:\Program Files\J
ava\jre1.8.0_131\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar
C:\Users\Prasad_Patil08\AppData\Local\Temp\resigned-android-driver5963366827784
765749.apk -storepass android -keystore C:\Users\Prasad_Patil08.android\debug.k
eystore C:\Users\Prasad_Patil08\AppData\Local\Temp\android-driver596336682778476
5749.apk androiddebugkey
java.lang.RuntimeException: io.selendroid.exceptions.ShellCommandException: An e
rror occured while executing shell command: C:\Program Files\Java\jre1.8.0_131\b
in\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_P
atil08\AppData\Local\Temp\resigned-android-driver5963366827784765749.apk -storep
ass android -keystore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\P
rasad_Patil08\AppData\Local\Temp\android-driver5963366827784765749.apk androidde
bugkey
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:144)
at io.selendroid.server.model.SelendroidStandaloneDriver.(Selendro
idStandaloneDriver.java:82)
at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidS
erver(SelendroidStandaloneServer.java:61)
at io.selendroid.server.SelendroidStandaloneServer.(SelendroidStan
daloneServer.java:50)
at io.selendroid.SelendroidLauncher.launchServer(SelendroidLauncher.java
:49)
at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:105)
Caused by: io.selendroid.exceptions.ShellCommandException: An error occured whil
e executing shell command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigner.exe
-sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppData\Lo
cal\Temp\resigned-android-driver5963366827784765749.apk -storepass android -keys
tore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil08\App
Data\Local\Temp\android-driver5963366827784765749.apk androiddebugkey
at io.selendroid.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendro
idServerBuilder.java:274)
at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSer
verBuilder.java:134)
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:140)
... 5 more
Caused by: io.selendroid.exceptions.ShellCommandException: Error: Could not find
or load main class sun.security.tools.jarsigner.Main

... 9 more

Exception in thread "main" java.lang.RuntimeException: io.selendroid.exceptions.
ShellCommandException: An error occured while executing shell command: C:\Progra
m Files\Java\jre1.8.0_131\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -
signedjar C:\Users\Prasad_Patil08\AppData\Local\Temp\resigned-android-driver5963
366827784765749.apk -storepass android -keystore C:\Users\Prasad_Patil08.androi
d\debug.keystore C:\Users\Prasad_Patil08\AppData\Local\Temp\android-driver596336
6827784765749.apk androiddebugkey
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:144)
at io.selendroid.server.model.SelendroidStandaloneDriver.(Selendro
idStandaloneDriver.java:82)
at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidS
erver(SelendroidStandaloneServer.java:61)
at io.selendroid.server.SelendroidStandaloneServer.(SelendroidStan
daloneServer.java:50)
at io.selendroid.SelendroidLauncher.launchServer(SelendroidLauncher.java
:49)
at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:105)
Caused by: io.selendroid.exceptions.ShellCommandException: An error occured whil
e executing shell command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigner.exe
-sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppData\Lo
cal\Temp\resigned-android-driver5963366827784765749.apk -storepass android -keys
tore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil08\App
Data\Local\Temp\android-driver5963366827784765749.apk androiddebugkey
at io.selendroid.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendro
idServerBuilder.java:274)
at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSer
verBuilder.java:134)
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:140)
... 5 more
Caused by: io.selendroid.exceptions.ShellCommandException: Error: Could not find
or load main class sun.security.tools.jarsigner.Main

... 9 more

D:\Prasad's Data\Applications\Guru99>

Please let me know what should i do?

Regards,
Prasad

prasadsagittarious commented Mar 13, 2018

I am facing the below error:

D:\Prasad's Data\Applications\Guru99>java -jar selendroid-standalone-0.11.0-with
-dependencies.jar
################# Selendroid #################
################# Configuration in use #################
io.selendroid.SelendroidConfiguration@19469ea2[
port=4444
timeoutEmulatorStart=300000
supportedApps=[]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=
emulatorOptions=
registrationUrl=
proxy=
serverHost=
keepAdbAlive=false
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
]
Mar 13, 2018 4:03:51 PM io.selendroid.SelendroidLauncher launchServer
INFO: Starting selendroid-server port 4444
Mar 13, 2018 4:03:52 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/MANIFEST.MF
Mar 13, 2018 4:03:52 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/CERT.RSA
Mar 13, 2018 4:03:52 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/CERT.SF
Mar 13, 2018 4:03:52 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/ANDROIDD.SF
Mar 13, 2018 4:03:53 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/ANDROIDD.RSA
Mar 13, 2018 4:03:53 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/NDKEYSTO.SF
Mar 13, 2018 4:03:53 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk\build
-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\android
-driver5963366827784765749.apk META-INF/NDKEYSTO.RSA
Mar 13, 2018 4:03:54 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigner.exe -s
igalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppData\Loca
l\Temp\resigned-android-driver5963366827784765749.apk -storepass android -keysto
re C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil08\AppDa
ta\Local\Temp\android-driver5963366827784765749.apk androiddebugkey
Mar 13, 2018 4:03:54 PM io.selendroid.SelendroidLauncher launchServer
SEVERE: Error occurred while building server: io.selendroid.exceptions.ShellComm
andException: An error occured while executing shell command: C:\Program Files\J
ava\jre1.8.0_131\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar
C:\Users\Prasad_Patil08\AppData\Local\Temp\resigned-android-driver5963366827784
765749.apk -storepass android -keystore C:\Users\Prasad_Patil08.android\debug.k
eystore C:\Users\Prasad_Patil08\AppData\Local\Temp\android-driver596336682778476
5749.apk androiddebugkey
java.lang.RuntimeException: io.selendroid.exceptions.ShellCommandException: An e
rror occured while executing shell command: C:\Program Files\Java\jre1.8.0_131\b
in\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_P
atil08\AppData\Local\Temp\resigned-android-driver5963366827784765749.apk -storep
ass android -keystore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\P
rasad_Patil08\AppData\Local\Temp\android-driver5963366827784765749.apk androidde
bugkey
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:144)
at io.selendroid.server.model.SelendroidStandaloneDriver.(Selendro
idStandaloneDriver.java:82)
at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidS
erver(SelendroidStandaloneServer.java:61)
at io.selendroid.server.SelendroidStandaloneServer.(SelendroidStan
daloneServer.java:50)
at io.selendroid.SelendroidLauncher.launchServer(SelendroidLauncher.java
:49)
at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:105)
Caused by: io.selendroid.exceptions.ShellCommandException: An error occured whil
e executing shell command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigner.exe
-sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppData\Lo
cal\Temp\resigned-android-driver5963366827784765749.apk -storepass android -keys
tore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil08\App
Data\Local\Temp\android-driver5963366827784765749.apk androiddebugkey
at io.selendroid.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendro
idServerBuilder.java:274)
at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSer
verBuilder.java:134)
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:140)
... 5 more
Caused by: io.selendroid.exceptions.ShellCommandException: Error: Could not find
or load main class sun.security.tools.jarsigner.Main

... 9 more

Exception in thread "main" java.lang.RuntimeException: io.selendroid.exceptions.
ShellCommandException: An error occured while executing shell command: C:\Progra
m Files\Java\jre1.8.0_131\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -
signedjar C:\Users\Prasad_Patil08\AppData\Local\Temp\resigned-android-driver5963
366827784765749.apk -storepass android -keystore C:\Users\Prasad_Patil08.androi
d\debug.keystore C:\Users\Prasad_Patil08\AppData\Local\Temp\android-driver596336
6827784765749.apk androiddebugkey
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:144)
at io.selendroid.server.model.SelendroidStandaloneDriver.(Selendro
idStandaloneDriver.java:82)
at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidS
erver(SelendroidStandaloneServer.java:61)
at io.selendroid.server.SelendroidStandaloneServer.(SelendroidStan
daloneServer.java:50)
at io.selendroid.SelendroidLauncher.launchServer(SelendroidLauncher.java
:49)
at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:105)
Caused by: io.selendroid.exceptions.ShellCommandException: An error occured whil
e executing shell command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigner.exe
-sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppData\Lo
cal\Temp\resigned-android-driver5963366827784765749.apk -storepass android -keys
tore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil08\App
Data\Local\Temp\android-driver5963366827784765749.apk androiddebugkey
at io.selendroid.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendro
idServerBuilder.java:274)
at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSer
verBuilder.java:134)
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:140)
... 5 more
Caused by: io.selendroid.exceptions.ShellCommandException: Error: Could not find
or load main class sun.security.tools.jarsigner.Main

... 9 more

D:\Prasad's Data\Applications\Guru99>

Please let me know what should i do?

Regards,
Prasad

@alexcomsa

This comment has been minimized.

Show comment
Hide comment
@alexcomsa
Contributor

alexcomsa commented Mar 13, 2018

@prasadsagittarious

This comment has been minimized.

Show comment
Hide comment
@prasadsagittarious

prasadsagittarious Mar 13, 2018

@alexcomsa Tried with above selendroid standalone 0.17.0.jar, getting below error now -
Can you please take a look again, Appreciate your help.

D:\Prasad's Data\Applications\Guru99>java -jar selendroid-standalone-0.17.0-with
-dependencies.jar
Mar 13, 2018 5:06:15 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Selendroid #################
Mar 13, 2018 5:06:15 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Configuration in use #################
Mar 13, 2018 5:06:15 PM io.selendroid.standalone.SelendroidLauncher main
INFO: io.selendroid.standalone.SelendroidConfiguration@87aac27[
port=4444
timeoutEmulatorStart=300000
supportedApps=[]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=
keystorePassword=
keystoreAlias=
emulatorOptions=
keepEmulator=false
registrationUrl=
proxy=
serverHost=
keepAdbAlive=false
maxSession=5
maxInstances=5
registerCycle=0
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
deviceLog=true
serverStartTimeout=20000
printHelp=false
serverStartRetries=5
folder=
deleteTmpFiles=true
]
Mar 13, 2018 5:06:15 PM io.selendroid.standalone.SelendroidLauncher launchServer

INFO: Starting Selendroid standalone on port 4444
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/MANIFEST.MF
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/CERT.RSA
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/CERT.SF
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/ANDROIDD.SF
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\S
dk\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp
\android-driver6222189886381623328.apk META-INF/ANDROIDD.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:145)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/ANDROIDD.RSA
Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\S
dk\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp
\android-driver6222189886381623328.apk META-INF/ANDROIDD.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:146)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/NDKEYSTO.SF
Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\S
dk\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp
\android-driver6222189886381623328.apk META-INF/NDKEYSTO.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:147)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/NDKEYSTO.RSA
Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\S
dk\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp
\android-driver6222189886381623328.apk META-INF/NDKEYSTO.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:148)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigner.
exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppDat
a\Local\Temp\resigned-android-driver6222189886381623328.apk -storepass android -
keystore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil08
\AppData\Local\Temp\android-driver6222189886381623328.apk androiddebugkey
Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigne
r.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppD
ata\Local\Temp\resigned-android-driver6222189886381623328.apk -storepass android
-keystore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil
08\AppData\Local\Temp\android-driver6222189886381623328.apk androiddebugkey
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.builder.SelendroidServerBuilder.signTestServ
er(SelendroidServerBuilder.java:296)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:154)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 13, 2018 5:06:18 PM io.selendroid.standalone.SelendroidLauncher launchServer

SEVERE: Error building server: io.selendroid.standalone.exceptions.ShellCommandE
xception: Error executing shell command: C:\Program Files\Java\jre1.8.0_131\bin
jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Pati
l08\AppData\Local\Temp\resigned-android-driver6222189886381623328.apk -storepass
android -keystore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Pras
ad_Patil08\AppData\Local\Temp\android-driver6222189886381623328.apk androiddebug
key
Exception in thread "main" java.lang.RuntimeException: io.selendroid.standalone.
exceptions.ShellCommandException: Error executing shell command: C:\Program File
s\Java\jre1.8.0_131\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signed
jar C:\Users\Prasad_Patil08\AppData\Local\Temp\resigned-android-driver6222189886
381623328.apk -storepass android -keystore C:\Users\Prasad_Patil08.android\debu
g.keystore C:\Users\Prasad_Patil08\AppData\Local\Temp\android-driver622218988638
1623328.apk androiddebugkey
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:175)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error exec
uting shell command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigner.exe -sigal
g MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppData\Local\Te
mp\resigned-android-driver6222189886381623328.apk -storepass android -keystore C
:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil08\AppData\L
ocal\Temp\android-driver6222189886381623328.apk androiddebugkey
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:56)
at io.selendroid.standalone.builder.SelendroidServerBuilder.signTestServ
er(SelendroidServerBuilder.java:296)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:154)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
... 5 more
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error: Cou
ld not find or load main class sun.security.tools.jarsigner.Main

    ... 9 more

D:\Prasad's Data\Applications\Guru99>

prasadsagittarious commented Mar 13, 2018

@alexcomsa Tried with above selendroid standalone 0.17.0.jar, getting below error now -
Can you please take a look again, Appreciate your help.

D:\Prasad's Data\Applications\Guru99>java -jar selendroid-standalone-0.17.0-with
-dependencies.jar
Mar 13, 2018 5:06:15 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Selendroid #################
Mar 13, 2018 5:06:15 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Configuration in use #################
Mar 13, 2018 5:06:15 PM io.selendroid.standalone.SelendroidLauncher main
INFO: io.selendroid.standalone.SelendroidConfiguration@87aac27[
port=4444
timeoutEmulatorStart=300000
supportedApps=[]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=
keystorePassword=
keystoreAlias=
emulatorOptions=
keepEmulator=false
registrationUrl=
proxy=
serverHost=
keepAdbAlive=false
maxSession=5
maxInstances=5
registerCycle=0
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
deviceLog=true
serverStartTimeout=20000
printHelp=false
serverStartRetries=5
folder=
deleteTmpFiles=true
]
Mar 13, 2018 5:06:15 PM io.selendroid.standalone.SelendroidLauncher launchServer

INFO: Starting Selendroid standalone on port 4444
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/MANIFEST.MF
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/CERT.RSA
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/CERT.SF
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/ANDROIDD.SF
Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\S
dk\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp
\android-driver6222189886381623328.apk META-INF/ANDROIDD.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:145)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 13, 2018 5:06:16 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/ANDROIDD.RSA
Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\S
dk\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp
\android-driver6222189886381623328.apk META-INF/ANDROIDD.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:146)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/NDKEYSTO.SF
Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\S
dk\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp
\android-driver6222189886381623328.apk META-INF/NDKEYSTO.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:147)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\Prasad_Patil08\AppData\Local\Android\Sdk
\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp\a
ndroid-driver6222189886381623328.apk META-INF/NDKEYSTO.RSA
Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\Prasad_Patil08\AppData\Local\Android\S
dk\build-tools\27.0.3\aapt.exe remove C:\Users\Prasad_Patil08\AppData\Local\Temp
\android-driver6222189886381623328.apk META-INF/NDKEYSTO.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFro
mWithinApk(DefaultAndroidApp.java:112)
at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFr
omAppSilently(SelendroidServerBuilder.java:133)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:148)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigner.
exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppDat
a\Local\Temp\resigned-android-driver6222189886381623328.apk -storepass android -
keystore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil08
\AppData\Local\Temp\android-driver6222189886381623328.apk androiddebugkey
Mar 13, 2018 5:06:17 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigne
r.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppD
ata\Local\Temp\resigned-android-driver6222189886381623328.apk -storepass android
-keystore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil
08\AppData\Local\Temp\android-driver6222189886381623328.apk androiddebugkey
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut
or.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:
147)
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.standalone.builder.SelendroidServerBuilder.signTestServ
er(SelendroidServerBuilder.java:296)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:154)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)

Mar 13, 2018 5:06:18 PM io.selendroid.standalone.SelendroidLauncher launchServer

SEVERE: Error building server: io.selendroid.standalone.exceptions.ShellCommandE
xception: Error executing shell command: C:\Program Files\Java\jre1.8.0_131\bin
jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Pati
l08\AppData\Local\Temp\resigned-android-driver6222189886381623328.apk -storepass
android -keystore C:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Pras
ad_Patil08\AppData\Local\Temp\android-driver6222189886381623328.apk androiddebug
key
Exception in thread "main" java.lang.RuntimeException: io.selendroid.standalone.
exceptions.ShellCommandException: Error executing shell command: C:\Program File
s\Java\jre1.8.0_131\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signed
jar C:\Users\Prasad_Patil08\AppData\Local\Temp\resigned-android-driver6222189886
381623328.apk -storepass android -keystore C:\Users\Prasad_Patil08.android\debu
g.keystore C:\Users\Prasad_Patil08\AppData\Local\Temp\android-driver622218988638
1623328.apk androiddebugkey
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:175)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.(SelendroidStandaloneDriver.java:94)
at io.selendroid.standalone.server.SelendroidStandaloneServer.initialize
SelendroidServer(SelendroidStandaloneServer.java:63)
at io.selendroid.standalone.server.SelendroidStandaloneServer.(Sel
endroidStandaloneServer.java:52)
at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLa
uncher.java:65)
at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.j
ava:117)
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error exec
uting shell command: C:\Program Files\Java\jre1.8.0_131\bin\jarsigner.exe -sigal
g MD5withRSA -digestalg SHA1 -signedjar C:\Users\Prasad_Patil08\AppData\Local\Te
mp\resigned-android-driver6222189886381623328.apk -storepass android -keystore C
:\Users\Prasad_Patil08.android\debug.keystore C:\Users\Prasad_Patil08\AppData\L
ocal\Temp\android-driver6222189886381623328.apk androiddebugkey
at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:56)
at io.selendroid.standalone.builder.SelendroidServerBuilder.signTestServ
er(SelendroidServerBuilder.java:296)
at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(Se
lendroidServerBuilder.java:154)
at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.init
ApplicationsUnderTest(SelendroidStandaloneDriver.java:172)
... 5 more
Caused by: io.selendroid.standalone.exceptions.ShellCommandException: Error: Cou
ld not find or load main class sun.security.tools.jarsigner.Main

    ... 9 more

D:\Prasad's Data\Applications\Guru99>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment