We assume you are in the main folder(src).
|_src
|_ server
|_ client
|_ README.md
$ javac server/*.java
$ start java server.FactoryServer
OR$ start java server/FactoryServer
$ wsimport -keep -p client http://localhost:9999/factoryService?wsdl
$ javac client/FactoryClient.java
OR$ javac client/*.java
$ java client.FactoryClient
OR$ java client/FactoryClient
- could not find or load main class problem in java to fix it type the command below in cmd
$ SET PATH=%PATH%;C:\Program Files\Java???JDK???\bin
SET PATH=%PATH%;C:\Program Files\Java\jdk1.8.0_152\bin