Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

Minecraft server on AppleTV2 (Java 1.5)


  • Please log in to reply
7 replies to this topic

#1

makbryan2

Posted 24 February 2011 - 09:59 AM

Hi there everyone,
I am trying to get my minecraft server running on my always-on AppleTV2. It's restrictive on RAM, but we'll see how it runs anyway... once I get it running. The AppleTV only has Java 1.5 installed. I saw in the new 1.3 update that dependencies to java 1.6 were removed, meaning it is compatible with Java 1.5 now. Do these changes apply to the server too? I downloaded the newest server and transfered it to the apple tv. When executing with 128M of ram, it complains about dependencies and does not run, just like the old versions. I'm hoping this just mean the dependencies haven't been removed yet for the server? Otherwise, I don't know what's wrong. I don't know to update java on the AppleTV and I fear that might be too difficult.

So, does anyone know if the 1.6 dependencies are removed from the server.jar like they are with the client? And if not, when will they be?
Thanks!


This is the output from another member on http://www.hackint0s....htm#post727432forum trying to do the same thing as me, this time by extracting the .jar file first:

Quote

Apple-TV $ unzip minecraft_server.jar -d minecraft
Apple-TV $ cd minecraft
Apple-TV:minecraft $ java -Xmx128M -Xms128M net.minecraft.server.MinecraftServer nogui
2011-02-23 10:30:03 [INFO] Starting minecraft server version Beta 1.3
2011-02-23 10:30:03 [WARNING] **** NOT ENOUGH RAM!
2011-02-23 10:30:03 [WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
2011-02-23 10:30:03 [INFO] Loading properties
2011-02-23 10:30:03 [WARNING] server.properties does not exist
2011-02-23 10:30:03 [INFO] Generating new properties file
2011-02-23 10:30:03 [INFO] Starting Minecraft server on *:25565
java.lang.NoSuchMethodError: setPerformancePreferences
at cc.(SourceFile:25)
at net.minecraft.server.MinecraftServer.d(SourceFile: 112)
at net.minecraft.server.MinecraftServer.run(SourceFil e:237)
at bc.run(SourceFile:366)
2011-02-23 10:30:03 [SEVERE] Unexpected exception
java.lang.NoSuchMethodError: setPerformancePreferences
at cc.(SourceFile:25)
at net.minecraft.server.MinecraftServer.d(SourceFile: 112)
at net.minecraft.server.MinecraftServer.run(SourceFil e:237)
at bc.run(SourceFile:366)

Apple-TV:minecraft $ cd ..
Apple-TV: $ java -Xmx128M -Xms128M -jar minecraft_server.jar nogui
java.lang.NoClassDefFoundError: cm
at java.lang.VMClass.getDeclaredMethods(Native Method)
at java.lang.Class.getDeclaredMethods(Class.java:536)
at java.lang.Class.internalGetMethod(Class.java:722)
at java.lang.Class.getMethod(Class.java:710)
at jamvm.java.lang.JarLauncher.main(JarLauncher.java: 47)
Caused by: java.lang.ClassNotFoundException: cm not found in java.lang.ClassLoader$1{urls=[file], parent=null}
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:626)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 41)
at java.lang.ClassLoader$1.loadClass(ClassLoader.java :1112)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 93)
at java.lang.VMClass.getDeclaredMethods(Native Method)
...4 more
Caused by: java.util.zip.ZipException: Code lengths don't add up properly.
at java.util.zip.InflaterInputStream.read(InflaterInp utStream.java:200)
at java.io.FilterInputStream.read(FilterInputStream.j ava:189)
at java.util.jar.JarFile$EntryInputStream.read(JarFil e.java:912)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:548)
...8 more

So as you can see by extracting the classes it got at least a bit further before crashing fatally.
My Java VM:

$ java -version
java version "1.5.0"
JamVM version 1.5.1
Copyright © 2003-2008 Robert Lougher [email protected]>


Register or log in to remove.

#2

rch
    rch

    Minecraft.cm

  • Members
  • 4104 posts
  • Location: Florida
  • Minecraft: rch

