开发者

Java RMI Netbeans Packages

开发者 https://www.devze.com 2022-12-21 06:16 出处:网络
When开发者_开发知识库 using Netbeans I am able to run RMI applications if I don\'t put the source files in a package, however when I try and split it up into packages.

When开发者_开发知识库 using Netbeans I am able to run RMI applications if I don't put the source files in a package, however when I try and split it up into packages. I start to get class not found exceptions any help would be greatly appreciated.


Post some code. Class not found exceptions usually mean that your classpath isn't set properly. I don't mean a CLASSPATH environment variable, either. NetBeans (and all IDEs) ignore environment variables and ask that you tell them where to find .class files.

Find out what NetBeans thinks your classpath is and make sure it's set properly.


RMI server returns the output with the package name and interface name. So, when the interface moved to another package, the server can't identify that. That is the problem you have.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号