LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2012, 07:54 PM   #16
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705

Hi,

ok, it seems you are using an older java. On the SL 6.2 box I'm using

java-1.6.0-openjdk-1.6.0.0-1.49.1.11.4.el6_3.x86_64

So, please install this package. Eg
Code:
yum install java-1.6.0-openjdk-1.6.0.0-1.49.1.11.4.el6_3.x86_64
Then check that /etc/alternatives/java links to the new version. Ie if you run the following command you should get the same output
Code:
% ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 46 Sep  6 04:08 /etc/alternatives/java -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
Once you've done this try running the minecraft server again.
Evo2.
 
Old 09-05-2012, 08:26 PM   #17
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

ok, it seems you are using an older java. On the SL 6.2 box I'm using

java-1.6.0-openjdk-1.6.0.0-1.49.1.11.4.el6_3.x86_64

So, please install this package. Eg
Code:
yum install java-1.6.0-openjdk-1.6.0.0-1.49.1.11.4.el6_3.x86_64
Then check that /etc/alternatives/java links to the new version. Ie if you run the following command you should get the same output
Code:
% ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 46 Sep  6 04:08 /etc/alternatives/java -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
Once you've done this try running the minecraft server again.
Evo2.
No feedback when I tried to start it, it's in the files though

Code:
login as: root
root@209.236.121.16's password:
Last login: Wed Sep  5 21:21:54 2012 from ----
[root@metroville ~]# yum install java-1.6.0-openjdk-1.6.0.0-1.49.1.11.4.el6_3.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: dallas.tx.mirror.xygenhosting.com
 * extras: dist1.800hosting.com
 * updates: centos.mirror.lstn.net
Setting up Install Process
Package 1:java-1.6.0-openjdk-1.6.0.0-1.49.1.11.4.el6_3.x86_64 already installed and latest version
Nothing to do
[root@metroville ~]# % ls -l /etc/alternatives/java
-bash: fg: %: no such job
[root@metroville ~]# lrwxrwxrwx 1 root root 46 Sep  6 04:08 /etc/alternatives/java -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
-bash: lrwxrwxrwx: command not found
[root@metroville ~]# java -Xms384M -Xmx384M -jar minecraft_server.jar nogui
[root@metroville ~]#

Thanks!
 
Old 09-05-2012, 08:33 PM   #18
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

in [code] blocks in my post, if there is a "%" on the line it indicates that this is a command that I ran (or want you to run) at the prompt.
If there is no "%" this means that the text is the output I got. So the command that I want you to run is actually "ls -l /etc/alternatives/java".
This is just to confirm that when you run "java" you will actually be running the newly installed version.

I also wonder if this is also the reason you got no output when running "readlink -f $(which java)".

Evo2.
 
Old 09-05-2012, 09:17 PM   #19
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BMX_ATVMAN14 View Post
No feedback when I tried to start it, it's in the files though

Code:
login as: root
root@209.236.121.16's password:
Last login: Wed Sep  5 21:21:54 2012 from ----
[root@metroville ~]# yum install java-1.6.0-openjdk-1.6.0.0-1.49.1.11.4.el6_3.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: dallas.tx.mirror.xygenhosting.com
 * extras: dist1.800hosting.com
 * updates: centos.mirror.lstn.net
Setting up Install Process
Package 1:java-1.6.0-openjdk-1.6.0.0-1.49.1.11.4.el6_3.x86_64 already installed and latest version
Nothing to do
[root@metroville ~]# % ls -l /etc/alternatives/java
-bash: fg: %: no such job
[root@metroville ~]# lrwxrwxrwx 1 root root 46 Sep  6 04:08 /etc/alternatives/java -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
-bash: lrwxrwxrwx: command not found
[root@metroville ~]# java -Xms384M -Xmx384M -jar minecraft_server.jar nogui
[root@metroville ~]#

