I was finally able to run the project in Release mode, since the project requires of many dependencies I believe there were some problems with some of the versions, specifically the grpc libraries, I also when through each file and opened each one as a zip archive, deleted the META-INF folder from some of them (Not really sure if this actually made a difference).
I am also able to run the entire project through the B4JPackager and the Inno Setup, and the project compiles and creates the executable just fine.
Now I am seeing a different problem, When I run the project in Release Mode, the project runs fine and I am able to send a gRPC request to our internal service and retrieve a list of firmware updates.
The problem is when I run the Executable file by running run_debug.bat file, the program launches but I see the following error
error: (ProviderNotFoundException) io.grpc.ManagedChannelProvider$ProviderNotFoundException: No functional channel service provider found. Try adding a dependency on the grpc-okhttp, grpc-netty, or grpc-netty-shaded artifact
I have already all these dependencies as can be seen here
[CODE lang="b4x" title="List of Dependencies"]#AdditionalJar: google-auth-library-oauth2-http-0.21.1.jar
#AdditionalJar: google-auth-library-credentials-0.18.0.jar
#AdditionalJar: google-http-client-1.32.1.jar
#AdditionalJar: google_http_client_jackson2-1.0.1.jar
#AdditionalJar: protobuf-java-3.22.2.jar
#AdditionalJar: gson-2.9.0.jar
#AdditionalJar: jackson-core-2.13.3.jar
#AdditionalJar: jackson-databind-2.13.3.jar
#AdditionalJar: jackson-annotations-2.13.3.jar
#AdditionalJar: guava-31.1-jre.jar
#AdditionalJar: java-jwt-4.0.0.jar
#AdditionalJar: grpc-auth-1.54.0.jar
#AdditionalJar: grpc-core-1.54.0.jar
#AdditionalJar: grpc-context-1.54.0.jar
#AdditionalJar: grpc-netty-shaded-1.54.0.jar
#AdditionalJar: grpc-api-1.54.0.jar
#AdditionalJar: grpc-protobuf-1.54.0.jar
#AdditionalJar: grpc-protobuf-lite-1.54.0.jar
#AdditionalJar: grpc-stub-1.54.0.jar
#AdditionalJar: annotations-api-6.0.53.jar
#AdditionalJar: failureaccess-1.0.1.jar
#AdditionalJar: perfmark-api-0.26.0.jar
#AdditionalJar: blockhound-1.0.8.RELEASE.jar[/CODE]
I am so close to having everything working and will appreciate any suggestions or advice, I have been burning the candle at both ends with this project and feel that I am finally so close.
Here are a few screenshots of what the project looks like so far.
This is when I run the project in Release Mode, but I need it to run the same when creating an executable as well, as you guys can see when running in release mode the list of firmware is retrieved and I don't understand why it would run fine in Release mode but not when running from the executable file created from the B4JPackager and Inno setup.
Cheers,
Walter