Well Linux and running servers is all very new to me and a bit over my head. I have a server I am renting right now with Centos 32 bit on it, but I can't figure out how to even get java installed let alone a minecraft server up. It says that the link failed that the Op posted (wget ftp://mine:[email protected]/java.bin). Can somebody give me a step by step? I looked online but most tutorials already assume basic knowledge and I have zero :S
Well Linux and running servers is all very new to me and a bit over my head. I have a server I am renting right now with Centos 32 bit on it, but I can't figure out how to even get java installed let alone a minecraft server up. It says that the link failed that the Op posted (wget ftp://mine:[email protected]/java.bin). Can somebody give me a step by step? I looked online but most tutorials already assume basic knowledge and I have zero :S
I'm in the exact same boat. I tried doing some research myself but I literally have almost zero knowledge with Linux let alone trying to get things done through SSH. Any help would be greatly appreciated.
Ok, I have a solution for everyone stuck with getting java installed.
So I'm just going to edit the tutorial a little bit where people get stuck.
So open up your SSH client, next do the following;
cd ../
Now go to Java.com, click on Downloads, on the left hit All Java Downloads, scroll down and download Linux RPM (self-extracting file).
Once that is downloaded, open up a SFTP connection with your VPS. I'm using FileZilla so to connect, you want to go to Site Manager, in the drop down select SFTP rather than FTP and fill out your connection info (host IP, username and password).
After you're connected with SFTP, upload the Java file you previously downloaded (jre-6u23-linux-i586-rpm.bin) to your main directory.
Now, go back into Putty (or whatever you're using for an SSH connection) and do the following;
chmod 755 jre-6u23-linux-i586-rpm.bin
This changes the permissions allowing the file to execute. Please take note that you may need to change the file name based on what you downloaded from Java.com.
You should now be able to do the following;
chmod +x jre-6u23-linux-i586-rpm.bin
./jre-6u23-linux-i586-rpm.bin
This will extract the files and install Java.
From here you can continue on with the original tutorial.
EDIT:
I noticed this was a tutorial for setting up an Alpha server, so I decided to format my VPS and start fresh but this time use a Beta server. So I followed all the same steps as before and this time when I try to nohup the minecraft_server.jar I get the message;
nohup: appending output to 'nohup.out'
nohup: cannot run command '../': Permission denied
Not really sure why it's doing it. It also only started once I tried doing this tutorial with the Minecraft_Server.jar file instead of downloading the one in OP's post.
Minecraft servers use little resources so it can run off pretty much any system,
What do you mean, 'use very little resources?' I tried running one from my computer, and it used so much bandwidth that no one else in my house could get on the internet. I only had one other person other than me!
So is it even possible to run a good server from your home? I don't want to pay those monthly fees for a professional server.
Rollback Post to RevisionRollBack
Quote from A wise man once »
Religion is like a penis. It's ok to have one, and it's ok to be proud of it. But don't go waving it around in public, and don't try to shove it down kids' throats.
Quote from He also »
Ambition is a poor excuse for not having enough sense to be lazy.
Well Linux and running servers is all very new to me and a bit over my head. I have a server I am renting right now with Centos 32 bit on it, but I can't figure out how to even get java installed let alone a minecraft server up. It says that the link failed that the Op posted (wget ftp://mine:[email protected]/java.bin). Can somebody give me a step by step? I looked online but most tutorials already assume basic knowledge and I have zero :S
Oh dear god... for anyone that installed "default-jdk" go ahead and remove that. You DO NOT want OpenJDK. You will take a very nasty performance hit by running with OpenJDK instead of Suns. If you are using ubuntu enable the partner repositories and install sun-java6-jre .
Quote from kursku »
Exception in thread "main" java.lang.NoClassDefFoundError: com/mojang/minecraft/server/MinecraftServer
Caused by: java.lang.ClassNotFoundException: com.mojang.minecraft.server.MinecraftServer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: com.mojang.minecraft.server.MinecraftServer. Program will exit.
This is what I get. If i do use the older version of minecraft_server.jar it works, but the new beta one i doesn't.
The error tells you the exact problem. "NoClassDefFoundError". remove the trailing "com.mojang.minecraft.server.MinecraftServer" stuff from your launcher.
*edit, last one i hope.
All of those hosts are pretty pricey for what they offer as well. www.ovh.ie or www.fdcservers.net Much better deals on bandwidth etc.
this thread has been very helpful so far, so thank you. i got the router all set up, the port is working. but now im stuck on the third part of your guide, editing the server information. when i try to open "minecraft-server" i get the following error:
this thread has been very helpful so far, so thank you. i got the router all set up, the port is working. but now im stuck on the third part of your guide, editing the server information. when i try to open "minecraft-server" i get the following error:
this thread has been very helpful so far, so thank you. i got the router all set up, the port is working. but now im stuck on the third part of your guide, editing the server information. when i try to open "minecraft-server" i get the following error:
I'm in the exact same boat. I tried doing some research myself but I literally have almost zero knowledge with Linux let alone trying to get things done through SSH. Any help would be greatly appreciated.
Mind sharing with the rest of us the link you used to get it?
So I'm just going to edit the tutorial a little bit where people get stuck.
So open up your SSH client, next do the following;
Now go to Java.com, click on Downloads, on the left hit All Java Downloads, scroll down and download Linux RPM (self-extracting file).
Once that is downloaded, open up a SFTP connection with your VPS. I'm using FileZilla so to connect, you want to go to Site Manager, in the drop down select SFTP rather than FTP and fill out your connection info (host IP, username and password).
After you're connected with SFTP, upload the Java file you previously downloaded (jre-6u23-linux-i586-rpm.bin) to your main directory.
Now, go back into Putty (or whatever you're using for an SSH connection) and do the following;
This changes the permissions allowing the file to execute. Please take note that you may need to change the file name based on what you downloaded from Java.com.
You should now be able to do the following;
This will extract the files and install Java.
From here you can continue on with the original tutorial.
EDIT:
I noticed this was a tutorial for setting up an Alpha server, so I decided to format my VPS and start fresh but this time use a Beta server. So I followed all the same steps as before and this time when I try to nohup the minecraft_server.jar I get the message;
Not really sure why it's doing it. It also only started once I tried doing this tutorial with the Minecraft_Server.jar file instead of downloading the one in OP's post.
What do you mean, 'use very little resources?' I tried running one from my computer, and it used so much bandwidth that no one else in my house could get on the internet. I only had one other person other than me!
So is it even possible to run a good server from your home? I don't want to pay those monthly fees for a professional server.
CentOS uses yum to install software.
You should be able to type
and then continue.
Let me know if that helps.
The error tells you the exact problem. "NoClassDefFoundError". remove the trailing "com.mojang.minecraft.server.MinecraftServer" stuff from your launcher.
*edit, last one i hope.
All of those hosts are pretty pricey for what they offer as well. www.ovh.ie or www.fdcservers.net Much better deals on bandwidth etc.
http://i1226.photobucket.com/albums/ee405/doctomoustache/minecrafterror01.png
i have NO IDEA what im doing wrong. please help.
(yay first post)
run "start server"
when i do that i get this error: http://i1226.photobucket.com/albums/ee4 ... rror02.png
running as admin does same thing.
edit: i just realized i posted this in the wrong bloody thread. boy im smart.