Forum Xamarin Test Cloud (Read Only)
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Xamarin Test Recorder change JDK

Hi,
I'm using Xamarin Test Recorder with Enterprise Subscription on Windows 10.

When trying to start a recording a test:
Editor (with loaded test class) -> Xamarin Test Recorder Icon -> Record new Test -> Select APK -> then selecting .apk file

In the blue status bar following error is given:
Failed connecting to app: Failed to execute: C:\Program Files (x86)\Java\jdk1.8.0_112\bin\keytool.exe -J-Duser.language=en -list -v -alias <alias> -keytore <pathtokeystore> -storepass <storepass> - exit code: 1 Error occured during initialization of VM Unable to use shared archive. An error has occurred while processing the shared archive file. Unable to unmape shared space.

I believe the error is routed in Xamarin Test Recorder executing the 32bit version of keytool.
I have tried running the same command in the windows shell.
When using the 32bit version of keytool the same error happens.
When using the 64bit version (same JDK version) no error is returned.

My question therefore is:
How can I change which JDK (or which keytool) the Xamarin Test Recorder uses?

Thanks a lot for your help.

Best Answer

  • LucasStLucasSt DEMember
    Accepted Answer

    Problem was solved by updating the Java SDK.

Answers

  • LucasStLucasSt DEMember
    Accepted Answer

    Problem was solved by updating the Java SDK.

Sign In or Register to comment.