Java Question Seeking Assistance with Simple Compiler in B4A: Can Anyone Guide Me?

Johan Schoeman

Expert
Licensed User
Longtime User
You might have to change the wrapper to load the chilkat .so libraries

B4X:
public class chilkatWrapper  {


    private BA ba;
    private String eventName;
    private CkCrypt2 crypt;
    
    

    public void Initialize(BA ba, String EventName) {
        this.eventName = EventName.toLowerCase(BA.cul);
        this.ba = ba;
        crypt = new CkCrypt2();
    }
    
    
    static {
        System.loadLibrary("chilkat");
    }
 

carlos7000

Well-Known Member
Licensed User
Longtime User

Recreate the structure and copy the files as you will see in the screenshots.



*.so files in your folders:



Compiling...



When trying to use the library:



Displaying the contents of the "Additional Libraries" folder


I thank you very much for your help. I wonder if it's not easier to make a wrapper from the eddsa-0.3.0.jar library.
 

carlos7000

Well-Known Member
Licensed User
Longtime User

I didn't write that file. Copilot created it
 

carlos7000

Well-Known Member
Licensed User
Longtime User

I have made another attempt:

 

Johan Schoeman

Expert
Licensed User
Longtime User

carlos7000

Well-Known Member
Licensed User
Longtime User
Put......
com.
....in the -b4aignore field of SLC and compile again. The refresh libs in your project and see if it solves the issue.

I hereby inform you that I successfully recompiled the library. The steps I followed were as follows:
  1. I removed the old library.
  2. I recompiled it.
  3. Following your last recommendation.
  4. B4A did not display any alert messages.
I’ve attached screenshots for clarity.



However, when attempting to use the library, no functions or methods appear.



Thank you for your assistance!
 

Johan Schoeman

Expert
Licensed User
Longtime User
I have only added an Initialize in the wrapper. Leaving it up to you to now build the other methods in the wrapper.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…