• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI codebase complications

 
Shawn Capron
Greenhorn
Posts: 9
  • 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
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • 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
  • 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
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic