I’m having much difficulty running my jar file, probably because I’m not sure the proper syntaxes to use when using various switches on the commandline. Here’s what I have:
java -classpath %appdata%\.minecraft\bin\minecraft.jar;%appdata%\.minecraft\bin\mp3spi.jar;%appdata%\.minecraft\bin\jl.jar;%appdata%\.minecraft\bin\tritonus.jar;%appdata%\.minecraft\bin\lwjgl.jar; net.minecraft.client.Minecraft username password server.com:25565 -D java.library.path=%appdata%\.minecraft\bin\lwjgl.jar
I need to have all of those things included in my classpath, and also set -D to the value I have.
Can someone help me identify the problem? Thanks 🙂
Put your options (classpath with
-classpath, system properties with-D) first, then your class (net.minecraft.client.Minecraft), finally the class arguments (username,password, …).Also, it’s
-Dproperty=value, with no blank separating the-Dand your setting.Finally,
java.library.pathpoints to a directory, not a file.Here’s the doc.