You can create an Eclipse Java project to contain your client. Then, add the java code for the day04.Client class to the java source folder in the project. Once you’ve done that, you can create a Java debug launch configuration for the day04.Client class, just as you would a normal Java class that contains a ‘main’. In the config, you can specify all the commandline arguments just as you did from the commandline.