• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI CodeBase?

 
Steven Leow
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is codebase? I have seen in the clientapplet.java source like this :
--------------------------------------------------------------
cs = (ChatServer)Naming.lookup("rmi://" + getCodeBase().getHost() + ":5050/ChatServerImpl");
--------------------------------------------------------------
I know in my applet html code, i have to write : What am i suppose to write in the codebase?
My classes are stored in side c:\html\chat\classes
My html code are inside the chat folder
My web server is http://localhost/chat
I used package eg chat.chatserverimpl etc
So my codebase shd be written as codebase="chat/" or "chat/classes"
Pls advise 'cos i kept having the class is not found...
[This message has been edited by Steven Leow (edited June 19, 2001).]
[This message has been edited by Steven Leow (edited June 19, 2001).]
[This message has been edited by Steven Leow (edited June 19, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!