so ive seen this multiple times, but still cannot seem to find a solution for it. (by the way, everything is up to date on my osx leopard).
the readme in the server files says to type "java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer" into terminal (without quotes).
doing so gives me this: Exception in thread "main" java.lang.NoClassDefFoundError: com/mojang/minecraft/server/MinecraftServer
ive tried multiple times doing things differently. for example, ive replaced java with the file directory TO java which didnt work either. ive dabbled in terminal before, but nothing serious, so im not too sure how to make this work. i've already looked in all of the other threads about this topic but nothing seems to work. any help will be appreciated. thank you.
so ive seen this multiple times, but still cannot seem to find a solution for it. (by the way, everything is up to date on my osx leopard).
the readme in the server files says to type "java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer" into terminal (without quotes).
doing so gives me this: Exception in thread "main" java.lang.NoClassDefFoundError: com/mojang/minecraft/server/MinecraftServer
ive tried multiple times doing things differently. for example, ive replaced java with the file directory TO java which didnt work either. ive dabbled in terminal before, but nothing serious, so im not too sure how to make this work. i've already looked in all of the other threads about this topic but nothing seems to work. any help will be appreciated. thank you.
Are you cd'd into the same directory as minecraft-server.jar? If not, cd into it... An ls should show all the files there, including minecraft-server.jar.
ah yes, i forgot to post the results from that, wehn i cd into the directory and then enter the command, i get this:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
i just updated java on my system, so i dont think that should be the problem. should i uninstall in and then re-install maybe?
Do you have a system that is 64 bit? This would be any system with a quad core, or any Core 2 Duo. Core Duo macs are not eligible for this. The server software was compiled with Java 6 (1.6), and Apple only pushed the 6 update for Macs with 64 bit architecture. Sorry :sad.gif:
Do you have a system that is 64 bit? This would be any system with a quad core, or any Core 2 Duo. Core Duo macs are not eligible for this. The server software was compiled with Java 6 (1.6), and Apple only pushed the 6 update for Macs with 64 bit architecture. Sorry :sad.gif:
i have a 2.2 GHz Intel Core 2 Duo macbook with 1 GB of ram.
so im guessing its something else causing the problem.
Check your Java version. I guarantee it won't be Java 6 (version number 1.6).
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)
bahhhh but you said "This would be any system with a quad core, or any Core 2 Duo". isn't that what i have?
if it doesnt work, do you think they will ever push an update for the non 64 bits?
Check your Java version. I guarantee it won't be Java 6 (version number 1.6).
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)
bahhhh but you said "This would be any system with a quad core, or any Core 2 Duo". isn't that what i have?
if it doesnt work, do you think they will ever push an update for the non 64 bits?
Yeah, you might have to download the update manually from Apple. http://www.apple.com/downloads/macosx/a ... date1.html is what I have, claims it won't change default path... It's 2AM so I'm going to sleep, but if you still need help tomorrow I'll dig around some more.
ok so i just installed the update you gave me, but when i ask terminal what java version i have it still says i have "java version "1.5.0_19". is that because it doesn't change the default path? anyways, i tried starting up the server with terminal and it gave me the same result. "Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file" etc. any more suggestions?
Once you’ve downloaded and installed the Java beta, there’s another not-terribly-obvious step you have to do. Go to /applications/utilities/java and run the Java Preferences app.
On the General tab, under Java Applet Runtime Settings, select “Java SE 6″. In Java Application Runtime Settings, re-arrange the list of Java versions so that Java SE 6 is the top item (click the image for a full-size picture of the proper settings).
Once you’ve downloaded and installed the Java beta, there’s another not-terribly-obvious step you have to do. Go to /applications/utilities/java and run the Java Preferences app.
On the General tab, under Java Applet Runtime Settings, select “Java SE 6″. In Java Application Runtime Settings, re-arrange the list of Java versions so that Java SE 6 is the top item (click the image for a full-size picture of the proper settings).
Once you’ve done that, hit Save, and done.
Then try to do that again.
IT WORKED! :biggrin.gif:
thank you, thank you everyone.
By now I got this far (I have the latest version of Java - updated today - and am on Mac OSX 10.5.7):
1) Open Terminal and write "cd" and then space.
2) Drag the minecraft-server folder into Terminal.
3) Click enter.
4) Copy Paste "java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer"
5) Click enter.
6) By the end of all this you should get something like:
19:17:32 Setting up
19:17:32 Loading level
19:17:32 Now accepting input on 25565
19:17:32 [console] admins:
19:17:32 Level saved! Load: 0/16
19:17:33 To connect directly to this server, surf to: [*insert link here*]
19:17:33 (This is also in externalurl.txt)
I also went to Firewall Settings, clicked the "+" and clicked on the "minecraft-server.jar", which is supposed to open the port. Now theoretically I should be able to access my own server. I'm not. If I try to get on it, I get this:
Friend of mine said that it's a lib error, but durrr I have no idea what that is and he said I can't do anything. Still asking. If anybody's got it to work on mac I'd be happy.
2 - Go to /applications/utilities/java and run the Java Preferences app. On the General tab, under Java Applet Runtime Settings, select “Java SE 6″. In Java Application Runtime Settings, re-arrange the list of Java versions so that Java SE 6 is the top item (click the image for a full-size picture of the proper settings). Once you’ve done that, hit Save, and done.
GET A PC. macs are for people who think buying one will make it look like they have alot of money to throw out. macs are over-priced, under-compatible, and just a complete joke in general.
lmao. don't even get me started on this ****. i bought a mac because i like the OS, and i don't need super amazing hardware to do the **** i want. if you prefer PC's, that's your own opinion, but don't come into a thread about setting up servers to throw your opinions in our face.
OK when it came to the applications/utilities/java and run the java software step i did that and it quit and said it quit unexpectedly. I tried again and again, nothing I NEED HELP
the readme in the server files says to type "java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer" into terminal (without quotes).
doing so gives me this: Exception in thread "main" java.lang.NoClassDefFoundError: com/mojang/minecraft/server/MinecraftServer
ive tried multiple times doing things differently. for example, ive replaced java with the file directory TO java which didnt work either. ive dabbled in terminal before, but nothing serious, so im not too sure how to make this work. i've already looked in all of the other threads about this topic but nothing seems to work. any help will be appreciated. thank you.
Are you cd'd into the same directory as minecraft-server.jar? If not, cd into it... An ls should show all the files there, including minecraft-server.jar.
i just updated java on my system, so i dont think that should be the problem. should i uninstall in and then re-install maybe?
Do you have a system that is 64 bit? This would be any system with a quad core, or any Core 2 Duo. Core Duo macs are not eligible for this. The server software was compiled with Java 6 (1.6), and Apple only pushed the 6 update for Macs with 64 bit architecture. Sorry :sad.gif:
i have a 2.2 GHz Intel Core 2 Duo macbook with 1 GB of ram.
so im guessing its something else causing the problem.
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)
bahhhh but you said "This would be any system with a quad core, or any Core 2 Duo". isn't that what i have?
if it doesnt work, do you think they will ever push an update for the non 64 bits?
Yeah, you might have to download the update manually from Apple. http://www.apple.com/downloads/macosx/a ... date1.html is what I have, claims it won't change default path... It's 2AM so I'm going to sleep, but if you still need help tomorrow I'll dig around some more.
On the General tab, under Java Applet Runtime Settings, select “Java SE 6″. In Java Application Runtime Settings, re-arrange the list of Java versions so that Java SE 6 is the top item (click the image for a full-size picture of the proper settings).
Once you’ve done that, hit Save, and done.
Then try to do that again.
IT WORKED! :biggrin.gif:
thank you, thank you everyone.
There should be a sticky with mac servers....
1) Open Terminal and write "cd" and then space.
2) Drag the minecraft-server folder into Terminal.
3) Click enter.
4) Copy Paste "java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer"
5) Click enter.
6) By the end of all this you should get something like:
19:17:32 Setting up
19:17:32 Loading level
19:17:32 Now accepting input on 25565
19:17:32 [console] admins:
19:17:32 Level saved! Load: 0/16
19:17:33 To connect directly to this server, surf to: [*insert link here*]
19:17:33 (This is also in externalurl.txt)
I also went to Firewall Settings, clicked the "+" and clicked on the "minecraft-server.jar", which is supposed to open the port. Now theoretically I should be able to access my own server. I'm not. If I try to get on it, I get this:
Friend of mine said that it's a lib error, but durrr I have no idea what that is and he said I can't do anything. Still asking. If anybody's got it to work on mac I'd be happy.
xx clairic
if you are, you need follow these instructions.
1 - download and install this version of java
2 - Go to /applications/utilities/java and run the Java Preferences app. On the General tab, under Java Applet Runtime Settings, select “Java SE 6″. In Java Application Runtime Settings, re-arrange the list of Java versions so that Java SE 6 is the top item (click the image for a full-size picture of the proper settings). Once you’ve done that, hit Save, and done.
try that.
lmao. don't even get me started on this ****. i bought a mac because i like the OS, and i don't need super amazing hardware to do the **** i want. if you prefer PC's, that's your own opinion, but don't come into a thread about setting up servers to throw your opinions in our face.
tl;dr - GET THE **** OUT.