Comments on: How to Install Java 17 on RHEL-based Linux Distributions https://www.tecmint.com/install-java-on-centos-rhel-fedora/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Tue, 02 Nov 2021 05:59:12 +0000 hourly 1 By: Jalal https://www.tecmint.com/install-java-on-centos-rhel-fedora/comment-page-1/#comment-1631774 Tue, 02 Nov 2021 05:59:12 +0000 http://www.tecmint.com/?p=846#comment-1631774 Great post, and really helpful.

Thanks for sharing!

]]>
By: Lorenzo M https://www.tecmint.com/install-java-on-centos-rhel-fedora/comment-page-1/#comment-1317980 Fri, 21 Feb 2020 14:29:38 +0000 http://www.tecmint.com/?p=846#comment-1317980 In reply to Marcelo Monteiro.

Please read everything before copy-pasting any command.

For everyone who has this problem you can just clear the “Export PATH=$PATH:/opt/jdk-13/bin” line (leave the definition of JAVA_HOME there).

To clear the line you can call your text editor using the complete path from the root to it and then edit the file, for example “/bin/vi /etc/environment” and then log in again (or reboot) to source it.

This will resolve your problem but will create many, in fact, you won’t be able to call any of the java commands.

To resolve this problem you can do the following (if you want to stick with this installation), I suggest to verify before if any of those new jdk-13/bin/files already exists in the /usr/bin folder (overwriting them without caution may cause problems):

# ln -s /opt/jdk-13/bin/* /usr/bin/

this creates symbolic links for each new jdk-13/bin file in the /usr/bin folder.

If some files already exist it is your own decision if you want to overwrite them (it may cause some problems).

To overwrite the already existing files the command is:

# ln -sf /opt/jdk-13/bin/* /usr/bin/

tI does the same thing as the previous command but it forces overwriting over already existing files with the same name as the new ones.

What this command does is basically creating links in the /bin folder so that you don’t need to overwrite the $PATH variable to access them.

I don’t know if it is the correct method to resolve this problem but it worked for me, I’m on CentOS 8.

]]>
By: GIGABAIT https://www.tecmint.com/install-java-on-centos-rhel-fedora/comment-page-1/#comment-1315758 Sun, 09 Feb 2020 13:36:27 +0000 http://www.tecmint.com/?p=846#comment-1315758 In reply to Ravi Saive.

How to fix this problem

]]>
By: Jojan https://www.tecmint.com/install-java-on-centos-rhel-fedora/comment-page-1/#comment-1315746 Sun, 09 Feb 2020 11:55:15 +0000 http://www.tecmint.com/?p=846#comment-1315746 In reply to Ravi Saive.

I have the same issue i can’t run from the startup, it really is big issue how should i recover this?

]]>
By: Ravi Saive https://www.tecmint.com/install-java-on-centos-rhel-fedora/comment-page-1/#comment-1310935 Thu, 09 Jan 2020 06:22:30 +0000 http://www.tecmint.com/?p=846#comment-1310935 In reply to Marcelo Monteiro.

@Marcelo,

It seems an issue with your .bash_profile file.

]]>