0

I have Installed OpenJdk on my redhat instance recently. Now am in need to go for Java Jdk. I saw some sites for replacement but none working for me. Thanks in advance..

Vikram
  • 635
  • 1
  • 9
  • 29
  • 1
    What's wrong with the OpenJDK? They're [practically the same](http://stackoverflow.com/questions/22358071/differences-between-oracle-jdk-and-open-jdk-and-garbage-collection)... – Jonathan Lam Oct 29 '15 at 02:46
  • I am installing Jboss AS but that doesn't support OpenJDK so i need to uninstall that and install Oracle JDK for it to work. – Vikram Oct 29 '15 at 03:49

2 Answers2

0

Install the JDK , then written to the terminal.

alternatives --config java

Enter the number

I work in fedora , try it in Red Hat.

  • https://gist.github.com/rtfpessoa/17752cbf7156bdf32c59 This helpme acheiving what i was looking for. Thank you all !!! – Vikram Oct 29 '15 at 04:20
0

Spring boot application is failed to start on AWS EC2 instance because of JDK old version is running on EC2 Instance. I have run following command to set updated version 1.8 from 1.7. Follow command:

sudo yum install java-1.8.0
sudo /usr/sbin/alternatives --config java
Rajeev Rathor
  • 1,830
  • 25
  • 20