Java教程

yum安装java时,没有jps的问题的解决

本文主要是介绍yum安装java时,没有jps的问题的解决,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

需要安装Java-1.X.X-openjdk-devel

[root@ls java]# yum install java-1.8.0-openjdk-devel.x86_64
Failed to set locale, defaulting to C
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager, versionlock

This system is not registered with an entitlement server. You can use subscription-manager to register.

Excluding 1 update due to versionlock (use "yum versionlock status" to show it)
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.312.b07-1.el7_9 will be installed
--> Processing Dependency: java-1.8.0-openjdk(x86-64) = 1:1.8.0.312.b07-1.el7_9 for package: 1:java-1.8.0-openjdk-devel-1.8.0.312.b07-1.el7_9.x86_64
--> Running transaction check
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.312.b07-1.el7_9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================================================================================
 Package                                                            Arch                                             Version                                                             Repository                                         Size
=================================================================================================================================================================================================================================================
Installing:
 java-1.8.0-openjdk-devel                                           x86_64                                           1:1.8.0.312.b07-1.el7_9                                             updates                                           9.8 M
Installing for dependencies:
 java-1.8.0-openjdk                                                 x86_64                                           1:1.8.0.312.b07-1.el7_9                                             updates                                           313 k

Transaction Summary
=================================================================================================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 10 M
Installed size: 41 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64.rpm                                                                                                                                                                | 313 kB  00:00:00     
(2/2): java-1.8.0-openjdk-devel-1.8.0.312.b07-1.el7_9.x86_64.rpm                                                                                                                                                          | 9.8 MB  00:00:00     
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                             32 MB/s |  10 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64                                                                                                                                                                             1/2 
  Installing : 1:java-1.8.0-openjdk-devel-1.8.0.312.b07-1.el7_9.x86_64                                                                                                                                                                       2/2 
  Verifying  : 1:java-1.8.0-openjdk-devel-1.8.0.312.b07-1.el7_9.x86_64                                                                                                                                                                       1/2 
  Verifying  : 1:java-1.8.0-openjdk-1.8.0.312.b07-1.el7_9.x86_64                                                                                                                                                                             2/2 

Installed:
  java-1.8.0-openjdk-devel.x86_64 1:1.8.0.312.b07-1.el7_9                                                                                                                                                                                        

Dependency Installed:
  java-1.8.0-openjdk.x86_64 1:1.8.0.312.b07-1.el7_9                                                                                                                                                                                              

Complete!
[root@ls java]# jps
1814 Jps

Ok

 

这篇关于yum安装java时,没有jps的问题的解决的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!