• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet using RMI

 
spOown adam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i have a problem, here is the error when i want to launch the server with :
Code:
java HelloServer


i javac all the .java

then : rmic the class java that implements a remote interface

and then run :
Code:
java -Djava.rmi.server.codebase=http://matta/genlog9/ -Djava.security.policy=policy.all HelloServer


All my files, applet, stub, ... are on the directory : http://matta/genlog9/

here is my policy , policy.all
Code:

grant {
permission java.security.AllPermission "", "";
};


The file HelloServer implements the remote interface, and it is the server.

the server run on 1.4 java blackdown ...

here is four files, i'm using :

HelloServer.java
Code:


here is my HelloInterface.java



here is my Applet, called Einstein.java



I compile all the files, all goes right, then

rmic HelloServer

==>> OK

then , rmiregistry &

==>> OK

then launch :

Code:
java -Djava.rmi.server.codebase=http://matta/genlog9/ -Djava.security.policy=policy.all HelloServer


Server is bound ...

and then, want to view my applet, it is launch, but i never receive the result, of the remote object

can anyone help me please ???

[ UD: added code tags ]
[ December 16, 2005: Message edited by: Ulf Dittmer ]
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "fdqs gfd"-

Welcome to JavaRanch.

On your way in you may have missed that JavaRanch has a policy on display names, and yours does not comply with it. We take this policy serious, so please adjust it accordingly, which you can do right here. Thanks for your attention to this matter.

Enjoy your time here.
[ December 16, 2005: Message edited by: Ulf Dittmer ]
 
spOown adam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, it is changed !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic