Thanks to @SevenSidedDie, I discovered that the error only occurrs when running it with JRE7. This was tested by uninstalling JRE7 and instead using JRE6.
However, as a Java developer, it was really inconvenient to have the the latest Java runtime uninstalled as I need it to debug with. I reinstalled JRE7 and after some tinkering, I did the following to force it to run with JRE6:
Forcing Minecraft to run with JRE6
- Make sure you have both JRE6 and JRE7 installed.
- Move
Minecraft.exe
somewhere out of the way, otherwise it will run with the JRE7 (hence causing the problem). I use the "%AppData%.minecraft" folder.
- Make a shortcut to
Minecraft.exe
in your Start menu - You can do this by dragging with your right-mouse button into the All Programs
section of the Start menu. Get rid of the "-Shortcut" bit if you wish by right clicking on it and clicking Rename
.
- Right click on your shortcut and click
Properties
.
- Under "Target:" enter (with the quotes)
"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%AppData%\.minecraft\Minecraft.exe"
- Make sure that "Start in:" is set to
%AppData%\.minecraft
- Click
Apply
and/or OK
.
Now, whenever you want to run Minecraft, start it from the Start menu. This also works if you pin the Start menu icon to the taskbar.
To make your webmin run Minecraft_Server.1.7.2.jar:
- Download the jar to your desktop
- Open a Terminal
- Run:
sudo mv /home/yourusernamehere/Desktop/minecraft_server.1.7.2.jar /usr/local/minecraft/minecraft_server.jar
- Test with the 'Minecraft Server 1.5' module for webmin
- Execute
EXPLANATION OF TASK # 3:
SUDO -- execute with higher privileges
MV -- move file #1 from /location/A/file#1 to /location/B/file#1nameORfile#1renamed
Judging by the source code in the module provided, this SHOULD work. I'm not a webmin user, but I do know enough linux to understand what is going on under the hood aka 'to be dangerous'.
PLEASE NOTE: The module only provides 1GB of RAM to minecraft by default, if you find yourself needing more open the wbm and locate the line similar to:
java_args=-Xms1G -Xmx1G -D
and change it to
java_args=-Xms4G -Xmx4G -D
for 4GB of RAM allocation to minecraft or to have a range:
java_args=-Xms1G -Xmx4G -D
which will give you a minimum of 1GB but no more than 4GB.
TO MANUALLY INSTALL the module:
- Download from here: http://download.webmin.com/download/modules/minecraft-1.5.wbm.gz
- Unpack on Desktop and make modifications above
- Repack the archive (
cd ~/Desktop; rm ~/Desktop/minecraft-1.5.wbm.gz; gzip minecraft-1.5.wbm; mv minecraft-1.5.wbm.gz minecraft.wbm.gz
)
- Goto webmin
- Click "Webmin Configuration"
- Click "Webmin Modules"
- Click the Radio button for "From Local File"
- Click the ellipsis at the end of the "From Local File" line and select the modified minecraft.wbm.gz
- Click "Install Module"
Steps written from memory, so compression may be different as everyone doesn't use the same Desktop Manager/Window Manager. Please comment if you have an issue with a particular step.
Automatically updating minecraft server for webmin:
SOON TO BE BUILT USING WGET AND A BASH SCRIPT
Will updating affect my minecraft world?
ONLY as much as the update affects the game. Built structures should be okay.
How do I host it publically?
NOIP.com free DNS. Don't worry about IP addresses.
Port Forward is a thing.
In Ubuntu Linux Distributions: ufw
may cause you grief.
Should I worry about something else?
Security Questions
Ubuntu Based Questions
Programming/Scripting Questions
Other linux distribution questions
Are You affliated with any company listed?
No I am not, But they are very reliable resources, until NOIP shuts down free managed DNS hosting.
Best Answer
If ONLY the client is lagging: That is a CPU problem, as the server would lag as well if it was a RAM issue, and that would need to be taken care of via upgrading the CPU in your computer, or hitting Ctrl + Alt + Del and selecting Task Manager, finding javaw.exe (That's what it uses on my machine, it might be just Java.exe) and setting the priority to whatever you desire. If that doesn't work you may have to upgrade.
If both the client AND the server are lagging, then that would be a RAM issue and can be fixed by the solution regarding RAM.