QUOTE(dushi @ 27 Aug, 2008 - 05:09 PM)

Hello,
I want to ask a question.
I'm about to make a client-server program.
i know that first i have ta write the interface, the server implementation and the server object from the server implementation to register with the RMI. and final i have to make my application with a button.
My question is. when i begin, i make a new project. than i make e new interface file. when i finish with the interface file, can i make the server impl. and the server object to register in the same project.
i know that my application must be in an diffrent project.
I hope its clear. thnx
I guess this is a NetBeans issue (I am not familiar with it).
Eclipse will allow use to have as many applications you want in a project.
Nothing should also stop you from starting the server from the console prompt if Netbeans does not allow multiple applications in the same project.
Or use a "main" to which you passed a parameter
CODE
public static void main(String[] arg) {
if(arg[0].equalsIgnorecase("S"))
new Server();
else
new Client();
}
Edited: the forum is calm tonigh
I just tested it in Netbeans... even if there is a "Run project" tab, under it there is a "run file" tag so you can run more than one main() in the same project
This post has been edited by pbl: 28 Aug, 2008 - 06:04 PM