• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet using RMI

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok, it is changed !!
reply
    Bookmark Topic Watch Topic
  • New Topic