Page 1 sur 1

My solution for Connection refused &ClassNotFoundException

Publié : 16 nov. 2016 10:59
par LUYI
For the windows users ,please create a file called "startRMI.bat".
then , put the following codes in the file.

Code : Tout sélectionner

@echo on

set DEPLOY_DIR=..\build

set CLASSPATH=%DEPLOY_DIR%\server.jar;%DEPLOY_DIR%\common.jar;%DEPLOY_DIR%\clientCatalog.jar;%DEPLOY_DIR%\clientCustomer.jar;%DEPLOY_DIR%\clientOrder.jar;%MYSQL_HOME%\lib\mysql-connector-java-5.1.21-bin.jar;

rmiregistry
then you start this bat,
then you can run the "RegisterServices.java" in the eclipse.
It works for me.It finally shows "Petstore services are registered."

Re: My solution for Connection refused &ClassNotFoundExcepti

Publié : 16 nov. 2016 22:57
par plm
Thank you so much to post this !!!!

You resolved my problem described here :
http://deptmedia.cnam.fr/phpBB2/viewtop ... fc6f28df41