Thanks!
Code:
login as: root
root@209.236.121.16's password:
Last login: Wed Sep  5 21:23:17 2012 from ---------
[root@metroville ~]# % ls -l /etc/alternatives/java
-bash: fg: %: no such job

Last edited by BMX_ATVMAN14; 09-06-2012 at 06:11 PM.
 
Old 09-05-2012, 09:46 PM   #20
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

you entered the "%" in the command again. Just enter "ls -l /etc/alternatives/java".

Evo2.
 
Old 09-06-2012, 02:08 PM   #21
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

you entered the "%" in the command again. Just enter "ls -l /etc/alternatives/java".

Evo2.
Sorry didn't notice

Code:
[root@metroville ~]# ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 46 Sep  5 20:56 /etc/alternatives/java -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
[root@metroville ~]#

Last edited by BMX_ATVMAN14; 09-06-2012 at 06:12 PM.
 
Old 09-10-2012, 02:35 PM   #22
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Bump
 
Old 09-10-2012, 04:07 PM   #23
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Bump?

What is your question?

Evo2.
 
Old 09-10-2012, 04:12 PM   #24
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Bump?

What is your question?

Evo2.
We never answered how to port forward yet :P
 
Old 09-10-2012, 06:13 PM   #25
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I thought the port forwarding question was based around a misunderstanding of the error messages produced when using an older (incompatible) version of java.

So, could you restate the question?

Evo2.
 
Old 09-10-2012, 06:40 PM   #26
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

I thought the port forwarding question was based around a misunderstanding of the error messages produced when using an older (incompatible) version of java.

So, could you restate the question?

Evo2.
Alright, how do I open port 25565
 
Old 09-10-2012, 07:51 PM   #27
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

why do you think it needs to be opened? Are you unable to connect to your minecraft server?

Are you running some sort of firewall?

Evo2.
 
Old 09-10-2012, 08:16 PM   #28
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

why do you think it needs to be opened? Are you unable to connect to your minecraft server?

Are you running some sort of firewall?

Evo2.
Well I can't even start the server, this is what happens

Code:
m
[minecraft@metroville ~]$ java -Xms384M -Xmx384M -jar craftbukkit.jar nogui
[minecraft@metroville ~]$ cd Metroville
[minecraft@metroville Metroville]$ java -Xms384M -Xmx384M -jar craftbukkit.jar nogui
[minecraft@metroville Metroville]$ java -Xms384M -Xmx384M -jar craftbukkit.jar nogui
 
Old 09-10-2012, 08:20 PM   #29
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

can you please go back to the standard minecraft server? As I think I explained earlier it is *much* easier to troubleshoot things when there are fewer unknowns.

Evo2.
 
Old 09-10-2012, 08:38 PM   #30
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

can you please go back to the standard minecraft server? As I think I explained earlier it is *much* easier to troubleshoot things when there are fewer unknowns.

Evo2.
Code:
login as: minecraft
minecraft@209.236.121.16's password:
Last login: Mon Sep 10 21:09:50 2012 from ---
[minecraft@metroville ~]$  java -Xmx384M -Xms384M -jar minecraft_server.jar nogui.
[minecraft@metroville ~]$ cd Metroville
[minecraft@metroville Metroville]$  java -Xmx384M -Xms384M -jar minecraft_server.jar nogui
[minecraft@metroville Metroville]$  java -Xmx384M -Xms384M -jar minecraft_server.jar nogui
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables can't port forward (PAT Port address translation) sfrederiksen Linux - Networking 7 12-20-2011 10:47 AM
If I forward a port in iptables, does the port have to be open on the firewall? qwertyjjj Linux - Server 4 08-06-2009 09:22 AM
A way to forward an IP/Port to another system's IP/Port astroboy5714 Linux - Networking 6 01-26-2004 05:45 PM
how to port forward - correctly 68javelin Linux - Software 0 11-16-2002 06:47 PM
Forward port port 80 to lan web server dulaus Linux - Networking 9 10-04-2002 03:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration