Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to course page

Bits and pieces

Bit operators and their use in modding

Bineray literals are not supported

  • 2013-08-07 23:22:49
    When recompiling my mod I get this error from the recompile.bat:
    bineray literals are not supported in -sourc 1.6 use -source 7

    Is there a way to change the java version mcp uses or should I remove the bineray operators?
  • 2013-08-07 23:45:27
    Ok, I fixed it by letting Eclipse compile minecraft, get the compiled files from eclipse/bin and put them in the mcp bin and then hit reobf. You just need to copy the mod files to the mcp bin.
  • 2013-08-08 10:28:01
    thanks dutchie :)

    also, in case anyone else needs it, you have to copy your mod folder, cpw folder, ibxm folder, net folder, paulscode folder and Start.class
  • 2013-08-08 11:35:51
    Yeah, that was a real pain to figure out :/ (atleast with my slow brain :P)
  • 2013-08-08 12:16:33
    Yeah, it's a bit annoying that the 0b1001 notation didn't exist before Java 7. If one doesn't like being in Java 7 one has to use a normal integer (9) or parsing a string to an integer (Integer.parseInt("1001", 2)).
  • Log in or sign up to reply to this thread