CentOS - Java

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
User avatar
rlm850
This is my homepage
This is my homepage
Posts: 141
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Dec 10, 2009 12:17 am
Location: Staten Island, NY
Contact:

CentOS - Java

Post by rlm850 »

So, stuck on CentOS for the first time attempting to setup a Minecraft server. Java seems to be my problem. All the default startup files on the server I have disabled to kill unneeded used resources and pretty much every plugin besides nano is gone.

I've been searching all morning for resources on how to install java, but I've come up with nothing. If I do, it's some overtyped article about things that don't even matter in the first place.

Is there just one simple command? yum install java?
Which in that case I get

Code: Select all

# yum install java
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: java
Nothing to do
Any help is appreciated :roll:
User avatar
Edge100x
Founder
Founder
Posts: 13154
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: CentOS - Java

Post by Edge100x »

Try:

Code: Select all

yum install java-1.6.0-openjdk
User avatar
rlm850
This is my homepage
This is my homepage
Posts: 141
Joined: Thu Dec 10, 2009 12:17 am
Location: Staten Island, NY
Contact:

Re: CentOS - Java

Post by rlm850 »

Code: Select all

# yum install java-1.6.0-openjdk
Setting up Install Process
Setting up repositories
vz-base                   100% |=========================|  951 B    00:00
vz-updates                100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: java-1.6.0-openjdk
Nothing to do
User avatar
Edge100x
Founder
Founder
Posts: 13154
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: CentOS - Java

Post by Edge100x »

Which version of CentOS are you running?

Try also:

Code: Select all

yum search java
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: CentOS - Java

Post by j0rd0n420 »

http://www.centos.org/modules/newbb/vie ... 6&forum=38
Follow post #6 instructions, if you want Suns Java.
Link to download the bin file: http://www.oracle.com/technetwork/java/ ... 00750.html
Post Reply