B4J Question [Work Around Solution] Selenium Browser Automation - Error when packaged

Peter Lewis

Active Member
Licensed User
Longtime User
Hi All,

I have been trying to get hold of the author with no luck.

Everything works well, but not with B4JPackager11. Any ideas of how to make it work. The author of the Lib is no longer on this Forum

Thank you

main$ResumableSub_btnRemoveAP_Click.resume (java line: -1)
java.util.ServiceConfigurationError: com.google.common.base.PatternCompiler: module b4j does not declare `uses`
at java.base/java.util.ServiceLoader.fail(Unknown Source)
at java.base/java.util.ServiceLoader.checkCaller(Unknown Source)
at java.base/java.util.ServiceLoader.<init>(Unknown Source)
at java.base/java.util.ServiceLoader.load(Unknown Source)
at b4j/com.google.common.base.Platform.loadPatternCompiler(Unknown Source)
at b4j/com.google.common.base.Platform.<clinit>(Unknown Source)
at b4j/com.google.common.base.Strings.isNullOrEmpty(Unknown Source)
at b4j/org.openqa.selenium.remote.internal.OkHttpClient$Factory.createClient(Unknown Source)
at b4j/org.openqa.selenium.remote.HttpCommandExecutor.<init>(Unknown Source)
at b4j/org.openqa.selenium.remote.HttpCommandExecutor.<init>(Unknown Source)
at b4j/org.openqa.selenium.remote.service.DriverCommandExecutor.<init>(Unknown Source)
at b4j/org.openqa.selenium.chrome.ChromeDriverCommandExecutor.<init>(Unknown Source)
at b4j/org.openqa.selenium.chrome.ChromeDriver.<init>(Unknown Source)
at b4j/org.openqa.selenium.chrome.ChromeDriver.<init>(Unknown Source)
at b4j/org.openqa.selenium.chrome.ChromeDriver.<init>(Unknown Source)
at b4j/com.visualnet.selenium.Initialize(Unknown Source)
at b4j/b4j.example.main$ResumableSub_btnRemoveAP_Click.resume(Unknown Source)
at b4j/b4j.example.main._btnremoveap_click(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
at b4j/anywheresoftware.b4a.BA$1.run(Unknown Source)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
 

Peter Lewis

Active Member
Licensed User
Longtime User
I have found that is I use the following command line, it does work

B4X:
javaw --module-path C:\Java\jdk-11.0.1\javafx\lib --add-modules ALL-MODULE-PATH -jar "C:\Source Code\espinfo1368786\Objects\espinfo.jar"

It is a short term solution
 
Upvote 0

hanyelmehy

Active Member
Licensed User
Longtime User
I have found that is I use the following command line, it does work

B4X:
javaw --module-path C:\Java\jdk-11.0.1\javafx\lib --add-modules ALL-MODULE-PATH -jar "C:\Source Code\espinfo1368786\Objects\espinfo.jar"

It is a short term solution
what is the sloution you used for

Selenium Browser Automation​

 
Upvote 0
Top