• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem compiling using rmic

 
vaneetha kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 4 classes - the interface, client, implementation and a server class all in a specific package and saved under appropriate folders. I compiled the interface with no problems (both from the default folder and also going inside the package folders)...But, when I try to run rmic on the implementation class, I am getting a strange error...I am getting the same error if I run from my default folder or when I go inside the package folder
Here is the error
C:\dev\src\com\companionp2p\client\claimsengine\sna>rmic SNAImpl
error: File .\SNAImpl.java does not contain type SNAImpl as expected. Please adjust the class path so that the file does not appear in the unnamed package.
error: Class SNAImpl not found.
.\SNAImpl.java:12: Interface com.companionp2p.client.claimsengine.sna.SNA of class com.companionp2p.client.claimsengine.sna.SNAImpl not found.
implements com.companionp2p.client.claimsengine.sna.SNA {
^
3 errors
What am I doing wrong ?? My classpath = .;c:\jdk1.3\bin\;c:\dev\src\com\companionp2p\client\claimsengine\sna.
If I compile without packages from my c:\dev\src, works fine...
 
raimondas zemaitis
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should run rmic from the root of your code and specify fully classified class name (i.e. with package name), also, rmic takes -cp option for setting classpath.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!