I am going through Sun's RMI tutorial, when it comes to deployment, it says to extract the jar file and put the classes in a network accessiable directory. I am just curious to know whether I can put the jar file in my directory and expect everything works.
My guess is that it does not since the tutorial specifically said to extract classes out of the jar file. I am just wondering why Sun could not go a step further, since they allow jar in CLASSPATH, why not allow jar files in RMI download, that would save us from extracting all classes and then copying it over.
You can't put the JAR file in the network accessible directory (called the "codebase")... you have to *make* the JAR file the codebase (i.e. point at the JAR file itself instead of the directory it is in). You can look at the bottom example in section 5.0 of the Dynamic code downloading using RMI tutorial for how this would look.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
You've gotta fight it! Don't give in! Read this tiny ad:
how do I do my own kindle-like thing - without amazon