Questions tagged as 'rmi'

0
answers

Client requesting the same value 2 times

I'm doing a distributed system, and the client is asking for the same value multiple times. Follow class Cliente : import java.awt.HeadlessException; import java.rmi.Naming; import java.rmi.RemoteException; import javax.swing.JOptionP...
asked by 12.06.2018 / 03:48
1
answer

RMI application works localhost, but gives error when putting Server IP

If I run the code snippet as below in my application, it works: public static void main(String args[]){ try { final InterfaceTrilha interfaceServer = (InterfaceTrilha) Naming.lookup("//localhost:1070/ServidorTrilha"); But if I ch...
asked by 11.01.2017 / 17:48
0
answers

Could not find or load main class

I recently formatted my computer and am having trouble running my java programs. I'm using linux mint and the settings are as follows: java -version java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotS...
asked by 15.10.2016 / 18:29
0
answers

Help with java RMI, how to use the rebind method and do lookup with the client class?

I am doing a job in college where I feel lost. I do not know how to indicate the server with the rebind method and make lookup with the client class. I would like you to look at the code I am writing to see if I am on the right tra...
asked by 15.08.2016 / 15:22
0
answers

Error registering an RMI service

I have the following class which represents a service: public class HelloImpl extends UnicastRemoteObject implements Hello { protected HelloImpl() throws RemoteException { super(); } @Override public String sayHello()...
asked by 19.02.2016 / 17:41
1
answer

Create tray dynamically

I'm solving a problem using RMI from a naval battle, I need to dynamically generate the board according to the user's need, this code I got from a video and I'm adapting as I ask in the exercise. public class Jogador { TocadorSom tsom = new T...
asked by 22.10.2017 / 17:49
1
answer

Android supports RMI?

Does Android support Java rmi ? I'm developing on the Android 4.0 platform. If supported, could you please. Report a subject or tutorial on how to do this communication?     
asked by 17.04.2014 / 15:46
0
answers

Instantiate more than one RMI object

I made an application using RMI, however, I need the objects to be started at the same time. In the way I know how to do it, I start for example 5 objects, but in the loop one only starts after the other ends. Follow the client snippet. Th...
asked by 16.04.2018 / 14:49
1
answer

Arrange thread message

Good evening. I need your help in something simple, I'm doing a chat via RMI, the implementation of the program is already working more as I want, but I'm breaking your head in a simple print. I need to organize the output so it looks like th...
asked by 14.02.2018 / 07:19
0
answers

Adding boats dynamically to the board

I am developing an application using RMI that simulates the battle game. My code for now is dynamically generating the board and automatically positioning the ships on the board, my question is how do I choose where to add each type of vessel (d...
asked by 23.10.2017 / 21:41