IARC-CSU / CanReg5

CanReg5 is a multi user, multi platform, open source tool to input, store, check and analyse cancer registry data.
http://www.iacr.com.fr/CanReg5
GNU General Public License v3.0
25 stars 13 forks source link

Missing dependencies #53

Closed liquid36 closed 6 years ago

liquid36 commented 6 years ago

Hello! If i want to make my own compilation, where can i get the dependencies? I tried to download then, but there are two or three that i did't find. Thanks!

mortenjohs commented 6 years ago

Hello, One way to get the dependencies would be to download the compiled version from http://www.iacr.com.fr/CanReg5 . Thanks, Morten

liquid36 commented 6 years ago

Okey! Thanks. We are trying to set the RMI port that Java use randomly.

we add this line in the constructor of all the classes that extends UnicastRemoteObject.

   super(1099);

What do you thinks? Apparenttly, it's working!

mortenjohs commented 6 years ago

That is good news. I'm not sure I like that it is hardcoded (at least 1099 is the default RMI port, it seems). So, if I understand this well, this will be needed in addition to the port that the user can set during launch/connection? One for communication, one for initialization. ( Ref: https://www.mscharhag.com/java/java-rmi-things-to-remember )

liquid36 commented 6 years ago

Yes, RMI connection use two port, default port 1099 and a random port for comunication. Our problem is that we need to open specific ports on the server. We can't open all the ports.

Now we are testing your program with those changes and everything seems to be going well. But since I'm not a native Java programmer, I do not know how to make that second port configurable. This part it's up to you.