B4J Question jStringUtils - current library version?

bdunkleysmith

Active Member
Licensed User
Longtime User
I feel like a newbie asking this question because I feel I should know the answer, but I'm uneasy with what I'm seeing.

You will see I have the jStringUtils library (Version 1.03) enabled in Library Manager, but it suggests Version 10.00 is available. I haven't found an update to 10.00 on the Forum and reinstalling B4J Version 10.3 does not correct this situation.



But what confuses me is that I can uncheck the jStringUtils library with no apparent errors or other ill-effects. I can't recall why I originally enabled the jStringUtils library, but thought it may relate to just these three lines in my code:

B4X:
Sub Process_Globals

    Private su As StringUtils
    
End Sub   

Dim tempDate As String = DecryptText(su.DecodeBase64(tempKey), encryptionKey)

As Professor Julius Sumner Miller used to say "Why is it so?"
 

Cableguy

Expert
Licensed User
Longtime User
Like jFX, some Libraries have become "internal" libraries, meaning that their "stand alone" version will not match the "internal" version, and most of the times, the internal version will reflect the current Core version... It may be the case
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
It's because of new B4i v10 released.
 
Upvote 0

bdunkleysmith

Active Member
Licensed User
Longtime User
Thank you @Cableguy, but what do you mean by 'their "stand alone" version'? Should jStringUtils.jar and jStringUtils.xml be deleted from the internal libraries folder because they are included in jCore? But if that's the case, then why do the other internal libraries I'm using show their version correctly and I have to enable them in the Libraries Manager to make use of them?

Thank you @aeric, so it seems this anomaly applies to at least DateUtils and StringUtils, but I'm struggling to see the connection between B4i and B4J libraries and in any case if I'm running the latest version of B4J, why should all internal libraries not show the latest version?

The other thing I note in the screenshot of @Chris2's Libraries Manager is that the jCore version is 10.20, but a version 10.30 is available. After installing and then reinstalling B4J my Libraries Manager showed the same and yet I could not find anywhere on the Forum a jCore version 10.30 update, but did find jCore version 10.31 which was released to deal with a specific issue and so I've updated to that.

The bottom line is that I want to ensure I'm using the latest libraries, but particularly in the case of jStringUtils, there appears some uncertainty as to what the latest version is (1.03 Vs 10.00) and if the latter, how do I update it and why can I use the StringUtils without enabling jStringUtils in the Libraries Manager.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
My short answer is you are using the latest version of jStringUtils.

The version 10 is only applies to new version of B4i. It's Erel decision to name the version, to tell B4i developers about the new changes. The version number you see in B4J is based on the online Excel file, so there is limitation of the format. Some libraries are B4X cross platform hence are sharing the same version number on the same row.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…