Using another jar

Discussion in 'Plugin Development' started by DaanSander, Feb 27, 2015.

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

    DaanSander

    Hello I have created a custom currencies plugin and i added it to my essentials library but when i try to get the config of that plugin it says Error:(3, 28) java: package me.daansander.tokens does not exist
    and: Error:(35, 48) java: package Tokens does not exist
    please help

    sorry for bad english
     
  2. Offline

    PreFiXAUT

    @DaanSander Only because you have it in your buildpath, doesn't mean you have it in your Plugin. So if it's a Library by yourself and it's not a standalone Plugin you can access via Bukkit, you can export it with your Plugin (You need to check it when you export it in eclipse, dont know about intelliJ tho).

    The Error basicly occurres because you have it ONLY in the buildpath. That means, it only removes the errors because the IDE runs/compiles/checks the code with the buildpath. If you export it, it will ONLY export the Code without libraries which will cause to fail if they aren't loaded.
     
  3. Offline

    DaanSander

  4. Offline

    PreFiXAUT

    @DaanSander Like I said, if it's a Library and it isn't a standalone thingy somewhere, you can simply export it along with your Plugin. If it's a API (Like Bukkit) then DONT export it. It could cause problems because of Versions and you actually never export an API ever.
     
  5. Offline

    DaanSander

  6. Offline

    PreFiXAUT

    @DaanSander Which API? You never said something about an API, I just added it so you know about it. If you have an API for your Plugin/Program, then you need to export it of cource. Otherwise dont xD I dont get what's the problem anymore
     
  7. Offline

    DaanSander

    @PreFiXAUT the problem is that i cant acces the config of that api plugin from my essentials plugin
     
Thread Status:
Not open for further replies.

Share This Page