Posted 24 February 2011 - 10:11 AM

128M of RAM is ridiculously low for a Minecraft server.. I don't think you'll have much luck with that.

#3

makbryan2

Posted 24 February 2011 - 12:43 PM

I know it sounds low, but I think it should be enough. I've never seen my server use above 75-80 mb of memory (usually 3 players in game at most)

#4

toeadd
    toeadd

    Newly Spawned

  • Members
  • 1 posts

Posted 26 February 2011 - 05:59 AM

you can run it like this as well:
java -Xms700M -Xmx700M -cp minecraft_server.jar net.minecraft.server.MinecraftServer nogui

however you will get this error:
2011-02-25 21:55:49 [INFO] Starting minecraft server version Beta 1.3
2011-02-25 21:55:49 [INFO] Loading properties
2011-02-25 21:55:49 [INFO] Starting Minecraft server on *:25565
java.lang.NoSuchMethodError: setPerformancePreferences
   at cc.(SourceFile:25)
   at net.minecraft.server.MinecraftServer.d(SourceFile:112)
   at net.minecraft.server.MinecraftServer.run(SourceFile:237)
   at bc.run(SourceFile:366)
2011-02-25 21:55:49 [SEVERE] Unexpected exception
java.lang.NoSuchMethodError: setPerformancePreferences
   at cc.(SourceFile:25)
   at net.minecraft.server.MinecraftServer.d(SourceFile:112)
   at net.minecraft.server.MinecraftServer.run(SourceFile:237)
   at bc.run(SourceFile:366)

#5

joey23art

Posted 25 April 2011 - 10:44 AM

I'm trying to do the same thing, does anyone have any suggestions?

#6

makbryan2

Posted 19 May 2011 - 10:10 AM

This is my most recent progress:
I unzipped the jar file first.
The caveat is that once the server is running, I can connect to it in minecraft client. Instead of the waiting for server and then a time out, it moves to "Logging in". However, after a time out, it drops out. The server appears to be running on the AppleTV2, but it cannot load everything to actually get the whole program up and running. I can type commands to the minecraft server from the terminal window, but when I type list to list the players, it says "stopping server" and then the server quits.
Weird huh? Anyone have ideas for these seemingly last few bugs in the way of running a server all the time on my AppleTV2?

Apple-TV:/Applications/minecraft/mcserver root# java -Xmx128M -Xms128M net.minecraft.server.MinecraftServer nogui
[Lmp;@69aa18
146 recipes
[Lmp;@69aa18
16 achievements
2011-05-19 03:01:17 [INFO] Starting minecraft server version Beta 1.5_02
2011-05-19 03:01:17 [WARNING] **** NOT ENOUGH RAM!
2011-05-19 03:01:17 [WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
2011-05-19 03:01:17 [INFO] Loading properties
2011-05-19 03:01:17 [INFO] Starting Minecraft server on *:25565
java.lang.NoSuchMethodError: setPerformancePreferences
at cl.<init>(SourceFile:25)
at net.minecraft.server.MinecraftServer.c(SourceFile: 129)
at net.minecraft.server.MinecraftServer.run(SourceFil e:263)
at bj.run(SourceFile:394)
2011-05-19 03:01:17 [SEVERE] Unexpected exception
java.lang.NoSuchMethodError: setPerformancePreferences
at cl.<init>(SourceFile:25)
at net.minecraft.server.MinecraftServer.c(SourceFile: 129)
at net.minecraft.server.MinecraftServer.run(SourceFil e:263)
at bj.run(SourceFile:394)

#7

slycrel
    slycrel

    Tree Puncher

  • Members
  • 17 posts

Posted 24 May 2011 - 03:49 AM

I am also in the same place as you are and would like to get past this.  I wonder if any modders could help out here.  is it possible that setPerformacePreferences is in another directory or something?

#8

andydam
    andydam

    Out of the Water

  • Members
  • 3 posts

Posted 18 September 2011 - 09:53 PM

This might be an bad bump, but if you pick up an Apple TV 1, you'll be able to run a bukkit and minecraft server, I'm running it on mine now.