I need help compiling and running my programs using the command-line prompt or on my desktop rather than using an IDE. Specifically I do not know how to make my import statements work in my programs without my IDE while I have moved my library now which is a folder containing additional .java files to my Downloads directory. For example my programs, three of them are in Downloads and in this folder I have my library as a folder which is named socklib and I wish to convert the following statements in order to have no resulting errors:

//Program 1: GreeterClientExample.java
package com.school.course.example;
import com.school.course.socklib.ClientProtocolFactory;
import com.school.course.socklib.ClientSocket;
import java.util.Scanner;

//Program 2: GreeterServerExample.java
package com.school.course.example;
import com.school.course.socklib.ServerListener;
import java.util.Scanner;

//Program 3: GreeterServerProtocol.java
package com.school.course.example;
import com.school.course.socklib.ListenerInfo;
import com.school.course.socklib.SimpleSocketProtocol;
import java.io.IOException;
import java.net.Socket;

I read online there are many different types of imports in Java such as <library> or using / instead . and I am not sure how to make this work or what my path should be either. If anyone is able to help me with this, my directory structure is /Users/user/Downloads/...