Questions tagged [corretto]
Amazon Corretto is a no-cost, multiplatform, production-ready distribution of the Open Java Development Kit (OpenJDK)
79
questions
-1
votes
1
answer
50
views
How to recognize Java in CMD [closed]
After installing Java Corretto 17 from Java 8, java-version is not recognized in CMD. Prior java projects are not compiling in my IDE.
I uninstalled prior JDK 8 and installed Corretto. I updated the ...
0
votes
2
answers
59
views
OpenJdk LTS vs AWS Corretto - both offer LTS, Corretto seam to be 4 yrs behind?
I understand differences btw Oracle Jdk, OpenJdk, AWS Corretto.
I know AWS team maintains Corretto, gives long term support for free but OpenJDK also has LTS support (8, 11, 17, ..) so other than ...
0
votes
0
answers
32
views
Can't connect to X11 window server using ':0' error when building Docker image on EC2
I'm attempting to build a Docker image to provision this software: https://fragpipe.nesvilab.org/docs/tutorial_setup_fragpipe.html
This is my Dockerfile in its current state:
FROM amazonlinux:2022
ENV ...
0
votes
0
answers
31
views
Enum in string template is converted to enum name on some machines, and a class representation on AWS
I have a test that verifies an enum is correctly encoded in a String. Locally the test passes, but when it runs in AWS CodeBuild it fails, as the string value is different! I am very confused.
Here is ...
0
votes
0
answers
16
views
How to elevate run time java in Amazon-EC2 instance?
I have been trying to run docker image of my code in an Amazon EC2 instance but what I got was an error with a message "Unsupported major.minor version 52.0". Therefore, I installed Amazon ...
0
votes
1
answer
172
views
Unable to run jar file with --enable-preview flag when using corretto 17
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 ...
-1
votes
2
answers
275
views
How to know if mac platform is macOSx64 or macOSaarch64
I am trying to download JDK from Amazon Corretto https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html. There are 2 download links for macOS (macOSx64 or macOSaarch64) but I ...
0
votes
0
answers
91
views
How to make my executable jar always open in javaw.exe
Hi so I don’t know much about the javaw.exe runtime vs the (what I’m guessing is default) Java.exe
I recently figured out I need my executable jar to run in javaw.exe to do what I want but I have no ...
0
votes
0
answers
2k
views
Build corretto-java11 alpine image using Dockerfile for arm64(MacOS-M1) configuration
I am trying to build the arm64 image of java11 with the help of Dockerfile as follows:
FROM alpine:3.14
ARG version=11.0.15.9.1
RUN wget -O /THIRD-PARTY-LICENSES-20200824.tar.gz https://...
-2
votes
1
answer
112
views
Does Amazon Corretto use the Corretto Crypto Provider by default?
They don't list it in the FAQ but does Amazon Corretto use the Corretto Crypto Provider by default?
10
votes
2
answers
6k
views
Why does jaxb2-maven-plugin xjc fail with Corretto jdk11.0.15_9 but not with Temurin jdk-11.0.14.1+1
Since upgrading my jdk to Corretto jdk11.0.15_9 the xjc goal of jaxb2-maven-plugin fails.
The problem doesn't manifest when running with Temurin jdk-11.0.14.1+1. I'm running it on windows 10 with ...
1
vote
1
answer
121
views
How can I suppress java 11 warning about retrofit2 platform for Rundeck 3.4.10 and RD CLI
We have a Windows 2016 server with Rundeck 3.4.10 and recently had to upgrade to Corretto OpenJDK 11. Only now any RD command get's an error of the following which makes it very difficult to see the ...
1
vote
0
answers
304
views
What is the difference of openjdk 11 vs Amazon Corretto 11 in 2022?
What is the difference between those? Which one should we choose if we have our servers in aws?
There is 3 vulnerabilities in corretto version that does not exist in openjdk version. So can we assume ...
1
vote
2
answers
3k
views
Java on VSCode Extension Pack for Java can't detect jdk
I am trying to run java on vscode however the 'Extension Pack for Java' keeps asking me to redownload the jdk. I am able to run java on intellij and have been using that but since I use vscode for ...
0
votes
1
answer
502
views
Can I programmatically detect if Corretto Java is installed and which version?
Amazon Corretto is a replacement to Oracle JRE/JDK.
Is there a way to detect if Corretto is installed (on windows machine) programmatically and if installed - which version ?
-3
votes
1
answer
2k
views
Not able to switch the Java version to Java 17
Posting again since someone moved my question a community where there is not much activity and the solution provided there in the comment did not work.
I have installed Amazon Corretto Java 17 from ...
2
votes
1
answer
457
views
Can JARs be uploaded successfully to AWS Elastic Beanstalk from the AWS web UI?
I'm trying to build a basic Spring Boot Java web app and deploy it to AWS Elastic Beanstalk (EB). Most tutorials I've read suggest uploading a JAR when creating an application, however, I'm unable to ...
0
votes
0
answers
3k
views
Spring Boot fails to start up: Could not generate CGLIB subclass of class BasicErrorController
I'm upgrading our Spring-Boot application (2.5.6) to use Java 17 and we are going from amazoncorretto:11-al2-jdk to amazoncorretto:17-al2-jdk which uses a distribution of OpenJDK 17.
After bumping our ...
0
votes
1
answer
168
views
Images not loading after creating Jar
im wring a simple program and my images load in fine in the project but as soon as i export it into a jar file none of them load. i have little to no experiance creating artifacts or jar files.
...
1
vote
1
answer
650
views
Unable to Deploy Spring Boot Application in AWS Elastic Beanstalk
I've seen this question asked on this site throughout the years, but none of the solutions have worked for me. I'm attempting to launch a spring boot application using AWS Elastic Beanstalk. I am ...
0
votes
1
answer
595
views
AWS Corretto Garbage Collection parameters
I have recently migrated one of my project to use AWS Corretto 11 instead of open JDK.I would like to understand Garbage Collection parameters of AWS Corretto 11. Can someone please share my right ...
1
vote
1
answer
357
views
Nifi Registry 0.8 throws java.lang.IllegalStateException: Unable to load cache item
I am trying to run Nifi Registry 0.8 on Windows Server 2019 using Amazon Corretto 15. I am aware that Nifi Registry is not officially support on Windows but some sources say it should run. Nifi ...
0
votes
1
answer
509
views
Spring MVC application is not working with latest Java 11 version (Amazon corretto 11 [11.0.11.9.1])
I am working on Java upgrade version task with Spring MVC application. We are upgrading application from Java 8 to 11 and it works fine.
The application works fine with version Java 11 (Amazon ...
0
votes
1
answer
223
views
JRE for Pentaho Data Integration Tool (Kettle - Version 8.2)
Does Pentaho Data Integration Tool (Kettle - Version 8.2) run on Amazon Corretto JRE (or) does it specifically require Oracle JRE?
2
votes
1
answer
1k
views
How to use Amazon Corretto JDK with Github Actions?
I have a Github Java project that uses Amazon Corretto 11.
But I am not able to write a Github action so that workflow would build the project at every pull request.
For example, with OpenJDK it would ...
0
votes
1
answer
562
views
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 ...
0
votes
0
answers
179
views
Tomcat 8.5.35 server won't start due to java.lang.NoClassDefFoundError
I am getting the following error when trying to start a tomcat server. I have the Amazon Corretto 8 JDK installed on a mac machine. I have also tried using Java 8u291 but I get the same exact error.
...
0
votes
2
answers
784
views
Enable JMX port Amazon Java cerretto
I am trying to enable jmx port on amazon corretto (amazon-corretto-11.0.5.10.1-linux-x64). MyJVM has the following JVM arguments
"-Dcom.sun.management.jmxremote=true"
"-Dcom.sun....
3
votes
1
answer
1k
views
spring boot microservice consumes a lot of memory in container deployed in ecs aws
I have a microservice in spring boot which is deployed in a container with corretto 11 in ECS.
The component is deployed with 512MB and its initial consumption is close to 50%, as traffic increases, ...
-4
votes
1
answer
294
views
Does Oracle own JRE and do I need a AWS account to use Corretto? [closed]
Does Oracle own JRE(the technology) and do I need a AWS account to use Amazon Corretto? Also, what is the signature verification offered by Amazon on the Corretto download page? Do I need it?
2
votes
0
answers
265
views
dcevm hotswap agent openjdk amazon corretto
What is compatible DCEVM jdk version with amazon corretto? We are trying to setup hotswap agnt for faster hybris development.
We tried on openjdk that works but since we are using amazon corretto 8 we ...
0
votes
1
answer
190
views
running openvpn in a corretto docker image fails with security issue
I have installed openvpn into a corretto docker image thusly:
FROM amazoncorretto
RUN amazon-linux-extras install epel
RUN yum -y install p7zip openvpn
I get an error when it tries to see the TUN ...
3
votes
0
answers
206
views
Does Amazon Corretto JRE supports any JavaFx dependency?
I need to add javafx dependency(as we do for other dependencies, adding in the pom) to my project which runs on amazon corretto jre, so here I have two questions:-
Is there any javafx dependency that ...
1
vote
1
answer
558
views
Deployment of Springboot application from AWS Java 8 to Corretto 8 plartform
Do we need any application level changes for move from AWS Java 8 platform to Corretto 8 in Elasticbeanstalk ? Since, they both are OpenJDK application specific changes should not be there correct ?
0
votes
1
answer
278
views
Incompatible Types: javafx.scene.media.Media cannot be converted to javax.print.attribute.standard.Media
All,
I'm building a media player using Amazon Corretto 11 library and OpenJFX. I have this issue that's keeping me on the struggle. Still a newbie in Java, it will be much appreciated if someone can ...
1
vote
1
answer
809
views
Amazon Corretto 11 docker image for windows container
I am looking for an image of Amazon Corretto 11 (JRE only) specifically for windows container, as I have to run it on Windows Server. I tried looking for it in the docker repo https://hub.docker.com/_/...
1
vote
1
answer
740
views
Amazon Corretto 11 is uninstalled with Installation of Corretto 15
I just downloaded Amazon Corretto 15 and installed it on my Windows 10 Laptop. Corretto 8 and Corretto 11 are already installed. However, after installing Corretto 15, Corretto 11 was uninstalled! ...
4
votes
2
answers
2k
views
How to update Amazon Corretto 8 with new build
I'm using Amazon Corretto 8u262 version in linux 64 bit. The team is releasing new build frequently with bug fixes and additional new features. Whenever new update released, manually downloaded new ...
0
votes
1
answer
109
views
Jcontrol equivalent in Corretto 8
We used to use a java application on our linux desktops that used openjdk 1.7. If I needed to troubleshoot a problem, I'd launch "jcontrol" and enable debug and trace. This would spit out ...
1
vote
0
answers
192
views
Date doesn't parse in Amazon Corretto 11.0.9.11.2
We've had a test start failing that checks if certain dates parse since upgrading from amazon-corretto-11.0.7.10.1-windows-x64 to amazon-corretto-11.0.9.11.2-windows-x64.
I've written out a small ...
1
vote
0
answers
4k
views
Unrecognized VM option 'UseFastAccessorMethods'
I am running java application and get this error:
OpenJDK 64-Bit Server VM warning: Option AggressiveOpts was deprecated in version 11.0 and will likely be removed in a future release.
OpenJDK 64-Bit ...
0
votes
1
answer
133
views
Does Corretto complement BouncyCastle or does it replace it?
Does Corretto JCE Provider complement BouncyCastle or does it replace it? I know Bouncy supports more arcane formats than Sun JCA but generally I don't think I use them. I am only after the secure ...
2
votes
1
answer
593
views
Should I recompile the full Java solution during migration from Oracle JDK to Amazon Corretto
The initial requirement is to support Amazon Corretto. I have a lot of jar's which are already built by Oracle JDK.
Amazon Corretto is certified using the Java Technical Compatibility Kit (TCK), and ...
1
vote
0
answers
484
views
HTTP Status 500 - javax.servlet.ServletException file not found in Tomcat 9.0.22
We have a Java Spring MVC web application that is deployed on Tomcat. For the last few months, we have been experiencing an exception on a regular interval (after every 11 days) due to which our ...
1
vote
1
answer
433
views
.jar file not getting launched
I've used Amazon corretto and Java's jre(javaw.exe) to try running my jar file. The task manager says that 'Java Platform SE Binary' is running but no dialogue box(or display) of the jar program is ...
0
votes
0
answers
137
views
Getting java.security.cert.CertificateException while using AWS java corretto
Used the below code in Oracle Java 1.8, it is working fine. But when I am replacing Oracle Java with AWS Java Corretto 8 getting below error:
Caused by: java.security.cert.CertificateException: No ...
1
vote
0
answers
91
views
Amazon corretto now includes a bunch of api-ms-win-core-*-l1-1-0.dll files in jre/bin
I noticed that Amazon corretto JRE 8 now includes these files in version 8.0.252 (Windows, 32-bit). As far as i know this is new. They are for instance not part of the zulu distribution (same version)....
1
vote
0
answers
155
views
Within a Script, how to test if using Corretto or Oracle JRE?
Lets say a program executes which dynamically builds a script (shell script on Linux or bat file on windows) which obtains reference to the Java Home via the JAVA_HOME environment variable.
It is ...
0
votes
1
answer
505
views
WildFly 17.0.1.Final HeapMemory Issues
I need some suggestions or guidelines on Wildfly version which is in production recently.
We see heap memory spikes very often and garbage collection is not working and heap gets filled in and ...
0
votes
1
answer
590
views
Amazon Corretto 8 Container awareness
After reading all AWS Documentation about Amazon Corretto, I have found no clue of JVM options to enable container awareness (if it is not enabled by default) and option names to control container ...