Posted March 3, 201411 yr I use GL11 in my mod several times in some renderers.. I can run my mod in Eclipse. If I try to compile it with Gradle, I get the following errors: **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn MCP Data version : unknown **************************** C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\natives :compileApiJava UP-TO-DATE :processApiResources UP-TO-DATE :apiClasses UP-TO-DATE :sourceMainJava UP-TO-DATE :compileJava warning: [options] bootstrap class path not set in conjunction with -source 1.6 C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderBlockMine.java:9: error: package org.lwjgl. opengl does not exist import org.lwjgl.opengl.GL11; ^ C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderBlockSpikes.java:3: error: package org.lwjg l.opengl does not exist import org.lwjgl.opengl.GL11; ^ C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityGrenade.java:8: error: package org.lw jgl.opengl does not exist import org.lwjgl.opengl.GL11; ^ C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityShuriken.java:3: error: package org.l wjgl.opengl does not exist import org.lwjgl.opengl.GL11; ^ C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\entities\EntityShuriken.java:5: error: package io.netty. buffer does not exist import io.netty.buffer.ByteBuf; ^ C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\entities\EntityShuriken.java:59: error: cannot find symb ol public void writeSpawnData(ByteBuf data) { ^ symbol: class ByteBuf location: class EntityShuriken C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\entities\EntityShuriken.java:64: error: cannot find symb ol public void readSpawnData(ByteBuf data) { ^ symbol: class ByteBuf location: class EntityShuriken C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderBlockMine.java:23: error: cannot find symbo l GL11.glTranslatef(0.0F, -0.1F, 0.0F); ^ symbol: variable GL11 location: class RenderBlockMine C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderBlockMine.java:30: error: cannot find symbo l GL11.glTranslatef(0.0F, 0.1F, 0.0F); ^ symbol: variable GL11 location: class RenderBlockMine C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderBlockSpikes.java:23: error: cannot find sym bol GL11.glTranslatef(0.0F, -0.1F, 0.0F); ^ symbol: variable GL11 location: class RenderBlockSpikes C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderBlockSpikes.java:30: error: cannot find sym bol GL11.glTranslatef(0.0F, 0.1F, 0.0F); ^ symbol: variable GL11 location: class RenderBlockSpikes C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityGrenade.java:28: error: cannot find s ymbol GL11.glPushMatrix(); ^ symbol: variable GL11 location: class RenderEntityGrenade C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityGrenade.java:29: error: cannot find s ymbol GL11.glTranslatef((float) x, (float) y, (float) z); ^ symbol: variable GL11 location: class RenderEntityGrenade C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityGrenade.java:33: error: cannot find s ymbol GL11.glScalef(scale, scale, scale); ^ symbol: variable GL11 location: class RenderEntityGrenade C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityGrenade.java:85: error: cannot find s ymbol GL11.glScalef(1.0F/scale, 1.0F/scale, 1.0F/scale); ^ symbol: variable GL11 location: class RenderEntityGrenade C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityGrenade.java:86: error: cannot find s ymbol GL11.glTranslatef((float) -x, (float) -y, (float) -z); ^ symbol: variable GL11 location: class RenderEntityGrenade C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityGrenade.java:87: error: cannot find s ymbol GL11.glPopMatrix(); ^ symbol: variable GL11 location: class RenderEntityGrenade C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityShuriken.java:28: error: cannot find symbol GL11.glPushMatrix(); ^ symbol: variable GL11 location: class RenderEntityShuriken C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityShuriken.java:29: error: cannot find symbol GL11.glTranslatef((float) x, (float) y, (float) z); ^ symbol: variable GL11 location: class RenderEntityShuriken C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityShuriken.java:42: error: cannot find symbol GL11.glScalef(scale, scale, scale); ^ symbol: variable GL11 location: class RenderEntityShuriken C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityShuriken.java:95: error: cannot find symbol GL11.glScalef(1.0F/scale, 1.0F/scale, 1.0F/scale); ^ symbol: variable GL11 location: class RenderEntityShuriken C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityShuriken.java:96: error: cannot find symbol GL11.glTranslatef((float) -x, (float) -y, (float) -z); ^ symbol: variable GL11 location: class RenderEntityShuriken C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft\build\sources\java\com\b edrockminer\weaponCraft\client\RenderEntityShuriken.java:97: error: cannot find symbol GL11.glPopMatrix(); ^ symbol: variable GL11 location: class RenderEntityShuriken Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 23 errors 1 warning :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 9.735 secs C:\Users\Julian\Desktop\Modding\WeaponCraft\WeaponCraft> Why can't gradle import lwjgl? Help please! http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
March 4, 201411 yr Author Actually there is no build/natives folder.. Where can I get the libraries to put there? http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
March 4, 201411 yr rerun gradlew.bat setupDevWorkspace , or the decomp workspace if you used that. http://i56.tinypic.com/ruu0ao.png[/img] ^^ url to be changed.
March 4, 201411 yr Author rerun gradlew.bat setupDevWorkspace , or the decomp workspace if you used that. I rerunned it already, but that wasn't that effective because nearly everything was skipped: **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn MCP Data version : unknown **************************** C:\Users\Julian\Desktop\Modding\Forge\build\natives :extractUserDev :getAssetsIndex :getAssets :copyAssets :downloadClient SKIPPED :downloadServer SKIPPED :mergeJars SKIPPED :applyBinPatches SKIPPED :downloadMcpTools UP-TO-DATE :genSrgs UP-TO-DATE :getJavadocs SKIPPED :deobfBinJar UP-TO-DATE :extractNatives :setupDevWorkspace BUILD SUCCESSFUL Total time: 20.746 secs http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
March 4, 201411 yr Author I reran gradle with the following commands and it works! gradlew.bat cleanCache setupDevWorkspace http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
March 19, 201411 yr Author I have to come back to this topic, because I created another Mod which causes the same problems. Errors: **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn MCP Data version : unknown **************************** :compileApiJava UP-TO-DATE :processApiResources UP-TO-DATE :apiClasses UP-TO-DATE :sourceMainJava UP-TO-DATE :compileJava warning: [options] bootstrap class path not set in conjunction with -source 1.6 C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\GuiBookshelf.java:5: error: package io.ne tty.buffer does not exist import io.netty.buffer.ByteBuf; ^ C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\GuiBookshelf.java:6: error: package io.ne tty.buffer does not exist import io.netty.buffer.Unpooled; ^ C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\GuiBookshelf.java:23: error: package org. apache.logging.log4j does not exist import org.apache.logging.log4j.LogManager; ^ C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\GuiBookshelf.java:24: error: package org. apache.logging.log4j does not exist import org.apache.logging.log4j.Logger; ^ C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\GuiBookshelf.java:25: error: package org. lwjgl.input does not exist import org.lwjgl.input.Keyboard; ^ C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\GuiBookshelf.java:26: error: package org. lwjgl.opengl does not exist import org.lwjgl.opengl.GL11; ^ C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:10: error: package org.lwjgl.opengl does not exist import org.lwjgl.opengl.GL11; ^ C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\GuiBookshelf.java:85: error: cannot find symbol Keyboard.enableRepeatEvents(false); ^ symbol: variable Keyboard location: class GuiBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\GuiBookshelf.java:134: error: cannot find symbol GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); ^ symbol: variable GL11 location: class GuiBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\GuiBookshelf.java:179: error: cannot find symbol GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); ^ symbol: variable GL11 location: class NextPageButton C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:27: error: cannot find symbol GL11.glPushMatrix(); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:28: error: cannot find symbol GL11.glTranslatef((float)x + 0.5F, (float)y + 0.75F, (float)z + 0.5F); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:29: error: cannot find symbol GL11.glRotatef(180, 0, 0, 1); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:30: error: cannot find symbol GL11.glRotatef(Minecraft.getMinecraft().thePlayer.rotationYawHead, 0, 1, 0); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:31: error: cannot find symbol GL11.glTranslatef(0.0F, 0.0F, -0.75F); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:32: error: cannot find symbol GL11.glNormal3f(0.0F, 0.0F, 1.0F); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:33: error: cannot find symbol GL11.glScalef(0.03F, 0.03F, 0.03F); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:35: error: cannot find symbol GL11.glEnable(GL11.GL_ALPHA_TEST); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:35: error: cannot find symbol GL11.glEnable(GL11.GL_ALPHA_TEST); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:36: error: cannot find symbol GL11.glDisable(GL11.GL_LIGHTING); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:36: error: cannot find symbol GL11.glDisable(GL11.GL_LIGHTING); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:37: error: cannot find symbol GL11.glDepthMask(false); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:38: error: cannot find symbol GL11.glDisable(GL11.GL_DEPTH_TEST); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:38: error: cannot find symbol GL11.glDisable(GL11.GL_DEPTH_TEST); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:39: error: cannot find symbol GL11.glEnable(GL11.GL_BLEND); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:39: error: cannot find symbol GL11.glEnable(GL11.GL_BLEND); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:44: error: cannot find symbol GL11.glDisable(GL11.GL_TEXTURE_2D); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:44: error: cannot find symbol GL11.glDisable(GL11.GL_TEXTURE_2D); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:53: error: cannot find symbol GL11.glEnable(GL11.GL_TEXTURE_2D); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:53: error: cannot find symbol GL11.glEnable(GL11.GL_TEXTURE_2D); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:55: error: cannot find symbol GL11.glEnable(GL11.GL_DEPTH_TEST); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:55: error: cannot find symbol GL11.glEnable(GL11.GL_DEPTH_TEST); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:56: error: cannot find symbol GL11.glDepthMask(true); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:57: error: cannot find symbol GL11.glEnable(GL11.GL_LIGHTING); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:57: error: cannot find symbol GL11.glEnable(GL11.GL_LIGHTING); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:58: error: cannot find symbol GL11.glDisable(GL11.GL_BLEND); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:58: error: cannot find symbol GL11.glDisable(GL11.GL_BLEND); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:59: error: cannot find symbol GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\source s\java\com\bedrockminer\bookshelf\core\RenderTileEntityBookshelf.java:60: error: cannot find symbol GL11.glPopMatrix(); ^ symbol: variable GL11 location: class RenderTileEntityBookshelf Note: C:\Users\Julian\Desktop\Modding\ReadableBookshelf\ReadableBookshelf\build\ sources\java\com\bedrockminer\bookshelf\core\ItemBlockReadableBookshelf.java use s unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 39 errors 1 warning :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 21.277 secs Drücken Sie eine beliebige Taste . . . I reinstalled forge two times with this parameters: gradlew.bat cleanCache setupDecompWorkspace setupDevWorkspace eclipse I still get te same error. What is wrong with the GL11 classes?! http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
March 19, 201411 yr Author Ok, i didn't mention this clearly: I ran them in several commands one after each other. http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.