Android Question Cannot find: C:\Program Files\Anywhere Software\B4A_v13\libraries\window-1.4.0.jar

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Here's what I did:

In order for me to use SLC to compile and link a FoldBridge Library I am working on I had to
take
window-1.4.0.aar, window-java-1.4.0.aar
and take the classes out of them and rename them to
window-1.4.0.jar,
window-java-1.4.0.jar

This allowed my FoldBridge Library to then compile and generate its jar.

But now when I include the FoldBridge in my app and go t compile and link I get the follow error

B4X:
B4A Version: 13.40
Parsing code.    (1.75s)
    Java Version: 19
Building folders structure.    (0.28s)
Running custom action.    (0.07s)
Running custom action.    (0.23s)
Compiling code.    (2.51s)
Compiling layouts code.    (0.03s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Running custom action.    (0.20s)
Compiling resources    (0.08s)
Linking resources    (0.98s)
    build tools: 36.0.0, android jar: android-36
Compiling debugger engine code.    (0.17s)
Compiling generated Java code.    Error
Cannot find: C:\Program Files\Anywhere Software\B4A_v13\libraries\window-1.4.0.jar

Both jar files are in the C:\Program Files\Anywhere Software\B4A_v13\libraries so I am not sure why it isn't finding them (there is no XML for them is this a problem for B4A)

Little help please
 

DonManfred

Expert
Licensed User
Longtime User
take
window-1.4.0.aar, window-java-1.4.0.aar
and take the classes out of them and rename them to
window-1.4.0.jar,
window-java-1.4.0.jar
that is correct for SLC.

For the library use you need to add the aars window-1.4.0.aar, window-java-1.4.0.aar with #additionallib to your project.
Both jar files are in the C:\Program Files\Anywhere Software\B4A_v13\libraries
That´s 100% WRONG.

NEVER put any additional library into the internal library path.
Always use the additional libs folder.

And only copy the AARs there. Not the extracted classes!
 
Upvote 0

Robert Valentino

Well-Known Member
Licensed User
Longtime User
OK, I've removed the jars for B4A Libraries and put the 2 aar files
#AdditionalJar : window-1.4.0.aar
#AdditionalJar : window-java-1.4.0.aar

And added the 2 lines.

Do I need the jar files in my Additional libraries? In either case (with them in my Additional Librarians and without them - still get same error)

Attaching my FoldBridge.java - I'm sure I did something in them to cause this problem

Wanted to attach whole project but the jars are too large
 

Attachments

  • FoldBridge.java
    3.1 KB · Views: 23
Upvote 0
Top