I am new to JavaFX. I have a project as the below structure.
<MyCompany-App>
<src>
<CoreUtils>
Constants.java
Constants2.java
<CoreFramework>
VersionControl.java
Utils.java
<MyCompanyApp>
Main.java
LaunchLogin.java
<Logging>
Logging.java
<Utils>
DBcon.java
<lib>
javafx.controls.jar
javafx.fxml.jar
javafx.web.jar
lib
directory has all the other dependent 3rd party jars as well.
With this set up, developers are able to compile the source code to a JAR file using IntelliJ IDE.
But, I am trying to generate the jar file using command line as below.
$javac --module-path "<Path to project>\lib" --add-modules javafx.controls,javafx.fxml "<Path to Project>\LaunchLogin.java"
I am facing error saying package not found.
**error: package CoreFramework does not exist
import CoreFramework.Utils;**
Below are the some of the lines in LaunchLogin.java
package MyCompanyApp;
import CoreFramework.VersionControl;
import CoreFramework.Constants;
import CoreFramework.Localization;
import CoreFramework.Utils;
Can someone help me how to compile this source to a JAR?
Tried to compile it using CLI