Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

RMI HelloApplet tutorial problems

843807Oct 2 2002 — edited Oct 2 2002
I get the following exception when attempting to run this example:
java.lang.ClassNotFoundException: java.rmi.Naming
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at com/gil/web/applet/HelloApplet.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run

In the applet code this is where the problem is:
try {
obj = (Hello)Naming.lookup("//" +
getCodeBase().getHost() + "/HelloServer");
message = obj.sayHello();
} catch (Exception e) {
System.out.println("HelloApplet exception: " +
e.getMessage());
e.printStackTrace();
}

Anyone have similiar problems or know how to resolve this ?
Thanks,
Gil

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 30 2002
Added on Oct 2 2002
1 comment
119 views