B4J Question Integrated Packager Problem

tufanv

Expert
Licensed User
Longtime User
Hello,

I am using jokhhtputils2 with googlemaps lib 1.82 , I have added the 2 lines

B4X:
    #MainFormHeight: 600
    #PackagerProperty: IncludedModules = javafx.web
#PackagerProperty: AdditionalModuleInfoString = exports com.lynden.gmapsfx.javascript.event;

The app runs perfect when I compile in release mode. But if i create an exe using integrated packager, Nothing gets loaded from http requests or google maps . The debug shows :

B4X:
Alert: loadMapLibrary
java.net.SocketException: Network is unreachable: no further information
        at java.base/sun.nio.ch.Net.pollConnect(Native Method)
        at java.base/sun.nio.ch.Net.pollConnectNow(Unknown Source)
        at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(Unknown Source)
        at java.base/sun.nio.ch.NioSocketImpl.connect(Unknown Source)
        at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
        at java.base/java.net.Socket.connect(Unknown Source)
        at b4j/okhttp3.internal.platform.Platform.connectSocket(Unknown Source)
        at b4j/okhttp3.internal.connection.RealConnection.connectSocket(Unknown Source)
        at b4j/okhttp3.internal.connection.RealConnection.buildConnection(Unknown Source)
        at b4j/okhttp3.internal.connection.RealConnection.connect(Unknown Source)
        at b4j/okhttp3.internal.connection.StreamAllocation.findConnection(Unknown Source)
        at b4j/okhttp3.internal.connection.StreamAllocation.findHealthyConnection(Unknown Source)
        at b4j/okhttp3.internal.connection.StreamAllocation.newStream(Unknown Source)
        at b4j/okhttp3.internal.connection.ConnectInterceptor.intercept(Unknown Source)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
        at b4j/okhttp3.internal.cache.CacheInterceptor.intercept(Unknown Source)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
        at b4j/okhttp3.internal.http.BridgeInterceptor.intercept(Unknown Source)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
        at b4j/okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(Unknown Source)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source)
        at b4j/okhttp3.RealCall.getResponseWithInterceptorChain(Unknown Source)
        at b4j/okhttp3.RealCall.execute(Unknown Source)
        at b4j/anywheresoftware.b4h.okhttp.OkHttpClientWrapper.executeWithTimeout(Unknown Source)
        at b4j/anywheresoftware.b4h.okhttp.OkHttpClientWrapper.access$0(Unknown Source)
        at b4j/anywheresoftware.b4h.okhttp.OkHttpClientWrapper$ExecuteHelper.run(Unknown Source)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)
java.net.SocketException: Network is unreachable: no further information
        at java.base/sun.nio.ch.Net.pollConnect(Native Method)
 

MarcoRome

Expert
Licensed User
Longtime User
Try also ( add jdk.crypto.ec):

B4X:
#PackagerProperty: IncludedModules = javafx.web, jdk.crypto.ec
#PackagerProperty: AdditionalModuleInfoString = exports com.lynden.gmapsfx.javascript.event;

and in conditional symbols --> HU2_ACCEPTALL
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Try also ( add jdk.crypto.ec):

B4X:
#PackagerProperty: IncludedModules = javafx.web, jdk.crypto.ec
#PackagerProperty: AdditionalModuleInfoString = exports com.lynden.gmapsfx.javascript.event;

and in conditional symbols --> HU2_ACCEPTALL
#PackagerProperty: IncludedModules = javafx.web, jdk.crypto.ec

Yes! This worked. Thanks A lot !
 
Upvote 0
Top