How do I add a library in NetBeans?

Discussion in 'Plugin Development' started by Sluijsens, Nov 5, 2011.

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

    Sluijsens

    Hello,

    I started on a plugin with dinnerbone's plugin generator.
    But with that I have no clue how to add a library like an jar library i.e. the Register.jar library.

    Anyone who could help me out here?

    Thanks in advance,
    Sluijsens
     
  2. Offline

    ks07

    On the left hand side of the screen you should see the "Projects" menu, with all of your files that are part of your plugin. At the bottom of the list, there's a "Libraries" folder. Right click it, and there is a n option to add a jar (e.g. Register.jar). :)
     
  3. Offline

    Sluijsens

    Thats the problem, there is no library thing when using the generator.
    It's an other kind of project.
    When I make a "normal" project I know how to add a library, but with this project you only have Dependencies and also when building the .jar it doesn't give you a lib folder.

    KR
    Sluijsens
     
  4. Offline

    ks07

    Never used the generator, so I can't say how it works. Have you tried right clicking the project and going properties > Libraries and adding them that way?
     
  5. Offline

    DomovoiButler

    Dinnerbones pluginator only works for maven plugins, unless you know maven, dont use it
    if you wanna know maven...pm me...xD
    also if you know maven, you dont need to use the plugin generator
     
  6. Offline

    Sluijsens

    Libraries is nowhere to be found:O

    I only know how to work with the standard Java Applications projects. But when I compile those projects I get a lib folder which has to be in the same map as the compiled jar.
    Can I make it so I don't need the lib folder or do I have to use another kind of project?
     
  7. Offline

    DomovoiButler

    i have not use netbeans, but i have it installed in my computer...dont know how it works...so i think this plugin creating would be much faster if we contact each other with skype or Teamviewer...pm me if you want to know fast
     
  8. Offline

    Rednax_

  9. Offline

    Sluijsens

    I read that, and that's for maven projects?
    Because I already tried that with the Register.jar but it didn't work.
    I tried it again while reading that thread with the bukkit.jar and that worked.

    However, for now I switched to Eclipse, but the reason I wanted to work with netbeans is that we use NetBeans at school too so.

    Thanks all for your help!

    KR
    Sluijsens
     
  10. Offline

    Rednax_

    That thread is meant for simple projects, made with only netbeans, I do not know exactly how maven works.
    But eclipse works fine too, simples for adding libs than netbeans.
    If you stay with eclipse: Good luck getting used to all the little differences :p.
    I think when you get used to it, the debug/java tabs work pretty good, but you cant debug bukkit plugins with the debugger :(.
    Never got that used to it though, I simply was too used to netbeans to switch too eclipse.
     
Thread Status:
Not open for further replies.

Share This Page