i have a client server application in sockets. the client side has 5 classes. and the server side consists of 4 classes. now i want to compile them through the dos shell using the javac command but it wont work there is no problem with the code as it runs through the jar file.
my friend told me to use command
javac -d classes\ source\updater\*.java
and then use this command
java updater.UpdaterServer
where updater is the directory where the classes and the UpdaterServer is the class name.
and the same 2 commands should be used for the client side as well.
why do i have to do it this way what is the reason for this complex procedure of compiling why cant i just do javac UpdaterServer.java
i want to know please.
thanks
my friend told me to use command
javac -d classes\ source\updater\*.java
and then use this command
java updater.UpdaterServer
where updater is the directory where the classes and the UpdaterServer is the class name.
and the same 2 commands should be used for the client side as well.
why do i have to do it this way what is the reason for this complex procedure of compiling why cant i just do javac UpdaterServer.java
i want to know please.
thanks