B4J Question B4J Compile to run on windows QUESTION

Ryan Pigeon

Member
What is the best way currently to compile a B4J app into an installer to run on a target PC? I tried the built-in packager, but I get this error:

module b4j does not declare `uses`​


I would assume that if this worked I would use Inno setup. SO what are my options?
 

Ryan Pigeon

Member
Can you post longer error message if any?
B4J Standalone Packager works totally fine.
Hi Aeric.

The error is:

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
MLog initialization issue: slf4j found no binding or threatened to use its (dangerously silent) NOPLogger. We consider the slf4j library not found.
May 13, 2025 11:46:33 AM com.mchange.v2.log.MLog
INFO: MLog clients using java 1.4+ standard logging.
May 13, 2025 11:46:33 AM com.mchange.v2.c3p0.C3P0Registry
INFO: Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
main._configuressl (java line: -1)
java.util.ServiceConfigurationError: org.eclipse.jetty.util.security.CredentialProvider: 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/org.eclipse.jetty.util.security.Credential.<clinit>(Unknown Source)
at b4j/org.eclipse.jetty.util.ssl.SslContextFactory.newPassword(Unknown Source)
at b4j/org.eclipse.jetty.util.ssl.SslContextFactory.setKeyStorePassword(Unknown Source)
at b4j/anywheresoftware.b4j.object.ServerWrapper$SslContextFactoryWrapper.setKeyStorePassword(Unknown Source)
at b4j/b4j.example.main._configuressl(Unknown Source)
at b4j/b4j.example.main._appstart(Unknown Source)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.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.raiseEvent(Unknown Source)
at b4j/b4j.example.main.main(Unknown Source)
 
Upvote 0
Top