Hi,
I am compiling a B4J program using MS Access.
Using similar code as in Opening MS Access databases (mdb)
When executing in Release mode, it runs fine.
Only the Standalone version exits with errors.
These errors display on executing run_debug.bat
The JAR file executes fine using:
Could anyone kindly help out here please?
B4J version: 9.80
JDK version: 14.0.1
Additional jars used:
Regards.
I am compiling a B4J program using MS Access.
Using similar code as in Opening MS Access databases (mdb)
When executing in Release mode, it runs fine.
Only the Standalone version exits with errors.
These errors display on executing run_debug.bat
B4X:
Init sql connection...
main$MyOpener.open (java line: -1)
java.lang.ExceptionInInitializerError
at b4j/com.healthmarketscience.jackcess.impl.GeneralLegacyIndexCodes.getCharHandler(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.GeneralLegacyIndexCodes.writeNonNullIndexTextValue(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.IndexData$GenLegTextColumnDescriptor.writeNonNullValue(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.IndexData$ColumnDescriptor.writeValue(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.IndexData.createEntryBytes(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.IndexData.access$4000(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.IndexData$EntryCursor.beforeEntry(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.IndexCursorImpl.findPotentialRow(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.IndexCursorImpl.findFirstRowByEntryImpl(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.IndexCursorImpl.findFirstRowByEntry(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.DatabaseImpl$DefaultTableFinder.findRow(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.DatabaseImpl$TableFinder.findObjectId(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.DatabaseImpl.readSystemCatalog(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.DatabaseImpl.<init>(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.DatabaseImpl.open(Unknown Source)
at b4j/com.healthmarketscience.jackcess.DatabaseBuilder.open(Unknown Source)
at b4j/b4j.pk.syslog.main$MyOpener.open(Unknown Source)
at b4j/net.ucanaccess.jdbc.DBReference.<init>(Unknown Source)
at b4j/net.ucanaccess.jdbc.DBReferenceSingleton.loadReference(Unknown Source)
at b4j/net.ucanaccess.jdbc.UcanaccessDriver.connect(Unknown Source)
at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
at b4j/anywheresoftware.b4j.objects.SQL.Initialize2(Unknown Source)
at b4j/b4j.pk.syslog.main._database_init(Unknown Source)
at b4j/b4j.pk.syslog.main$ResumableSub_AppStart.resume(Unknown Source)
at b4j/anywheresoftware.b4a.keywords.Common$2$1.run(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: failed loading index codes file com/healthmarketscience/jackcess/index_codes_genleg.txt
at b4j/com.healthmarketscience.jackcess.impl.GeneralLegacyIndexCodes.loadCodes(Unknown Source)
at b4j/com.healthmarketscience.jackcess.impl.GeneralLegacyIndexCodes$Codes.<clinit>(Unknown Source)
... 33 more
Caused by: java.io.IOException: Could not load jackcess resource com/healthmarketscience/jackcess/index_codes_genleg.txt at b4j/com.healthmarketscience.jackcess.impl.DatabaseImpl.getResourceAsStream(Unknown Source)
... 35 more
The JAR file executes fine using:
jar command line:
D:\_DEV\jdk-14.0.1\bin\javaw --module-path "D:\_DEV\jdk-14.0.1\javafx\lib" --add-modules ALL-MODULE-PATH -jar pkSysLog.jar
Could anyone kindly help out here please?
B4J version: 9.80
JDK version: 14.0.1
Additional jars used:
B4X:
#AdditionalJar: ucanaccess-5.0.1
#AdditionalJar: commons-lang3-3.12.0
#AdditionalJar: commons-logging-1.2
#AdditionalJar: hsqldb-2.5.0
#AdditionalJar: jackcess-4.0.5
#AdditionalJar: jackcess-encrypt-4.0.2
#AdditionalJar: bcprov-jdk15on-166