Hey guys!
I want to get the SQLiteJDBC version programatically straight from the library itself, so I wrote this tiny little piece of code to achieve that.
The whole project is just:
In Debug mode I get:
Which is correct.
But, in Release mode all I get is the word "unknown".
I'm an absolute zero in JAVA, so if somebody can put me in the right path or maybe explain why these different behaviours in debug and release modes, I'll be immensely grateful.
Thank you, guys!
I want to get the SQLiteJDBC version programatically straight from the library itself, so I wrote this tiny little piece of code to achieve that.
The whole project is just:
B4X:
'Non-UI application (console / server application)
#Region Project Attributes
#AdditionalJar: sqlite-jdbc-3.50.1.0
#End Region
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
Dim jo As JavaObject
jo = jo.InitializeStatic("org.sqlite.SQLiteJDBCLoader")
Log(jo.RunMethod("getVersion", Null))
End Sub
In Debug mode I get:
Waiting for debugger to connect... Program started. 3.50.1.0 Program terminated (StartMessageLoop was not called).:
Waiting for debugger to connect...
Program started.
3.50.1.0
Program terminated (StartMessageLoop was not called).
But, in Release mode all I get is the word "unknown".
I'm an absolute zero in JAVA, so if somebody can put me in the right path or maybe explain why these different behaviours in debug and release modes, I'll be immensely grateful.
Thank you, guys!