I have a jar file that runs locally if I run java -jar jarname.jar. It has one class called Main in no package. How can I run this with AWS Lambda? I have a Lambda set up but it asks for a Handler (see image) and I don't know what I put in there if I just want to run my jar. I get the errors below when the lambda runs with the configuration below.
2021-03-01T09:01:14.126-05:00 START RequestId: 8f7eea07-3931-4c29-b965-7963fce3b64e Version: $LATEST
2021-03-01T09:01:14.128-05:00 Class not found: Main: java.lang.ClassNotFoundException java.lang.ClassNotFoundException: Main at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348)
2021-03-01T09:01:14.154-05:00 END RequestId: 8f7eea07-3931-4c29-b965-7963fce3b64e
2021-03-01T09:01:14.154-05:00
REPORT RequestId: 8f7eea07-3931-4c29-b965-7963fce3b64e Duration: 27.60 ms Billed Duration: 28 ms Memory Size: 128 MB Max Memory Used: 63 MB Init Duration: 36.85 ms
REPORT RequestId: 8f7eea07-3931-4c29-b965-7963fce3b64e Duration: 27.60 ms Billed Duration: 28 ms Memory Size: 128 MB Max Memory Used: 63 MB Init Duration: 36.85 ms
Also, when I tried to upload my jar directly it rejected it so I put it in a zip and it worked.
