I'm creating a java app that uses external jars mainly JFreeCharts and JCommon now when I'm compiling my project with
javac -d build\classes -cp ".;build\\resources\\jfreechart-1.0.1.jar;build\\resources\\jcommon-1.0.0.jar" @files_info.txt
and running it with the below command while being in the build\classes directory
java -cp ".;..\\resources\\jfreechart-1.0.1.jar;..\\resources\\jcommon-1.0.0.jar" app @classes_info.txt
has no issues, but now I want to create a single jar file of my app so that later I can use Launch4j to convert my jar to executable.
Previously, when I was not using any type of external libraries I use to make jars from the below command while being in the build\classes directory
java -jar ..\app.jar
Note that I'm not using my IDE for compilation or running processes I'm just using the command line in order to compile the app and make it run.