I have an RMI server that is using a class from another project. I have imported the jar of the other project as library on the RMI and it works fine on netbeans. Although when I run the RMI Server from the .jar generated by netbeans, I am getting classnotfoundexceptionfor the class imported.
Any suggestions why it would be running inside netbeans, but the jar isn't working?
Also I am not sure if it was the right choice but on the RMI I have checked ” used dedicated library folder” since the other project is very small.
Also note I am importing the server on the other project too, so that it can use the remote interface.( although I guess this has nothing to do with the problem).
When you launch your rmi server you put in the classpath also the jar with the other class?
Try to launch the jar from command prompt: