Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMIC compile error  RSS feed

 
Mervin Chan
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one error when doing rmic *something*

1)

Exception in thread "main" java.lang.InternalError: Unexpected exception while defining class RemoteGt3Impl: java.lang.ClassNotFoundException: java.rmi.server.UnicastRemoteObject

I compiled using java and it ran ok. when i proceeded to rmic, there are errors.
what gives?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like there is a problem with your JDK install or some of the settings on your system... Do you have multiple JDK installs? Could your PATH system setting find one version of javac and another version of rmic? I don't think it's a CLASSPATH issue, because java.rmi.server.UnicastRemoteObject should be in the built-in packages provided with the JDK.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From some details I searched on in your other post I was lead to this discussion that seems similiar on Sun's forums. If you are on a Unix/Linux machine try to use the "which" command to figure out what versions of different programs are being executed. Try "which rmic", "which javac", and "which java". If any of these locations don't match up, you'll need to mess with how your PATH system variable is defined.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!