Solved Again error whit finding main class!

Discussion in 'Spigot Plugin Help' started by GekkeStef, May 24, 2016.

  1. Yes i got the error again!
    [08:10:00] [Server thread/INFO]: Starting minecraft server version 1.8
    [08:10:00] [Server thread/INFO]: Loading properties
    [08:10:00] [Server thread/INFO]: Default game type: CREATIVE
    [08:10:00] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-550ebac-7019900 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
    [08:10:00] [Server thread/INFO]: Debug logging is disabled
    [08:10:00] [Server thread/INFO]: Using 4 threads for Netty based IO
    [08:10:00] [Server thread/INFO]: Server Ping Player Sample Count: 12
    [08:10:00] [Server thread/INFO]: Generating keypair
    [08:10:00] [Server thread/INFO]: Starting Minecraft server on *:25565
    [08:10:01] [Server thread/INFO]: Set PluginClassLoader as parallel capable
    [08:10:01] [Server thread/ERROR]: Could not load 'plugins\EScoreBoard - Custom.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: Cannot find main class `com.mienka.escoreboard.Main'
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:66) ~[spigot.jar:git-Spigot-550ebac-7019900]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot.jar:git-Spigot-550ebac-7019900]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot.jar:git-Spigot-550ebac-7019900]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot.jar:git-Spigot-550ebac-7019900]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [spigot.jar:git-Spigot-550ebac-7019900]
    at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [spigot.jar:git-Spigot-550ebac-7019900]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [spigot.jar:git-Spigot-550ebac-7019900]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]
    Caused by: java.lang.ClassNotFoundException: com.mienka.escoreboard.Main
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_91]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot.jar:git-Spigot-550ebac-7019900]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-Spigot-550ebac-7019900]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
    at java.lang.Class.forName0(Native Method) ~[?:1.8.0_91]
    at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_91]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot.jar:git-Spigot-550ebac-7019900]
    ... 7 more
    [08:10:01] [Server thread/ERROR]: Could not load 'plugins\premium_1_70 (1).jar' in folder 'plugins'
    org.bukkit.plugin.UnknownDependencyException: Vault
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:219) [spigot.jar:git-Spigot-550ebac-7019900]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [spigot.jar:git-Spigot-550ebac-7019900]
    at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [spigot.jar:git-Spigot-550ebac-7019900]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [spigot.jar:git-Spigot-550ebac-7019900]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]
    [08:10:01] [Server thread/INFO]: [Essentials] Loading Essentials vTeamCity
    [08:10:01] [Server thread/INFO]: [EssentialsSpawn] Loading EssentialsSpawn vTeamCity
    [08:10:01] [Server thread/INFO]: **** Beginning UUID conversion, this may take A LONG time ****
    [08:10:01] [Server thread/INFO]: Preparing level "world"
    [08:10:01] [Server thread/INFO]: -------- World Settings For [world] --------
    [08:10:01] [Server thread/INFO]: Item Despawn Rate: 6000
    [08:10:01] [Server thread/INFO]: Item Merge Radius: 2.5
    [08:10:01] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [08:10:01] [Server thread/INFO]: Anti X-Ray: true
    [08:10:01] [Server thread/INFO]: Engine Mode: 1
    [08:10:01] [Server thread/INFO]: Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
    [08:10:01] [Server thread/INFO]: Replace Blocks: [1, 5]
    [08:10:01] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [08:10:01] [Server thread/INFO]: Mob Spawn Range: 4
    [08:10:01] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
    [08:10:01] [Server thread/INFO]: Cactus Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Cane Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Melon Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Mushroom Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Sapling Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Wheat Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [08:10:01] [Server thread/INFO]: Random Lighting Updates: false
    [08:10:01] [Server thread/INFO]: Alternative Hopper Ticking: false
    [08:10:01] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [08:10:01] [Server thread/INFO]: Structure Info Saving: true
    [08:10:01] [Server thread/INFO]: Sending up to 10 chunks per packet
    [08:10:01] [Server thread/INFO]: Max TNT Explosions: 100
    [08:10:01] [Server thread/INFO]: Arrow Despawn Rate: 1200
    [08:10:01] [Server thread/INFO]: View Distance: 10
    [08:10:01] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [08:10:01] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
    [08:10:01] [Server thread/INFO]: Chunks to Grow per Tick: 650
    [08:10:01] [Server thread/INFO]: Clear tick list: false
    [08:10:01] [Server thread/INFO]: Experience Merge Radius: 3.0
    [08:10:01] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
    [08:10:01] [Server thread/INFO]: Max Entity Collisions: 8
    [08:10:01] [Server thread/INFO]: -------- World Settings For [world_nether] --------
    [08:10:01] [Server thread/INFO]: Item Despawn Rate: 6000
    [08:10:01] [Server thread/INFO]: Item Merge Radius: 2.5
    [08:10:01] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [08:10:01] [Server thread/INFO]: Anti X-Ray: true
    [08:10:01] [Server thread/INFO]: Engine Mode: 1
    [08:10:01] [Server thread/INFO]: Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
    [08:10:01] [Server thread/INFO]: Replace Blocks: [1, 5]
    [08:10:01] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [08:10:01] [Server thread/INFO]: Mob Spawn Range: 4
    [08:10:01] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
    [08:10:01] [Server thread/INFO]: Cactus Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Cane Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Melon Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Mushroom Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Sapling Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Wheat Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [08:10:01] [Server thread/INFO]: Random Lighting Updates: false
    [08:10:01] [Server thread/INFO]: Alternative Hopper Ticking: false
    [08:10:01] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [08:10:01] [Server thread/INFO]: Structure Info Saving: true
    [08:10:01] [Server thread/INFO]: Sending up to 10 chunks per packet
    [08:10:01] [Server thread/INFO]: Max TNT Explosions: 100
    [08:10:01] [Server thread/INFO]: Arrow Despawn Rate: 1200
    [08:10:01] [Server thread/INFO]: View Distance: 10
    [08:10:01] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [08:10:01] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
    [08:10:01] [Server thread/INFO]: Chunks to Grow per Tick: 650
    [08:10:01] [Server thread/INFO]: Clear tick list: false
    [08:10:01] [Server thread/INFO]: Experience Merge Radius: 3.0
    [08:10:01] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
    [08:10:01] [Server thread/INFO]: Max Entity Collisions: 8
    [08:10:01] [Server thread/INFO]: -------- World Settings For [world_the_end] --------
    [08:10:01] [Server thread/INFO]: Item Despawn Rate: 6000
    [08:10:01] [Server thread/INFO]: Item Merge Radius: 2.5
    [08:10:01] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [08:10:01] [Server thread/INFO]: Anti X-Ray: true
    [08:10:01] [Server thread/INFO]: Engine Mode: 1
    [08:10:01] [Server thread/INFO]: Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
    [08:10:01] [Server thread/INFO]: Replace Blocks: [1, 5]
    [08:10:01] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [08:10:01] [Server thread/INFO]: Mob Spawn Range: 4
    [08:10:01] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
    [08:10:01] [Server thread/INFO]: Cactus Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Cane Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Melon Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Mushroom Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Sapling Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Wheat Growth Modifier: 100%
    [08:10:01] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [08:10:01] [Server thread/INFO]: Random Lighting Updates: false
    [08:10:01] [Server thread/INFO]: Alternative Hopper Ticking: false
    [08:10:01] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [08:10:01] [Server thread/INFO]: Structure Info Saving: true
    [08:10:01] [Server thread/INFO]: Sending up to 10 chunks per packet
    [08:10:01] [Server thread/INFO]: Max TNT Explosions: 100
    [08:10:01] [Server thread/INFO]: Arrow Despawn Rate: 1200
    [08:10:01] [Server thread/INFO]: View Distance: 10
    [08:10:01] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [08:10:01] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
    [08:10:01] [Server thread/INFO]: Chunks to Grow per Tick: 650
    [08:10:01] [Server thread/INFO]: Clear tick list: false
    [08:10:01] [Server thread/INFO]: Experience Merge Radius: 3.0
    [08:10:01] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
    [08:10:01] [Server thread/INFO]: Max Entity Collisions: 8
    [08:10:01] [Server thread/INFO]: Preparing start region for level 0 (Seed: 8714255893563333929)
    [08:10:02] [Server thread/INFO]: Preparing start region for level 1 (Seed: 8714255893563333929)
    [08:10:02] [Server thread/INFO]: Preparing start region for level 2 (Seed: 8714255893563333929)
    [08:10:03] [Server thread/INFO]: [Essentials] Enabling Essentials vTeamCity
    [08:10:03] [Server thread/INFO]: Bukkit version format changed. Version not checked.
    [08:10:03] [Server thread/INFO]: git-Spigot-550ebac-7019900 (MC: 1.8)
    [08:10:03] [Server thread/INFO]: 1.8-R0.1-SNAPSHOT
    [08:10:03] [Server thread/INFO]: Using locale en_US
    [08:10:03] [Server thread/INFO]: Using locale en_US
    [08:10:03] [Server thread/INFO]: Essentials: Using config file enhanced permissions.
    [08:10:03] [Server thread/INFO]: Permissions listed in as player-commands will be given to all users.
    [08:10:03] [Server thread/INFO]: [EssentialsSpawn] Enabling EssentialsSpawn vTeamCity
    [08:10:03] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [08:10:03] [Server thread/INFO]: Done (2.379s)! For help, type "help" or "?"

    So thats the log! and im gona show you my Plugin.yml/Main
    name: EScoreBoard
    main: com.mienka.escoreboard.Main
    version: 1.0
    commands:

    And now my Main class
    package com.mienka.escoreboards;

    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    import org.bukkit.entity.Player;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.Listener;
    import org.bukkit.event.player.PlayerJoinEvent;
    import org.bukkit.plugin.Plugin;
    import org.bukkit.plugin.java.JavaPlugin;
    import org.bukkit.scoreboard.DisplaySlot;
    import org.bukkit.scoreboard.Objective;
    import org.bukkit.scoreboard.Score;
    import org.bukkit.scoreboard.Scoreboard;
    import org.bukkit.scoreboard.ScoreboardManager;

    public class Main extends JavaPlugin implements Listener {

    static Plugin plugin;

    public void onEnable() {
    plugin = this;
    Bukkit.getServer().getPluginManager().registerEvents(this, this);

    }


    ScoreboardManager manager = Bukkit.getScoreboardManager();
    final Scoreboard board = manager.getNewScoreboard();
    final Objective objective = board.registerNewObjective("test", "dummy");


    @EventHandler
    public void PlayerJoin(PlayerJoinEvent e) {


    final Player p = e.getPlayer();


    Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(Main.plugin, new Runnable() {
    public void run() {

    ScoreboardManager manager = Bukkit.getScoreboardManager();
    final Scoreboard board = manager.getNewScoreboard();
    final Objective objective = board.registerNewObjective("test", "dummy");

    objective.setDisplaySlot(DisplaySlot.SIDEBAR);
    objective.setDisplayName(ChatColor.RED + "ImagineMC");

    Score score = objective.getScore(ChatColor.AQUA + "Player name:");
    score.setScore(10);

    Score score1 = objective.getScore(ChatColor.GRAY + p.getName());
    score1.setScore(9);

    Score score2 = objective.getScore(ChatColor.AQUA + "Health:");
    score2.setScore(7);

    long health = Math.round(p.getHealth());

    Score score3 = objective.getScore(ChatColor.GRAY + String.valueOf(health));
    score3.setScore(6);

    p.setScoreboard(board);

    }
    },0, 20 * 10);

    }

    }
     
    #1 GekkeStef, May 24, 2016
    Last edited: May 24, 2016
  2. First of all your package is set to package com.mienka.escoreboards; and you have identified your main in the plugin.yml with com.mienka.escoreboard;. Secondly you need to remove "commands:" in you plugin.yml as you don't have any. Also there is a plugin that needs vault which is also throwing an error. Hope I helped.

    Thx Pixl
     
  3. And UnknownDependencyException
    Put Vault on your server one plugin installed need Vault to work
     
  4. Can you use snipping tools and paste the package you created and the class inside?
    I mean in the project toolbar
     
  5. You mean create a new package and paste your Main class inside that package? because you are not able to paste a package inside a package with a class...also iNoXs, I already stated that he did not install vault not sure if he is aware of what an unknownDependencyException is.

    Thx Pixl
     
  6. The plugin premium_1_70 (1).j in your pl folder need vaut
     
  7. I know, thanks!
     
  8. So what do you mean, com.mienka.escoreboards.main not right? orrr