aws-toolkit-jetbrains: Cannot run Helloworld application locally for Java
Describe the bug When ever I try to run the sample Hello world application for java I get an error saying SAM build command failed
To reproduce
-
Create new AWS serverless project File>New>AWS>AWS serverless application: Runtime: java8 SAM Template : AWS SAM Hello World(Maven) Project SDK : 1.8(java version “1.8.0_144”)
-
Go to App.java> Run application
-
Enter configs as:
(Also tried to specify the docker network connected to java image explixitlly)
- Click run
Errors out saying : Sam build command failed
Expected behavior Function to run locally
Screenshots
Also when I right on the template.yml file and run it gives me some other error , Exception in thread "main" java.lang.NoClassDefFoundError: org/testng/TestNG
Your Environment
- OS: Microsoft Windows 10 Home
- JetBrains’ Product: IntelliJ IDEA 2019.1.1 (Ultimate Edition)
- JetBrains’ Product Version: Build #IU-191.6707.61, built on April 16, 2019
- Toolkit Version: v1.3
- SAM CLI Version: SAM CLI, version 0.14.2
- JVM/Python Version: OpenJDK 64-Bit Server VM by JetBrains s.r.o
- JRE: 1.8.0_202-release-1483-b44 amd64
Additional context
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (8 by maintainers)
Sorry, I got focused on the second half of your post.
If you click the icon above the pin (with the > on it) in the build window, you should see more info.