The linux server's java environment has been tampered with and repaired.
I recently installed ant on the server. To facilitate the direct installation of yum install ant, I suggest installing ant with ant-bin package after pressurization to install many dependent packages, such as java environment, configure the environment in the/etc/profile file. The following describes how to fix java environment tampering:
1. Check the java version and environment currently in use (the local configuration uses java1.7 HotSpot (TM) JVM)
The machine is tampered with as an IBM J9 VM.
2. Check that java, javac, and javaws are in use.
Update-alternatives -- config java
Update-alternatives -- config javac
Update-alternatives -- config javaws
3. Delete the tampered Environment Information: view the information in step 2 and delete it.
Update-alternatives -- remove "java" & quot;/usr/lib/jvm/jre-1.7.0-ibm.x86_64/bin/java & quot"
Update-alternatives -- remove "javac" "/usr /......"
Update-alternatives -- remove "javaws"/usr /...."
4. Run source/etc/profile to enable the linux server to use the java environment configured in/etc/profile.
Java-version
The above results are displayed, indicating that the java environment has been modified successfully.