logo       

Re: newb question: packages w/rmi: msg#00006

java.sun.rmi

Subject: Re: newb question: packages w/rmi

>Can anyone tell me what I'm doing wrong? Do I have to specify a package =
>when generating the stub with rmic? If so, how? FYI: The files work =
>fine when not inside of packages (with the package reference removed =
>from server.java).

run rmic with the -d argument specifying the name of the directory that is
the root of your class file package structure. Typically, I compile my java
source files with

javac -d classes src/org/wonderly/some/Thing.java

and then if I want to run RMIC on that same file I would use

rmic -d classes org.wonderly.some.Thing
-----
gregg@xxxxxxxxxxxx (Cyte Technologies Inc)

===========================================================================
To unsubscribe, send email to listserv@xxxxxxxxxxxx and include in the body
of the message "signoff RMI-USERS". For general help, send email to
listserv@xxxxxxxxxxxx and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise