programming/Java
rmic로 Stub와 Skeleton 생성 시 오류
happy4u
2006. 5. 11. 14:05
rmic HelloImpl
여러 책이나 문서에 나온데로 꼴랑 위와 같이 명령을 내릴 경우 target이 되는 class의 classpath가 잡히지 않아서
"Class HelloImpl not found."
위와 같은 오류가 날 수 있다.
classpath 변경없이 아래와 같은 명령으로 한방에 해결할 수 있다.
rmic -classpath . -d . HelloImpl
* package 명이 있는 경우
class파일이 있는 디렉토리 root에서
rmic -classpath . -d . rmiTest.HelloImpl
위와같이 package 명까지 다 적어준다.