Posted August 20, 201213 yr Hi, Been converting pixelmon over to 1.3.2 with forge 4.0.0 and am having trouble getting it to link to an external library that we use. In previous versions of forge i was able to just stick the jar for this library in the mods folder with my mod and it would be loaded but it doesn't seem to matter where i put it with this current version, it can't find it. I had it in my lib folder in mcp when i compiled and putting it in the lib folder in .minecraft doesn't work. Any ideas? MrMasochism
August 20, 201213 yr Does it work if you put in in the mods folder? Read the EAQ before posting! OR ELSE! This isn't building better software, its trying to grab a place in the commit list of a highly visible github project. www.forgeessentials.com Don't PM me, I don't check this account unless I have to.
August 20, 201213 yr There is a lib folder in the .minecraft directory now when forge is installed, did you try there? Better question though, what does it do?
August 20, 201213 yr Author yeah I have tried there. Trying to load a class from that library throws a classNotFound Exception
August 20, 201213 yr http://mvnrepository.com/artifact/org.xerial/sqlite-jdbc/3.7.2 It gives access to using databases and such, and it worked pre 1.3
August 20, 201213 yr Hmm, I am unsure as to the best place to link that in if not the root .minecraft or bin directories, may need to wait for cpw/lex to say.
August 20, 201213 yr Tossing a .jar into the mods folder will have it added to the class path, so not sure why it would be an issue to toss it there. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
August 20, 201213 yr Author Putting it in the mods directory was the first thing we tried and we had no luck. I think we've found a workaround for now but it's a workaround that won't necessarily work if other people need external libraries
August 20, 201213 yr Author Sorry realise that was a bit ambiguous. What we ended up doing was bringing the external jar's classes inside our mod's zip which is fine in this case as they have a very open license
August 27, 201213 yr Author Turns out that for some people, putting the library inside our mod's zip isn't working, they aren't a majority but it's happening. However, putting the external library anywhere else is still not working. Minecraft isn't picking it up and the game is crashing. I have a class check on load which looks to see if the classes from that library are available. In 1.2.5 this would work every time if the library was in the mods directory alongside the mod but now in 1.3.2 no matter where I put it it doesn't get linked in. I have tried every conceivable location. The mod just spits out the error on the class check that it couldn't find the library
August 29, 201213 yr Just because it's in the mods dir does not mean it gets loaded.. What library are you looking to add?
September 5, 201213 yr Author We are looking to add an sqlite jdbc library. We are now running into issues as packaging it in the zip which works fine for windows users doesn't work for mac users. Is there a way of making sure this lib gets added to the classpath?
September 5, 201213 yr Update FML. This was recently changed so random libs in the mods dir will be loaded into the classpath. Ugly though. You should package sqlite as a coremod and then everyone can use it and depend on it properly. Mostly it would just be adding a meta-inf and a simple mod container.
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.