[Feedback] amplify mock step fails if Java JDK is not installed
See original GitHub issuePage: /start/q/integration/react
Feedback:
The command amplify mock api
on the page https://docs.amplify.aws/start/getting-started/data-model/q/integration/react#optional-test-your-api results in an error if the correct Java JDK is not installed.
~ amplify mock api
Failed to start API Mock endpoint Error: max retries hit for starting dynamodb emulator
In my case, this fix worked: https://github.com/aws-amplify/amplify-cli/issues/2062#issuecomment-533700476.
It might make sense to add a note regarding the Java JDK dependency for this step.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Advanced workflows - Mocking and testing - AWS Amplify Docs
Learn how to quickly test and debug without pushing all changes in your Amplify project to the cloud. Use local mocking and testing...
Read more >How To... | TeamCity On-Premises Documentation - JetBrains
The necessary steps to update the Java installation depend on the distribution used. If your TeamCity installation has a bundled JRE (there is ......
Read more >Spring Boot Reference Documentation
Maven Installation. Spring Boot is compatible with Apache Maven 3.3 or above. If you do not already have Maven installed, you can follow...
Read more >Setting up CTS | Android Open Source Project
To run CTS, first prepare your physical environment, your desktop machine, and the Android device you're using for testing.
Read more >Static Application Security Testing (SAST) - GitLab Docs
If any job fails to finish for any reason, the security dashboard does not show SAST scanner output. For example, if the SAST...
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 Free
Top 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
Hi @janaka
Yes Installing JRE will work fine. Here we are checking for java version >= 8 as it is a requirement for DynamoDB local which we are using to mock api.
Closing this issue as it seems to be solved. If you are still stuck after upgrading java version , feel free to comment and Ill reopen this issue again
I get the following error and pop up. Running amplify-cli v4.26.0
Could find any mention of this dependency in pre-reqs etc. presume I don’t actually need the JDK just the runtime. Would be good to have instructions. Not depending on Java would be even better. Java always feels clunky as a tool dependency.