All tasks should be done only with raw JDK tools:
javacjar- etc
Create new project and declare new interface named Client, that will have following contract:
public interface Client{
void setName(String name);
void sayHello();
}Create custom manifest file and fill following properties with your information:
Specification-Title- The value is a string that defines the title of the extension specificationSpecification-Vendor- The value is a string that defines the organization that maintains the extension specificationBuild-Date- The value is a string that defines the date on which JAR file was build in following format:YYYY-MM-DD
Be sure to have appropriate package structure.
Prepare .bat/.sh script that should perform following:
- compile
Clientinterface - create
.jarfile with compiled class and customMANIFEST.MF
Create new project and declare new implementation of Client interface named ConsoleClient.
This implementation should work with user input and system error output.
Create Main class, that creates new Client instantiated with ConsoleClient instance and:
- ask for user name
- greet user
Create custom manifest file and fill following properties with your information:
Main-Class- The value is a string that denotes entry point of applicationSpecification-Title- The value is a string that defines the title of the extension specificationSpecification-Vendor- The value is a string that defines the organization that maintains the extension specificationBuild-Date- The value is a string that defines the date on which JAR file was build in following format:YYYY-MM-DD
Prepare .bat/.sh script that should perform following:
- compile
ConsoleClientandMainclasses - create executable
.jarfile
Prepare .bat/.sh script that should perform following:
- run executable
.jarfile with needed dependencies