Server on Mac
14 replies [Last post]
Eywa
WoM Member
Members
WoM Member: 24131
WoM Coins: 2

Hello, i searched on google, but i didn't find something.

I want to make a Minecraft-Server with a Mac-Computer. How does this work?
(My english isnt so good, im German)

Ditherliss
WoM Member
Members
WoM Member: 23712
WoM Coins: -3
Yeah there is a special OS X

Yeah there is a special OS X file in the download, but I have no idea why you'd be using a Mac in the first place. Did you know those were made in Chinese Sweat Shops? The factories were even using Child Labor until someone found out. Not to mentions Macs are literally overpriced by several hundred dollars.

But whatever man your choice, like I said yes you can run a server on OS X from what I've heard.

apv301
Donator
Contributor
WoM Member: 21219
WoM Coins: 1
You need to make commercials

You need to make commercials for Microsoft dude o.o

jande417
WoM Member
Members
WoM Member: 129373
WoM Coins: 0
No

Dude really. I use a mac and a pc but my pc cant even run minecraft. Also macs and pcs are made by the same manufacturer in taiwan. Windows copied off of the Mac OSX layout  ideas for their design of the WIndows 7 Desktop. Go suck your windows balls. Its true!

JasonV3124
WoM Member
Members
WoM Member: 131874
WoM Coins: 0
Yup

It is true. Windows copied macs, though I like both. I have used a mac for a while now and I have had no problem with it. (I do wanna have a pc just in case there is a file a cant run or something. Ill get one when i have the money). And macs hardly ever get viruses so... I think windows are over priced

jonnyabc
WoM Member
Members
WoM Member: 256
WoM Coins: 7
*Beats Ditherliss with a lead pipe*

Now that, that's outta the way

Goto: Applications>Utilities>Terminal

once terminal is open, type "cd" then drag the minecraft-server folder here. it should look like this without quotation marks.        "cd /Users/YOURNAME/FOLDER OR DESTINATION YOUR MINECRAFT SERVER FOLDER IS/minecraft-server"
The spaces between "cd" and "/Users" are needed.
then press enter once it is typed. if you get a "-bash:" you did it wrong, just re type it.
after that. type this without quotations.                                     "java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer"
then press enter, and your server is now made.
Dont forget about port forwarding. Or else your server will be useless.
End Result pic for reference: http://imgur.com/vj6Yh.jpg

Valkyrie116
WoM Member
Members
WoM Member: 27305
WoM Coins: 0
I'm getting this, I've both

I'm getting this, I've both opened ports, restarted router, etc etc, it keeps saying: "Bad version number in .class file"
Terminal readout below
dans-imac:minecraft-server Dan$ java -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer
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:676)
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:317)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)

nikalus
WoM Member
Members
WoM Member: 12617
WoM Coins: 15
yup same thing here for me...

yup

same thing here for me... D:
what i REALLY want to be released is ObjMC, which is a custom minecraft server thats made to ONLY run on Mac OSX.  Can't wait for that to come out.

Valkyrie116
WoM Member
Members
WoM Member: 27305
WoM Coins: 0
Development!

I googled around and found this, which seems to be the answer to the problems.

" Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file"
this is because the code was compiled on a new version of java and u r trying to run it onthe older version of java. Please make sure that both the versoins are same.

nikalus
WoM Member
Members
WoM Member: 12617
WoM Coins: 15
um...

@valkyrie, I think you mean its compiled with an OLDER version of java, and running it with a new one. I've updated java to the most recent version and it doesn't work still

Valkyrie116
WoM Member
Members
WoM Member: 27305
WoM Coins: 0
yeah, that's your problem, if

yeah, that's your problem, if you DOWNGRADE to a lower version of java, it might be openable.

apv301
Donator
Contributor
WoM Member: 21219
WoM Coins: 1
(My english isnt so good, im

(My english isnt so good, im German)

Don't underestimate yourself, you made perfect sense =D

nikalus
WoM Member
Members
WoM Member: 12617
WoM Coins: 15
I have found the solution to the problem

To fix the error "Bad version error in .class file"

Go to Applications -> Utilities -> Java Preferences, or just search for Java Preferences in Spotlight.  Now move Java SE 6.0 to the top of both lists, and run the command to run the server and it should make the missing files, and start the server.

OR you could click Here for a complete guide to start your own minecraft server.

LUK3A11AN
WoM Member
Members
WoM Member: 55545
WoM Coins: 0
port forwarding

how to I forward my ports so people can join my server?