You can update parts of a jar using 'jar' in the bin directory of java (it's an exe and 24Kb in size)
like
jar uf theJarToUpdate.jar theReplacementClass.class
There are a few caveats though, you cannot add new classes or do other things that can break the loader/linker.
The class you are supplying must be in a similar folder structure i.e. b4j/example/newClass.class
as if you use c:/somewhere/newClass.class
the resultant jar layout would be incorrect and have a 'new' directory 'somewhere/' and it will put your new class in there, not overwriting the original class.
The jar would still work, it just won't see the new class you added and will still use the old class.
example updater (uses shell)
Dim sh As Shell
sh.Initialize("sh","cmd.exe",Array("/c","C:/java19/jdk-19.0.2/bin/jar","uf","C:/b4j source/testUpdatev1/Objects/testUpdatev1.jar", "../b4j/example/class1.class"))
sh.run(100)