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

  1. 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”)

  2. Go to App.java> Run application AWSToolKit1

  3. Enter configs as: AWSToolKit2

(Also tried to specify the docker network connected to java image explixitlly) AWSToolKit3

  1. Click run

Errors out saying : Sam build command failed

image

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

image

image

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)

Most upvoted comments

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.