Skip to content

Creating Shared Library

Marco Prescher edited this page Apr 1, 2022 · 1 revision

Step_1

Navigate into $projectDir\src\main\java\sharedrmi\application

Run command javac api\CustomerService.java api\ProductService.java dto\CustomerDTO.java dto\AlbumDTO.java dto\ArtistDTO.java dto\SongDTO.java

Step_2

Navigate into CustomerDatabaseRMI\src\main\java\

Run command jar cf sharedrmi.jar sharedrmi\application\api\CustomerService.class sharedrmi\application\api\ProductService.class sharedrmi\application\dto\CustomerDTO.class sharedrmi\application\dto\AlbumDTO.class sharedrmi\application\dto\SongDTO.class sharedrmi\application\dto\ArtistDTO.class

bei Error

jar : the term 'jar' is not recognized as the name of a cmdlet, function, script file, or operable program. check the spelling of the name, or if a path was included, verify that the path is correct and try again. at line:1 char:1 + jar + ~~~ + categoryinfo : objectnotfound: (jar:string) [], commandnotfoundexception + fullyqualifiederrorid : commandnotfoundexception

First

Check if jar.exe exists in C:\Program Files\Java\jdk-11.0.10\bin C:\Program Files\Java\jdk-11.0.10\bin

Second

Check/Add Path Variables image and image

Clone this wiki locally