I am trying to run my application in an ec2 instance using the command nohup java –enable-preview my-application.jar But somehow the –enable-preview flag is ignored and i still get an error on startup telling me that i should try running it with the flag –enable-preview. I use amazon’s corretto-17 as the openJDK version. Does corretto-17 not support the –enable-preview flag?
Tag: corretto
Strange error after upgrading JDK 8 to Amazon Corretto 11 on Windows Server 2007
Not sure what this error is all about, but after moving away from the subscription-based Oracle JDK to Amazon Corretto JDK 11 (tried Corretto JDK 8 also), and starting Java at the command line, I get the error below: Tried to research, but cannot find a solution. My fear is that this is an issue with this old Windows Server