Android Question Is there a B4A.jar?

grafsoft

Well-Known Member
Licensed User
Longtime User
I would need this to compile a library from a Java SDK. Does anybody have an idea?

This is how I should do it:

Bash:
#!/bin/bash
# Script to compile PolarBleWrapper.java and create a JAR file

# Create necessary directories if they don't exist
mkdir -p compiled_classes/com/yourcompany/polarwrapper

# Ensure you have the B4A JAR and Polar SDK AAR in your classpath
# This is just a template, you'll need to adjust paths to match your environment
echo "Compiling PolarBleWrapper.java..."
javac -d compiled_classes \
  -cp "path/to/b4a.jar:path/to/polar-ble-sdk.aar" \
  src/com/yourcompany/polarwrapper/PolarBleWrapper.java

# Check if compilation was successful
if [ $? -eq 0 ]; then
  echo "Compilation successful. Creating JAR file..."
 
  # Create the JAR file
  jar cf PolarBleWrapper.jar -C compiled_classes .
 
  echo "JAR file created: PolarBleWrapper.jar"
  echo "Copy this file to your B4A project's Additional Libraries folder."
else
  echo "Compilation failed. Check for errors and try again."
fi

# Clean up temporary files
rm -rf compiled_classes
 

DonManfred

Expert
Licensed User
Longtime User
There is no B4A.Jar
It was never there and it was never used by any library.

Where do the info come from that you need a B4A.jar?
 
Upvote 0

teddybear

Well-Known Member
Licensed User
This is the second thread asking about B4A.jar's question.
It's better to search for the question on the forum before asking
 
Upvote 0
Top