Problem/Bug Please, My java plugin

Discussion in 'General Help' started by CooperCraft15, Jan 19, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    CooperCraft15

    So im learning to use java and make plugins, damn its hard, anyway I made (Attempted) to make one and this is what came up;

    Code:
    [20:12:08] [Server thread/WARN]: org.bukkit.plugin.InvalidPluginException: Cannot find main class `com.RenoVirus.test'
    
    [20:12:08] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:66)
    
    [20:12:08] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131)
    
    [20:12:08] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329)
    
    [20:12:08] [Server thread/WARN]: at co.technius.PluginManager.PluginControl.loadPlugin(PluginControl.java:209)
    
    [20:12:08] [Server thread/WARN]: at co.technius.PluginManager.PMCommandExecutor.loadCmd(PMCommandExecutor.java:396)
    
    [20:12:08] [Server thread/WARN]: at co.technius.PluginManager.PMCommandExecutor.onCommand(PMCommandExecutor.java:167)
    
    [20:12:08] [Server thread/WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    
    [20:12:08] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
    
    [20:12:08] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
    
    [20:12:08] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162)
    
    [20:12:08] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
    
    [20:12:08] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
    
    [20:12:08] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
    
    [20:12:08] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
    
    [20:12:08] [Server thread/WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    
    [20:12:08] [Server thread/WARN]: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    
    [20:12:08] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
    
    [20:12:08] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
    
    [20:12:08] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
    
    [20:12:08] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
    
    [20:12:08] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
    
    [20:12:08] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:745)
    
    [20:12:08] [Server thread/WARN]: Caused by: java.lang.ClassNotFoundException: com.RenoVirus.test
    
    [20:12:08] [Server thread/WARN]: at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    
    [20:12:08] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101)
    
    [20:12:08] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86)
    
    [20:12:08] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    
    [20:12:08] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    
    [20:12:08] [Server thread/WARN]: at java.lang.Class.forName0(Native Method)
    
    [20:12:08] [Server thread/WARN]: at java.lang.Class.forName(Class.java:348)
    
    [20:12:08] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:64)
    
    [20:12:08] [Server thread/WARN]: ... 21 more
     
    Last edited by a moderator: Jan 19, 2016
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    mcdorli

    It's not hard to make plugins, you just need to have java kbowledge before attempting to create one, and not learn it while you're programming plugins.
    1.) Follow java naming conventions
    2.) Ypu probably don't own RenoVirus.com
    3.) You need to enter the full path to the main class, including the main class (like me.renovirus.test.Test, where the main class' name is Test), and be aware, thisbis case sensitive.
     
Thread Status:
Not open for further replies.

Share This Page