Schwowsers
Members-
Posts
1 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
Schwowsers's Achievements
Tree Puncher (2/8)
1
Reputation
-
Two, going off the run task you posted in this thread, I believe you have the wrong syntax for the args and jvmArgs methods, as pointed out by a Gradle dev here. Instead of passing each set of arguments as a single string, pass each token separately, as follows: args("--version", "1.6", "--tweakClass", "cpw.mods.fml.common.launcher.FMLTweaker", "--accessToken", "FML") jvmArgs("-Xincgc", "-Xmx1024M", "-Xms1024M", "-Djava.library.path=${project.buildDir}/natives", "-Dfml.ignoreInvalidMinecraftCertificates=true") That said, these run tasks appear to work for Forge version 1.6.4-9.11.1.964: task runClient(type: JavaExec) { classpath = sourceSets.main.runtimeClasspath main = "net.minecraft.launchwrapper.Launch" args("--version", "1.6", "--tweakClass", "cpw.mods.fml.common.launcher.FMLTweaker", "--accessToken", "FML") jvmArgs("-Xincgc", "-Xmx1024M", "-Xms1024M", "-Djava.library.path=${project.buildDir}/natives", "-Dfml.ignoreInvalidMinecraftCertificates=true") workingDir("eclipse") } task runServer(type: JavaExec) { classpath = sourceSets.main.runtimeClasspath main = "cpw.mods.fml.relauncher.ServerLaunchWrapper" jvmArgs("-Xincgc", "-Dfml.ignoreInvalidMinecraftCertificates=true") } Note that you'll have to manually configure the project's properties in order for Netbeans' run button (or F6) to execute either of these tasks. Also, keep in mind that if you use the clean task, it will delete your build folder along with the natives folder inside. You can run the extractNatives task again to get it back.