B4J Tutorial [B4X] Additional libraries folder

Discussion in 'B4J Tutorials' started by Erel, Feb 26, 2019.

  1. Erel

    Erel Administrator Staff Member Licensed User

    The additional libraries folder can be organized in a way that allows sharing cross platform libraries between B4A, B4J and B4i.

    From now on, the recommended way to organize the additional libraries folder:

    [​IMG]

    Additional libraries folder is set under Tools - Configure Paths.

    [​IMG]


    As you can guess, platform specific libraries should be put in the platform specific folder and cross platform libraries should be put in the B4X folder.
    Note that the B4X folder is not relevant to B4R.
     
    Last edited: Sep 8, 2019
  2. GMan

    GMan Well-Known Member Licensed User

    Wll the depending libs be found automatically when i open an "old" project i.e B4A oder B4J ?
     
  3. Cableguy

    Cableguy Expert Licensed User

    Is the targeted platform (b4a, etc) omited in purpose in the shown path?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    This feature is not related to old or new projects. If the additional libraries folder includes a folder named B4J (for B4J) then it will look for libraries in the B4J folder and B4X folder (if available). If there is no B4J folder then it will look for libraries in the set folder.
    Existing configurations will work with no changes.

    Yes. The IDE will do it for you if you choose the B4J folder.
     
    Beja and GMan like this.
  5. jimmyF

    jimmyF Active Member Licensed User

    This makes a lot of sense but how do we configure the "SharedModules" folder now that there are so many B4X modules?

    Or am I missing something obvious?

    EDIT:
    D'uh, yes, I AM missing something obvious. :D

    Please disregard!
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    No reason to use the old shared modules feature at all. It is only kept for backward compatibility.
     
    jimmyF likes this.
  7. GMan

    GMan Well-Known Member Licensed User

    In my version 8.80 it will not work ?
    Tried it, but failed
     
  8. klaus

    klaus Expert Licensed User

    B4A hasn't been updated yet, only the B4J version 7.30 has it.
     
    GMan likes this.
  9. GMan

    GMan Well-Known Member Licensed User

    Will this come,too (soon) ?
    And: my latest Version of B4J is 7.00 ...
     
  10. klaus

    klaus Expert Licensed User

    Erel and GMan like this.
  11. GMan

    GMan Well-Known Member Licensed User

    Installed 7.3 - works fine
     
    joulongleu likes this.
  12. xulihang

    xulihang Active Member Licensed User

    If a lib is shared by B4J and B4A but not with others, where to put it?
     
  13. Erel

    Erel Administrator Staff Member Licensed User

    B4X. Don't select it in your B4i projects.
     
  14. GMan

    GMan Well-Known Member Licensed User

    Thats the point i wanted to know (question above) - but didnt know how to explain.
    So it COULD be that a lib from the B4X subfolder is shown in my B4A Project, but i couldnt/havent to click it because it wont work ?
     
  15. Erel

    Erel Administrator Staff Member Licensed User

    All libraries that you put in the B4X folder will be listed.
     
    GMan likes this.
  16. ShaneG30

    ShaneG30 Well-Known Member Licensed User

    Can multi-subfolder support be added? What I mean is I want to be able to create subfolders (e.g: A "BANano" folder) inside the "IDE" folders. The IDE should then search said folders for libraries.
     
  17. Erel

    Erel Administrator Staff Member Licensed User

    Maybe in the future.
     
    amaxco, xulihang and ShaneG30 like this.
  18. Jorge M A

    Jorge M A Active Member Licensed User

    Sorry, but I don't understand this comment... I'm working in three different projects, android specific, sharing my own classes and code modules (no libs), understanding this path is for this purpose. I'm missing something?... Thx.
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    Jorge M A likes this.
  20. Myr0n

    Myr0n Active Member Licensed User

    Just a comment,
    I am using b4j 7.31 and with the suggested folder structure, and today I upgrade "[B4X] B4XTable" and I noticed that even copying the lib to B4X Folder or B4J Folder, I wasn't able to get the version that I just downloaded, I noticed that B4XTable is an internal lib then I deleted from there and now is working.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice