Android Question [SOLVED] Libraries window doesn't show Additional libraries

Elric

Well-Known Member
Licensed User
Hello everybody!

I'm trying to get in Libraries window the additional libraries... without success.

I've followed the guide (https://www.b4x.com/guides/B4XBasicLanguage/?page=81) and I've searched in the forum (https://www.b4x.com/android/forum/threads/additional-library-not-shown-in-libraries-list.50983/) but doesn't work.

In the beginning, I follow exactly the guide and I've created D:\B4X\AdditionalLibraries\B4A (and so for B4J etc, including B4XlibXMLfiles) and I've set "D:\B4X\AdditionalLibraries" in Configure Path.

Downloaded: ahaActionBar.zip, Astro 1.4.zip, BetterDialogs v2.11.zip and ScrollView2D v1.3.zip. Then I put the -jar files in D:\B4x\AdditionalLibraries\B4A and .xml files in D:\B4x\AdditionalLibraries\B4XlibXMLfiles.

Then Right click in Libraries window and click on Refresh.

Nothing happened.

I tried to restart the system, to put .jar and .xml files both in D:\B4X\AdditionalLibraries\B4A and in main directory (D:\B4X\AdditionalLibraries) and to change several times the path (now is D:\B4X_AdditionalLibraries) but without success.

Any suggestion?

Thank you!
 

Elric

Well-Known Member
Licensed User

Attachments

  • B4A - Path.png
    B4A - Path.png
    6.8 KB · Views: 144
  • B4A - PathsConfiguration.png
    B4A - PathsConfiguration.png
    28.2 KB · Views: 144
Upvote 0

OliverA

Expert
Licensed User
Longtime User
If the library is a regular .jar file, place the XML file in the same location as the .jar file
 
Upvote 0

Elric

Well-Known Member
Licensed User
If the library is a regular .jar file, place the XML file in the same location as the .jar file
Thank you OliverA!

Problem Solved!

I'm quite sure that I had tried that... but of course not.

Now I have:
  • .jar file in D:\B4X\AdditionalLibraries\B4A and
  • .xml file both in D:\B4X\AdditionalLibraries\B4A and in D:\B4X\AdditionalLibraries\B4XlibXMLfiles.
 

Attachments

  • B4A - Path.png
    B4A - Path.png
    8.9 KB · Views: 133
  • B4A - Libraries.png
    B4A - Libraries.png
    7.7 KB · Views: 129
Upvote 0

klaus

Expert
Licensed User
Longtime User
Downloaded: ahaActionBar.zip, Astro 1.4.zip, BetterDialogs v2.11.zip and ScrollView2D v1.3.zip. Then I put the -jar files in D:\B4x\AdditionalLibraries\B4A and .xml files in D:\B4x\AdditionalLibraries\B4XlibXMLfiles.
Your error is here.
You should save xml files only for b4xlib libraries.
For ALL additional B4A libraries which have a x.jar and a x.xml file, both must be saved in D:\B4x\AdditionalLibraries\B4A folder.
I'm afraid that you misunderstood the text in the guide:
B4X > Folder for B4X libraries
B4XlibXMLFiles > Folder for B4X libraries XML files.

B4X > Folder for B4X libraries
means only libraries with the b4xlib extension
B4XlibXMLFiles > Folder for B4X libraries XML files. means, xml files generated specifically for b4xlib libraries.

Summary:
For ALL additional B4A libraries which have a x.jar and a x.xml file, both must be saved in D:\B4x\AdditionalLibraries\B4A folder.
For ALL b4xlib libraries which have a x.b4xlib file, this one must be saved in D:\B4x\AdditionalLibraries\B4X folder.
By default, b4xlib libraries have no xml file! But, if you want xml files for b4xlib libraries you can generate those with the tool Erel has developed and save only those files into the D:\B4x\AdditionalLibraries\B4XlibXMLFiles folder.
These files are useful for the B4X HelpViewer and the [B4X] B4A, B4i, B4J and B4r API documentation - B4X Object Browser.
 
Upvote 0

Elric

Well-Known Member
Licensed User
Thank you klaus!

The guide is super, indeed!

I had to write: "I think I've followed the guide...".

The summary super-clarify the matter!

Thanks!
 
Upvote 0
Top