Class files on classpath not found

Discussion in 'Plugin Development' started by RealDope, Apr 25, 2013.

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

    RealDope

    I cloned Ultrabans and was attempting to make a small change for my personal use, but whenever I try to compile I get this error:

    Code:
    JAR creation failed. See details for additional information.
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/Ultrabans.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/History.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Ipban.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/CheckIP.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Version.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/DupeIP.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Check.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Tempban.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Reload.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Starve.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Import.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Edit.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Tempipban.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Export.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Inventory.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Ban.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Ping.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Pardon.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Clean.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Mute.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Tempjail.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Spawn.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Warn.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Jail.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Kick.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Status.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Unban.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Lockdown.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Perma.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/commands/Help.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/db/Error.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/db/SQL.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/db/SQLite.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/db/Database.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/listeners/UltraBanPlayerListener.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/listeners/UltraBanBlockListener.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/util/BanType.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/util/Formatting.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/util/Jailtools.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/com/modcrafting/ultrabans/util/EditBan.java'
      Class files on classpath not found or not accessible for: 'Ultrabans/src/net/h31ix/updater/Updater.java'
    
    When I check my workspace, all files are indeed in the correct place, and I have no clue what else could be causing this problem.

    All help is appreciated.
     
  2. Offline

    Sagacious_Zed Bukkit Docs

    RealDope
    You are going to need to provide an exact list of steps you took to arrive at this problem.
     
  3. Offline

    RealDope

    1. I already have the Github Windows Client installed
    2. Went here
    3. Clicked Clone
    4. Opened up Eclipse and made a project named Ultrabans so that it would register the files
    5. Adjusted a few files, BARELY, added one method, and called it elsewhere, nothing major
    6. Attempted to export to a jar file, got this error
    Sagacious_Zed
     
  4. Offline

    Sagacious_Zed Bukkit Docs

    RealDope
    That is not how you import a project into eclipse....
     
  5. Offline

    RealDope

    Do tell how to do it properly then, I was never taught and this way has worked for me before.
     
  6. Offline

    Sagacious_Zed Bukkit Docs

    Five seconds of googling would have found you this

    And if you downloaded Eclipse Juno for Java Developers, you can even skip the install m2eclipse and egit too
     
  7. Offline

    RealDope

    Well, that worked for the most recent version of Ultrabans on GitHub, but that's bugged.

    I tried to checkout an older commit (the one from Feb 14) but that one has no pom.xml file, so I can't use the Maven Import. How should I import it?

    Sagacious_Zed
     
  8. Offline

    Sagacious_Zed Bukkit Docs

    From the eclipse manual, How to import a project.
     
  9. Offline

    RealDope

    I tried that, and when I did that, it just had the same problem as I originally posted.
    Sagacious_Zed
     
  10. Offline

    Sagacious_Zed Bukkit Docs

    You can always try mavenizing the project. alternately paste the .classpath and .project file for the resulting eclipse project.
     
  11. Offline

    RealDope

    Got a tut for that? :oops:
     
  12. Offline

    DogeDebugger

    yeah same problem -.-
     
Thread Status:
Not open for further replies.

Share This Page