I'm trying to set up a communication client/server in RMI, with :
- * for client : Eclipse on Windows XP associated with the plugin "RMI Plugin for Eclipse"
* for server : Linux
On Linux, I start with the command "rmiregistry 1000 &" (without problem),
then I launch my server application with the command line :
java -Djava.security.policy=security.policy -Djava.rmi.server.codebase=file:./myjar.jar -Djava.rmi.server.hostname=myserver mypackage.MyAppli
And the following error occurs :
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at mypackage.MyAppli.main(MyAppli.java:465)
I get the same error when I use the method "Naming.lookup("rmi://serverName/remoteObjectName")" from Eclipse.
Have an idea about what I could forget (Java or Network configuration) ?
Thanks in advance for your help,
Eva