What is wrong with my classpath?
I have an rmi server(HelloWorldServer) and client(HelloWorldClient). The rmi server implements a remote interface(HelloWorldInterface). These 3 classes are part of the same java package(helloworldrmi) and I have created a jar file containing the 3 classes, helloworldrmi.jar
My classpath is -cp path/to/helloworldrmi.jar
When I try to run it using
java -cp path/to/helloworldrmi.jar helloworldrmi.HelloWorldServer
It throws a ClassNotFoundException exception saying helloworldrmi.HelloWorldInterface is not found
What's wrong?
I'm trying this on a windows machine, on a linux machine, it works just fine