Well what you have shown it correct but not for a password database.
I followed once again with new installations and followed your ordered list of #additional.jars.
And then with all the required #additional.jars for an encrypted database after your list of #additional.jar
the stand alone package worked!!!!
So it seems that the list of #addtional.jars need to be in a specific order and the encrypted #additional jars should follow.
To help anyone else trying to read an encrypted MS-Access database I am listing the necessary requirements.
Firstly the additional. Jars
#AdditionalJar: ucanaccess-5.0.0
#AdditionalJar: commons-lang3-3.8.1
#AdditionalJar: commons-logging-1.2
#AdditionalJar: hsqldb-2.5.0
#AdditionalJar: jackcess-3.0.1-B4J
#Additionaljar: sqlite-jdbc-3.7.2
' MS ACCESS ENCRYPTED
#AdditionalJar: jackcess-encrypt-3.0.0
#AdditionalJar: bcprov-jdk15on-154.jar
#IgnoreWarnings: 15
Secondly you need to add the following at the end of B4J_main
if JAVA
import java.io.File;
import java.io.IOException;
import net.ucanaccess.jdbc.JackcessOpenerInterface;
import com.healthmarketscience.jackcess.CryptCodecProvider;
import com.healthmarketscience.jackcess.Database;
import com.healthmarketscience.jackcess.DatabaseBuilder;
import java.sql.SQLException;
public static class MyOpener implements net.ucanaccess.jdbc.JackcessOpenerInterface {
public Database open(File fl,String pwd) throws IOException {
Database db = new DatabaseBuilder(fl).setCodecProvider(new CryptCodecProvider(pwd)).open();
return db;
}
}
#End If
to access the database the SQL file should look be as follows
AccDBName = "storage.accdb"
AccDBPath = File.Combine("C:/waistorage", AccDBName)
SQL1.Initialize2("net.ucanaccess.jdbc.UcanaccessDriver", "jdbc:ucanaccess://"& AccDBPath & ";memory=true;showSchema=true;openExclusive=true;immediatelyReleaseResources=true;jackcessOpener=b4j.Locations.main$MyOpener"$,"", "*Password*")
thanks everybody for your help