I am new to Java Packaging, I am trying to compile Java code and wanted below 2 things
- java compiles code and places .java file in src folder
- java compiles code and places .class file in .com folder
so I tried below command
javac -s .\src -d .\com Planet.java
The command runs successfully without any error; the class files are placed in the com folder but the source files are still not moved to the src folder. I have created the folders com and src manually in the current folder. Planet.java is also in the current folder.
├───com
│ └───test
└───src
Am I missing any tricks here? Please correct me.