Mod with Api doesnt work without Ic2

  • I don't really know where i should post this, so i try it here.



    I have a mod and use the api to add a macerator,centrifuge and ore washing plant recipe. The problem is get an npe when i add the recipes and play it outside of eclipse without ic2, because it cant find the def of the class.


    I check in my code if Ic2 is loaded, but it seems like it has no use.



    Main:



    //Ic²
    IC2SupportHandler.isIC2Installed(); (= at cobaltmod.main.mod_cobalt.preLoad(mod_cobalt.java:169))




    Ic2SupportHandler:



    Crash:


    As soon as i add Ic2 it works ._.


    I also tried it in preinit and init.




    EDIT:


    I fixed it. It was a stupid mistake i made, because through the method the other classes got imported even, if they werent used ._.