So as a brief update, I finally managed to move all of the mission-critical Java 6 dependent software into isolated virtual machines, so I was able to install Java 7 on the host machine. It does in fact work. I honestly have no idea if it's going to ever work on Java 6, but I hope you're able to get it working somehow.
Additionally, you need to be aware that installing Java 7 isn't possible for some people. On my server, installing Java 7 will cause several applications to stop working because they aren't compatible with 7. Since Java doesn't have a way to manage versions, this leaves some people stuck on 6.
Unfortunately this is what consumers have to deal with when someone decides to use Java instead of doing it natively.
I notice this keeps getting bumped to the next version whenever a build is released... is Mojang ever going to actually fix this, or are they going to just keep pushing it forward? Remember guys, fixing bugs is more important than adding mini games to Realms, even if it's not as flashy...
I believed this to be resolved with the '--nogui' flag but I was wrong. Here's some relevant output of what I see upon boot:
Jan 18 22:06:12 domain.com java[257]: Set a breakpoint at CGSLogError to catch errors as they are logged.
Jan 18 22:06:12 domain.com java[257]: On-demand launch of the Window Server is allowed for root user only.
Jan 18 22:06:12 domain.com java[257]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1102)
Jan 18 22:06:12 domain.com java[257]: On-demand launch of the Window Server is allowed for root user only.
After login:
Jan 18 22:08:07 domain.com WindowServer[146]: [cps/setfront] Failed setting the front application to net.minecraft.server.MinecraftServer, psn 0x0-0x1c01c, securitySessionID=0x186ab, err=-600
Jan 18 22:08:08 — last message repeated 1 time —
From a StackOverflow question:
http://stackoverflow.com/questions/18603055/getting-a-mac-to-trust-an-application-synergy-on-loginwindow
the Apple document here might be useful:
https://developer.apple.com/library/mac/technotes/tn2083/_index.html#//apple_ref/doc/uid/DTS10003794-CH1-SUBSECTION14
This indicates why I saw it "resolved" but then realized it wasn't. Normally, the window server is not available until a user logs in. Once started, the window server may quit and/or restart. (The Apple dev document explains this in detail). It seems there may be some RARE cases where the window server is available for a time, which caused it to appear solved by coincidence.
As for 'nogui' vs '--nogui', I did a test on my laptop, manually running it under a user account so I could see the window if it appeared. When I ran it using no option or using the incorrect '-nogui', I saw the actual server GUI window as expected. Running 'nogui' or '--nogui' did NOT show the window, which would seem fine, BUT it still showed the Java icon and showed the reverse domain style identifier 'net.minecraft.server.MinecraftServer' in the menubar. The 'nogui'/'--nogui' option is still using the window server. It isn't creating the window, but it's still loading the Java libraries that trigger the window server, and that's where the problem comes from.
Okay, back up. THE ISSUE IS NOT RESOLVED. I'll continue posting on the other bug report since it matches what I see and it'll be better to have just one report for the issue. It seems that in some RARE occasions, it may succeed. The Apple documentation may be of use determining why - it appears the window server may have a strange lifecycle at login that causes it to succeed but only rarely.
So, this actually should be a duplicate.
Okay, so the not-able-to-comment thing was a bug in Jira OnDemand... I was unable to log in for a few hours for some reason. Seems to be resolved now.
Ah, didn't see that one. I searched for 'window server' but I missed that one.
Also, to be clear, you say in the other bug listing that both options are accepted - this is NOT the case on Mac OS X. Only the '--nogui' version is accepted. I can confirm this on the 1.7.4 jar. In the meantime, you can resolve this bug (Edit: beat me to it) as the other one is more directly relevant and more active.
I'm using:
java -Xmx4G -Xms4G -jar binaries/current.jar nogui
The 'nogui' option (according to https://minecraft.net/download) has no dashes before it. Is this a typo?
EDIT: Ayep. So it's not the binary, it's the documentation. On that page (and the linked Wiki page) there should be two dashes before 'nogui'. Someone should probably change that. 🙂
It's unfortunate, and it's also why in my own software I avoid Java like the plague. I refuse to put my users through the crap it causes...