question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feedback] amplify mock step fails if Java JDK is not installed

See original GitHub issue

Page: /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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
akshbhucommented, Feb 9, 2021

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

1reaction
janakacommented, Aug 3, 2020

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.

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found