Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot use rmic with packages  RSS feed

 
Nikos Bouzoukis
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. I am trying to create the stub file of a class which is included in a package. The class is called client.java and the package Box. The class appears in a directory called Box along with the rest classes of the package. But when I am giving the command

rmic client.java

I get an error which says: "client.java doesn't contain type client as expected but Box.client. Please remove the file or make sure it appears in the correct subdirectory of the classpath"
Why am I getting this? It is the first time that I am using rmic with packages though.
 
Nikos Bouzoukis
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the problem. I mast be at the parent directory and enter there:

rmic [PackageName].[ClassName]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!