how to run two classes in diffrent processes

Hello,
I have client and server classes and want to test it. So i want to run server class
and after that client class in different process,
but problem is that Nell runs two classes in different threads but in the same process.
How can I fix this problem??

1 comment

Hello Pavel,

I have client and server classes and want to test it. So i want to run
server class
and after that client class in different process,
but problem is that Nell runs two classes in different threads but in
the same process.
How can I fix this problem??


I don't know who or what is Nell, but in IntelliJ IDEA, in order to achieve
that, you will need to set up two run configurations: one for the server
main class and another for the client main class. Then you'll be able to
start them independently, and they will run in different processes.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.