I have attached a small but full cross-platform example project to reproduce the issue. The B4A portion works as expected , but the B4J code crashes and fails to create the FTS4 table.
B4X:
Error occurred on line: 48 (B4XMainPage)
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at anywheresoftware.b4a.keywords.Common.CallSubDebug2(Common.java:477)
at b4j.example.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:864)
B4X:
strQuery="CREATE VIRTUAL TABLE IF NOT EXISTS " & DBTableName & " USING fts4(content TEXT)"
SQL1.ExecNonQuery(strQuery) 'error here