Richard Goh Active Member Licensed User Longtime User Jul 22, 2016 #1 Hi, I have created a java jar earlier (Which work fined) and include in my b4a project. I added a new class into the jar and trying to call it using below code. But hit into error on "Cannot get methods of class: myProj.myUtils, disabling cache.". There are 2 classes in the jar file. The problem is to call the new class but no problem on earlier one. Any advice on this? Code: Dim jo As JavaObject jo = jo.InitializeStatic("myProj.myUtils").RunMethod("getInstance", Null)
Hi, I have created a java jar earlier (Which work fined) and include in my b4a project. I added a new class into the jar and trying to call it using below code. But hit into error on "Cannot get methods of class: myProj.myUtils, disabling cache.". There are 2 classes in the jar file. The problem is to call the new class but no problem on earlier one. Any advice on this? Code: Dim jo As JavaObject jo = jo.InitializeStatic("myProj.myUtils").RunMethod("getInstance", Null)
Richard Goh Active Member Licensed User Longtime User Jul 22, 2016 #2 Hi, any help or advice on this? The problem is b4a program does not get reflected with the new jar update (with a new class added). But I can refer to my old class without any problem for the same jar. So I suspect that the jar file been cached somewhere and not get refreshed with the new changes. Code: Dim jo As JavaObject jo = jo.InitializeStatic("myProj.myUtilsOld").RunMethod("getInstance", Null) Upvote 0
Hi, any help or advice on this? The problem is b4a program does not get reflected with the new jar update (with a new class added). But I can refer to my old class without any problem for the same jar. So I suspect that the jar file been cached somewhere and not get refreshed with the new changes. Code: Dim jo As JavaObject jo = jo.InitializeStatic("myProj.myUtilsOld").RunMethod("getInstance", Null)
DonManfred Expert Licensed User Longtime User Jul 22, 2016 #3 rightclick in libs tab and select refresh (before you compile) if you update the jar. If that does not help then i guess the new jar is NOT updated in additional libs folder... Upvote 0
rightclick in libs tab and select refresh (before you compile) if you update the jar. If that does not help then i guess the new jar is NOT updated in additional libs folder...