In the past I have been able to launch Minecraft 1.6 from the command-line, bypassing the launcher, and everything worked great. With Minecraft 1.7.4 I can get almost all the way there, but I don't have any sound in-game. Instead, I see Unable to play unknown soundEvent errors in the trace.
Starting Minecraft from the launcher works fine, sound and all. This is on Windows 7 64-bit.
Here's the command-line I am using (username/session removed):
cd \Users\RLUser\AppData\Roaming\.minecraft
"C:\Program Files\Java\jre6\bin\java.exe" -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -Djava.library.path=C:\Users\RLUser\AppData\Roaming\.minecraft\versions\1.7.4\snapshot -cp C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\java3d\vecmath\1.3.1\vecmath-1.3.1.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\net\sf\trove4j\trove4j\3.0.3\trove4j-3.0.3.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\4.5\jopt-simple-4.5.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\io\netty\netty-all\4.0.10.Final\netty-all-4.0.10.Final.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\com\google\guava\guava\15.0\guava-15.0.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\com\google\code\gson\gson\2.2.4\gson-2.2.4.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\com\mojang\authlib\1.2\authlib-1.2.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-api\2.0-beta9\log4j-api-2.0-beta9.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-core\2.0-beta9\log4j-core-2.0-beta9.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.1-nightly-20131120\lwjgl-2.9.1-nightly-20131120.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.1-nightly-20131120\lwjgl_util-2.9.1-nightly-20131120.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\libraries\tv\twitch\twitch\5.12\twitch-5.12.jar;C:\Users\RLUser\AppData\Roaming\.minecraft\versions\1.7.4\1.7.4.jar net.minecraft.client.main.Main --username myusername --accessToken myaccesstoken --userProperties {} --version 1.7.4 --gameDir C:\Users\RLUser\AppData\Roaming\.minecraft --assetsDir C:\Users\RLUser\AppData\Roaming\.minecraft\assets
Here's the console trace with the sound errors:
C:\Users\RLUser\bin>cd \Users\RLUser\AppData\Roaming\.minecraft
[20:41:30] [main/INFO]: Setting user: myusername
[20:41:30] [main/INFO]: (Session ID is token:myaccesstoken:myusername)
[20:41:30] [Client thread/INFO]: LWJGL Version: 2.9.1
[20:41:30] [Client thread/INFO]: Reloading ResourceManager: Default
Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
[20:41:31] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[20:41:31] [Sound Library Loader/INFO]: Sound engine started
[20:41:31] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[20:41:31] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
[20:41:36] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[20:41:37] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press
[20:41:38] [Server thread/INFO]: Starting integrated minecraft server version 1.7.4
[20:41:38] [Server thread/INFO]: Generating keypair
[20:41:39] [Server thread/INFO]: Preparing start region for level 0
[20:41:39] [Server thread/INFO]: Changing view distance to 12, from 10
[20:41:39] [Server thread/INFO]: myusername[local:E:2d9f08ca] logged in with entity id 322 at (-206.89310612784573, 63.0, -122.53532329598148)
[20:41:39] [Server thread/INFO]: myusername joined the game
[20:41:39] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press
[20:41:43] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:step.stone
[20:41:44] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:step.stone
[20:41:45] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:step.stone
[20:41:46] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:step.stone
[20:41:47] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:liquid.water
[20:41:47] [Server thread/INFO]: Saving and pausing game...
[20:41:47] [Server thread/INFO]: Saving chunks for level 'My World'/Overworld
[20:41:47] [Server thread/INFO]: Saving chunks for level 'My World'/Nether
[20:41:47] [Server thread/INFO]: Saving chunks for level 'My World'/The End
[20:41:48] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press
[20:41:48] [Server thread/INFO]: Stopping server
[20:41:48] [Server thread/INFO]: Saving players
[20:41:48] [Server thread/INFO]: Saving worlds
[20:41:48] [Server thread/INFO]: Saving chunks for level 'My World'/Overworld
[20:41:48] [Server thread/INFO]: Saving chunks for level 'My World'/Nether
[20:41:48] [Server thread/INFO]: Saving chunks for level 'My World'/The End
[20:41:48] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu
[20:41:49] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press
[20:41:49] [Client thread/INFO]: Stopping!
SoundSystem shutting down...
Author: Paul Lamb, www.paulscode.com
I know that Minecraft 1.7 uses a new assets folder structure so I tried a number of things, including copying the sound/sounds folders from the older folder structure as well as creating an assets/virtual/legacy folder with the old assets under there. No change in behaviour though.
Is there some magic command-line sauce for 1.7.4 that will allow me to start the game with sound?