Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved ClassNotFoundException - But im actually Importing that Class! What?

Comments in 'Plugin Development' started by TheKillerTacos, Apr 14, 2016.

  1. TheKillerTacos
    Offline

    TheKillerTacos Active Member

    Joined:
    Jan 21, 2016
    Posts:
    76
    Minecraft User:
    TheKillerTacos
    So im creating the SkyblockXT and i have this error, i have little time for Pre-Alpha release, so been fixing bugs and all that, But im stuck on this one,

    In the plugin i import this:
    PHP:
    <?php
    namespace SkyBlockXT;

    //Removed some Imports, since it was long!
    use pocketmine\plugin\PluginBase as Base;
    use 
    pocketmine\math\Vector3;
    use 
    pocketmine\utils\Random;
    use 
    SkyBlockXT\utils\SkyBlockGenerator;
    use 
    SkyBlockXT\Tools\SkyLand;
    use 
    SkyBlockXT\Tools\SkyWorld//Here is the one that errors!
    and when i load the plugin on my server this drops out:
    [Server thread/CRITICAL]: ClassNotFoundException: "Class SkyBlockXT\Tools\SkyWorld not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 115

    But im actually importing it, and the file Does exits, and is in the same folder as SkyLand:
    https://github.com/XenoNova/SkyBlockXT/tree/master/src/SkyBlockXT/Tools

    What am i doing wrong?!?!
  2. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    In the file SkyWorld.php the class is called WorldGen. Change the class name to SkyWorld.
    TheKillerTacos likes this.
  3. TheKillerTacos
    Offline

    TheKillerTacos Active Member

    Joined:
    Jan 21, 2016
    Posts:
    76
    Minecraft User:
    TheKillerTacos
    Oh! thanks! i was really busy and doing everything fast that i didnt saw that,!

Share This Page

Advertisement