Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Error- The code editor does not support the Java 8 runtime.

 
Ranch Hand
Posts: 2550
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am creating a hello world lambda function in AWS. I selected runtime as Java8 as java is one of the languages supported for lambda function, but it says The code editor does not support the Java 8 runtime. What can be the issue? thanks.
 
Saloon Keeper
Posts: 13427
302
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems to me that the issue is literally what the error message says: The editor does not support Java 8.
 
Monica Shiralkar
Ranch Hand
Posts: 2550
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. I was thinking that since lambda expressions have suport for Java,Node.js etc , the editor which it uses impicitly also has support for them.I had checked for NodeJS and it was showing the function code.

For Java 8 it creates the function and I can click on test successfully  but I could not see the code it generated. May be I can open it in some other way.Also will check for Java instead of Java 8 too. It is bit surprising that editor doesnt support Java 8 when AWS supports Java programing language.
 
Monica Shiralkar
Ranch Hand
Posts: 2550
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The better way I see to do in Java is by creating a jar using Eclipse Maven project and uploading the jar. Not sure though on why the editor does not support Java 8 despite AWS lambdas supporting Java 8. For now I will learn by doing using Eclipse.
 
Marshal
Posts: 3727
534
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Monica Shiralkar wrote:I am creating a hello world lambda function in AWS ... The code editor does not support the Java 8 runtime. What can be the issue?



https://docs.aws.amazon.com/lambda/latest/dg/code-editor.html wrote:The Lambda console provides a code editor for languages that do not require compiling, such as Node.js or Python.

 
Monica Shiralkar
Ranch Hand
Posts: 2550
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. So that's the reason.

Azure Cloud supports editor for C# too(a language that needs compilations )

So I see that AWS has different behaviour that Azure for a similiar thing.

I am doing it using Java with Eclipse now by uploading the jar.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic