I can't run " maestro test {path of file yaml} " after install Java for iOS Developer
See original GitHub issueI download java because when run maestro test /Users/paponsupamongkonchai/MaestroYAML/flow_ios_test.yaml
first time log of terminal introduce downlod Java for run command of maestro
Then download and install Java so I run again in terminal maestro test /Users/paponsupamongkonchai/MaestroYAML/flow_ios_test.yaml
it’s show this message about version Java not support in Java version 55.0
=======See Log Below=======
paponsupamongkonchai@Papons-MacBook-Pro ~ % maestro test /Users/paponsupamongkonchai/MaestroYAML/flow_ios_test.yaml
Exception in thread "main" java.lang.UnsupportedClassVersionError: idb/CompanionServiceGrpc has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at ios.idb.IdbIOSDevice.<init>(IdbIOSDevice.kt:58)
at maestro.Maestro$Companion.ios(Maestro.kt:291)
at maestro.Maestro$Companion.ios(Maestro.kt:287)
at maestro.cli.util.MaestroFactory.createIos(MaestroFactory.kt:58)
at maestro.cli.util.MaestroFactory.autoDetectPlatform(MaestroFactory.kt:66)
at maestro.cli.util.MaestroFactory.createMaestro(MaestroFactory.kt:33)
at maestro.cli.command.TestCommand.call(TestCommand.kt:58)
at maestro.cli.command.TestCommand.call(TestCommand.kt:30)
at picocli.CommandLine.executeUserObject(CommandLine.java:1933)
at picocli.CommandLine.access$1200(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
at picocli.CommandLine.execute(CommandLine.java:2058)
at maestro.cli.AppKt.main(App.kt:74)
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
I can't run " maestro test {path of file yaml} " after install Java ...
I can't run " maestro test {path of file yaml} " after install Java for iOS Developer · open terminal · paste brew...
Read more >JARNBOY (Papon) - GitHub
I can't run " maestro test {path of file yaml} " after install Java for iOS Developer ... I download java because when...
Read more >Error running UI tests on device with iOS 16 and xctestrun file
I am able to launch the test directly from xcode, or with the "project" and "scheme" flags and xcodebuild test but I can't...
Read more >Relative path is not working in soring-boot application.yml
I have file under test folder and accessing it in application.yml file but it's not working. FYI: Absolute path for the same is...
Read more >Getting started with Maestro: The new mobile UI testing ...
Maestro supports native (Android and iOS) and cross-platform mobile platforms (Flutter ... 3- Open the yaml file to add the following steps:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Finally I found solution fix this problem by change default java version. you can see solution in this Blog(https://medium.com/miro-engineering/how-to-switch-between-java-lts-versions-8-11-and-17-on-mac-cb6717d1272)
I will show you step by step for another had same issue after you download java.dmg from website .
brew install java
-> until download success -> ok next.brew install openjdk
-> it’s install lastest jdkjava -version
-> if you see old version in my case show version old is1.8.0._
-> ok next.7.when enter done you paste this when install all is success you paste this
Set java_home if you never set for MacOS can select device current youcan see in (https://stackoverflow.com/questions/22842743/how-to-set-java-home-environment-variable-on-mac-os-x-10-9)
ok you restart device Macbook
try run " maestro test {path of file yaml} " again.
Interesting, could you try
brew install java
?