EVIL YAML File of DEATH (jk) Need Help

Discussion in 'Plugin Development' started by (infected), Jul 15, 2011.

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

    (infected)

    I've made a basic plugin from some of the tutorials floating around Bukkit and after exporting the JAR I always seem to get an error because the main isn't found in YAML I have tried just about everything and desperately seek some wisdom on the subject. This is the Yaml as I believe it should look like the files are org.infected>source>source>one>one.java
    name: one
    main: org.infected.source.source.one
    version: 0.1
    author: infected
     
  2. Offline

    Kitteh

    What it should be;
    if your main plugin file is org.infected.source.source.one.one.class/java
    Code:
    name: one
    main: org.infected.source.source.one.one
    version: 1.0
    authors:
        - infected
    
     
  3. Offline

    darklust

    The main: is reserved for the absolute class path of the package. If your package name is org.infected.source.source.one, then you would append the name of the main class file, so org.infected.source.source.one.one
     
  4. Offline

    (infected)

    Ok thanks guys for the quick response I will be trying this and updating you shortly.

    151 recipes
    16 achievements
    14:05:59 [INFO] Starting minecraft server version Beta 1.7.2
    14:05:59 [INFO] Loading properties
    14:05:59 [INFO] Starting Minecraft server on *:25565
    14:05:59 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    14:05:59 [WARNING] The server will make no attempt to authenticate usernames. Be
    ware.
    14:05:59 [WARNING] While this makes the game possible to play without internet a
    ccess, it also opens up the ability for hackers to connect with any username the
    y choose.
    14:05:59 [WARNING] To change this, set "online-mode" to "true" in the server.set
    tings file.
    14:05:59 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-904-
    g9277096-b953jnks (MC: 1.7.2)
    14:06:00 [SEVERE] Could not load 'plugins\one.jar' in folder 'plugins':
    java.lang.ClassNotFoundException: org.infected.source.src.one.one
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:168)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:199)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:122)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:51)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    14:06:01 [INFO] Preparing level "world"
    14:06:04 [INFO] Preparing start region for level 0 (Seed: 7849300961580741878)
    14:06:05 [INFO] Preparing spawn area: 8%
    >stop
    14:06:06 [INFO] Preparing spawn area: 44%
    14:06:07 [INFO] Preparing spawn area: 85%
    14:06:08 [INFO] Preparing start region for level 1 (Seed: 7849300961580741878)
    14:06:08 [INFO] Preparing spawn area: 20%
    14:06:09 [INFO] Preparing spawn area: 52%
    14:06:10 [INFO] Preparing spawn area: 52%
    14:06:11 [INFO] Done (1.017s)! For help, type "help" or "?"
    14:06:15 [INFO] Stopping the server..
    14:06:15 [INFO] Stopping server
    14:06:15 [INFO] Saving chunks
    14:06:21 [INFO] Stopping server
    >Press any key to continue . . .

    btw i changed it to org.infected>source>src to aviod confusion

    Liked the timing on your first response guys second time around,,,, I'm sure your just scratching your brains.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  5. Offline

    nisovin

    Please post the package and class name of your main class.
     
  6. Offline

    (infected)

    org.infected>source>src>one>one.class/java
    and it does not work btw im using eclipse on ubuntu
     
  7. Offline

    nisovin

    At the very top of your java file, what is the package shown?
     
  8. Offline

    cholo71796

    org.infected or org>infected?
     
  9. Offline

    (infected)

    I'm still not getting it right =\ what am I doing wrong?
     
  10. Offline

    nekosune

    show the top line of the code of one.java the one that beings package org
     
  11. Offline

    (infected)

    That seemed to work. Expect to see some original plugins coming from me soon.
    cough* StarWars*cough
     
Thread Status:
Not open for further replies.

Share This Page