I have three package in my app,client,server,db. In server package,I have RemoteDB,RemoteDBImpl,ConnectionFactory,ConnectionFactoryImpl.Before I run my client,I have to add server.jar into CLASSPATH.But if the client runs in other computer,the server.jar should be copy into that machine.But if I change the interfaces into client package,when the server runs,I have to add client.jar into class path. Anyone has some good ideas how to put them?
posted 13 years ago
Hi Jack, Just put the server directory into the client jar and the client directory in the server jar. That way there is no need to change the CLASSPATH. Hope this helps, Michael Morris
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher