Jul 7, 2017 Replies: 4 This library will load jar files at run time without having to use #AdditionalJar Firstly, thanks to @keirS for his work here; https://www.b4x.com/android/forum/t...amically-at-run-time-using-inline-java.80596/ Secondly, all I've done is turn his code into a library. It saves having to use inline Java and Java Object. The library is very easy to use, example below. Code: Dim j As jarLoader j.loadJAR("C:\Apps\B4J\Libraries\test.jar") Attachments jarLoader.zip jarLoader.zip 1.7 KB · Views: 742 Click to expand...
This library will load jar files at run time without having to use #AdditionalJar Firstly, thanks to @keirS for his work here; https://www.b4x.com/android/forum/t...amically-at-run-time-using-inline-java.80596/ Secondly, all I've done is turn his code into a library. It saves having to use inline Java and Java Object. The library is very easy to use, example below. Code: Dim j As jarLoader j.loadJAR("C:\Apps\B4J\Libraries\test.jar")
alain bertrand Member Licensed User Longtime User Jul 26, 2017 #2 Seems great... no #AdditionalJar, no JavaObject. How do you access methods? I used to #AdditionalJar, dim JavaObject, initialize it then RunMethod. Please, keep your answer (or an exemple of use) very basic, these are my very first speps in javaland
Seems great... no #AdditionalJar, no JavaObject. How do you access methods? I used to #AdditionalJar, dim JavaObject, initialize it then RunMethod. Please, keep your answer (or an exemple of use) very basic, these are my very first speps in javaland
somed3v3loper Well-Known Member Licensed User Longtime User Jul 27, 2017 #3 I think we still need to use JavaObject to access jar methods
DonManfred Expert Licensed User Longtime User Jul 27, 2017 #4 somed3v3loper said: I think we still need to use JavaObject to access jar methods Click to expand... Aggree
somed3v3loper said: I think we still need to use JavaObject to access jar methods Click to expand... Aggree
tchart Well-Known Member Licensed User Longtime User Jul 28, 2017 #5 somed3v3loper said: I think we still need to use JavaObject to access jar methods Click to expand... Agree. This library isn't meant for accessing native methods. It's just to loads jars dynamically - especially b4j library jars. It doesn't expose methods to b4j.
somed3v3loper said: I think we still need to use JavaObject to access jar methods Click to expand... Agree. This library isn't meant for accessing native methods. It's just to loads jars dynamically - especially b4j library jars. It doesn't expose methods to b4j.