B4J Question module-info.java:32: error: package is empty or does not exist:

Philip Prins

Active Member
Licensed User
Longtime User
Question,

Where are the additional modules located for the B4J Packager located ?

I reinstalled B4J and downloaded JDK 11 again but still get the error messages that all the additional modules are empty or do not exist.
 
Solution

Philip Prins

Active Member
Licensed User
Longtime User
It is saved in local Google Drive , Sync turned off

New project\




B4X:
#Region Project Attributes
    #MainFormWidth: 600
    #MainFormHeight: 600
    #PackagerProperty: AdditionalModuleInfoString = provides org.eclipse.paho.client.mqttv3.spi.NetworkModuleFactory with org.eclipse.paho.client.mqttv3.internal.TCPNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.SSLNetworkModuleFactory,  org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketSecureNetworkModuleFactory;
#End Region

Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form
    Private xui As XUI
    Private Button1 As B4XView
End Sub

Sub AppStart (Form1 As Form, Args() As String)
    MainForm = Form1
    MainForm.RootPane.LoadLayout("Layout1")
    MainForm.Show
End Sub

Sub Button1_Click
    xui.MsgboxAsync("Hello World!", "B4X")
End Sub

Log

B4JPackager11 Version 1.40
Exe name: Test.exe
build folder: C:\Users\Philip\GOOGLE~1\C4IT\CUSTOM~1\TESTPA~1\Test\Objects\temp\build
InputJar: C:\Users\Philip\Google Drive\C4IT\Custom apps\Test Packager\Test\Objects\Test.jar
Running: C:\Users\Philip\GOOGLE~1\C4IT\CUSTOM~1\TESTPA~1\Test\Objects\temp\FindDosPath.exe
Running: C:\Users\Philip\OneDrive - Selcom\Documents\Java\jdk-11.0.1\bin\jar
Package name: b4j.example
Running: C:\Users\Philip\OneDrive - Selcom\Documents\Java\jdk-11.0.1\bin\jdeps
.
Explicitly excluded modules: [javafx.web]
Included modules: [java.base, java.desktop, javafx.base, javafx.controls, javafx.fxml, javafx.graphics, javafx.media, javafx.swing, java.scripting, java.xml, jdk.unsupported, java.datatransfer, jdk.unsupported.desktop, jdk.jsobject, jdk.xml.dom]
Running: C:\Users\Philip\OneDrive - Selcom\Documents\Java\jdk-11.0.1\bin\javac
.
module-info.java:18: error: package org.eclipse.paho.client.mqttv3.spi does not exist
provides org.eclipse.paho.client.mqttv3.spi.NetworkModuleFactory with org.eclipse.paho.client.mqttv3.internal.TCPNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.SSLNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketSecureNetworkModuleFactory;}
^
module-info.java:18: error: package org.eclipse.paho.client.mqttv3.internal does not exist
provides org.eclipse.paho.client.mqttv3.spi.NetworkModuleFactory with org.eclipse.paho.client.mqttv3.internal.TCPNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.SSLNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketSecureNetworkModuleFactory;}
^
module-info.java:18: error: package org.eclipse.paho.client.mqttv3.internal does not exist
provides org.eclipse.paho.client.mqttv3.spi.NetworkModuleFactory with org.eclipse.paho.client.mqttv3.internal.TCPNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.SSLNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketSecureNetworkModuleFactory;}
^
module-info.java:18: error: package org.eclipse.paho.client.mqttv3.internal.websocket does not exist
provides org.eclipse.paho.client.mqttv3.spi.NetworkModuleFactory with org.eclipse.paho.client.mqttv3.internal.TCPNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.SSLNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketSecureNetworkModuleFactory;}
^
module-info.java:18: error: package org.eclipse.paho.client.mqttv3.internal.websocket does not exist
provides org.eclipse.paho.client.mqttv3.spi.NetworkModuleFactory with org.eclipse.paho.client.mqttv3.internal.TCPNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.SSLNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketSecureNetworkModuleFactory;}
^
5 errors
 
Upvote 0

teddybear

Well-Known Member
Licensed User
It has told you org.eclipse.paho.client.mqttv3.spi does not exist.
where is the org.eclipse.paho.client.mqttv3-x-x.x,jar?
and you hava to use #AdditionalJar to tell the compiler to add a reference to org.eclipse.paho.client.mqttv3-x-x.x,jar
B4X:
#Region Project Attributes
    #MainFormWidth: 600
    #MainFormHeight: 600
    #AdditionalJar: org.eclipse.paho.client.mqttv3-x-x.x
    #PackagerProperty: AdditionalModuleInfoString = provides org.eclipse.paho.client.mqttv3.spi.NetworkModuleFactory with org.eclipse.paho.client.mqttv3.internal.TCPNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.SSLNetworkModuleFactory,  org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketNetworkModuleFactory, org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketSecureNetworkModuleFactory;
#End Region
 
Last edited:
Upvote 0
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…