I am having trouble understanding how to actually use the command line to run a big java project ( by big I mean with multiple files and folder).
Imagine I have a project containing :
~/src/main/fr/file1.java
~/src/main/fr/file2.java
~/src/test/test1.java
All my life people have done the makefile for me. I just code the java src with vim and compile and run with make
. Now there is no makefile ! I compile with maven (that I am still understanding how it works.). After compiling with maven (I just run maven compile). I then have a new folder named target.
~/target/main/fr/file1.class
~/target/main/fr/file2.class
~/target/test/test1.class
Now how can I run test1
? I tried using java -classpath =... test1
but I always get errors ...
If can someone help me (or just give me some resources so I can finally understand basic project structuring and scripting) it will be amazing. Thank you !