Unable to compile using rmic

Hello all

I have successfully compiled files using javac. The path is set, so I just need to open a command prompt and simply type javac AddServerImpl.java and it compiles with out errors. I do not have to specify any path at all.

But when I try to compile using rmic, that is where I have the problem. It simply says "error: Class AddServerImpl$.java not found. 1 error."

I simply don't understand what the problem is. If the path can work with javac <name>, why can't it work with rmic.

I have even tried copying the java files, to where the rmic file is present and then tried running rmic AddServerImpl. But it still does not work. I have even included the following line under the environment variables "setclass path = %classpath%c:\rmiproject\"

A bit desparate of ideas.

Thankyou

[835 byte] By [princerozarioa] at [2007-11-27 10:34:06]
# 1

Try searching the forum. This is an old, common problem.

Generally, you need to specify explicitly both the java home class path and the user class path on the rmic command.

cooper6a at 2007-7-28 18:26:49 > top of Java-index,Core,Core APIs...
# 2

> If the path can work with javac <name>, why can't it work with rmic.

Because javac takes a path to a filename. rmic takes a package-qualified classname. Different strokes.

ejpa at 2007-7-28 18:26:49 > top of Java-index,Core,Core APIs...
# 3

try this one budy it will work

using cmd prompt

set CLASSPATH=c:\java\jre1.6\bin;%CLASSPATH%;

i hope this will work i usualy used that command

GegegegegeRisea at 2007-7-28 18:26:49 > top of Java-index,Core,Core APIs...
# 4

That will make no difference whatsoever. It is completely unnecessary. c:\java\jre1.6\bin doesn't contain any .class files or resources, so what is the point of telling Java that it might?

ejpa at 2007-7-28 18:26:49 > top of Java-index,Core,Core APIs...