File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI codebase complications

 
Shawn Capron
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I moved this thread from general because I put it in the wrong section.

I am trying to modify the execution string for my RMI service the command works as expected in this format:



but it fails like this:



The exception I get is:



I have read that just specifying a directory for a codebase works with the syntax I have, is there something that I am missing?
 
Paul Clapham
Sheriff
Pie
Posts: 20171
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My first guess would be that you spelled the class name wrong; try "java.lang.ClassNotFoundException: my.service.Class" instead of "java.lang.ClassNotFoundException: my.service.CLass". (Case-sensitivity)
 
Shawn Capron
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I apologize that is a typo in my post not my code, I am not allowed to release the actual class name. I will edit my post.
 
Paul Clapham
Sheriff
Pie
Posts: 20171
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, let's try another guess. What does the asterisk mean here?

-cp "$MAIN_DIR/lib/*"
 
Shawn Capron
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is a specification for the java classpath to include all jars in that folder on the class path. I am fairly certain that has nothing to do with the codebase issue. It is the same format both in the command that works, and the one that doesn't work.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic