I\'ve the java class:
package com.server.main;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
public class Main {
pu
Your Main
is in a package, I believe you need
java -cp C:\Users\workspace\Tests\src com.server.main.Main
You might also move to the top folder of your project and use .
like
cd C:\Users\workspace\Tests\src
java -cp . com.server.main.Main
Finally, you could add that folder to your CLASSPATH like
set CLASSPATH=C:\Users\workspace\Tests\src
java com.server.main.Main