wood burning stoves 2.0
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes About submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "About submit" Watch "About submit" New topic

About submit

Jack Yang
Ranch Hand

Joined: Jan 31, 2002
Posts: 59
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?

Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
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
I agree. Here's the link: http://aspose.com/file-tools
subject: About submit
It's not a secret anymore!