code: private static boolean printLogInfo(int obj) {
          IntBuffer iVal = BufferUtils.createIntBuffer(1);
          ARBShaderObjects.glGetObjectParameterARB(obj,
                  ARBShaderObjects.GL_OBJECT_INFO_LOG_LENGTH_ARB, iVal);
  
          int length = iVal.get();
          if (length > 1) {
              // We have some info we need to output.
              ByteBuffer infoLog = BufferUtils.createByteBuffer(length);
              iVal.flip();
              ARBShaderObjects.glGetInfoLogARB(obj, iVal, infoLog);
              byte[] infoBytes = new byte[length];
              infoLog.get(infoBytes);
              String out = new String(infoBytes);
              System.out.println("Info log:\n" + out);
          } else {
              return true;
          }
          return false;
      }
docs: Helper to get the log messages from the shader compiler.