rmic Compiling issues.

I have been having multiple issues trying to compile stubs/skeletons using the rmic command on a program that I wrote under both Windows 98 and XP, both with java 1.5.

To simplify things, I tried using a HelloWorld example from the internet as well, but to no avail. I am generally confused about the topic, having found several of the tutorials vague on the topic of making stubs.

To simplify things, I'll describe my problem with the HelloWorld program. I all server files in the Java/bin directory with rmic.exe , and changed the directory to that.

rmic Hello , rmic Hello.java, rmic Hello.class

all produce a class not found.

I set classpath to the /java/bin directory and retried, that produced no change.

I have tried using JCreator's rmi function, but that doesn抰 seem to produce results. It seems that the command gets truncated when the program does it.

Lastly, i tried

rmic"C:\program Files\...\bin\Hello"

and variants of that. It simply produces an exception in the rmic.

If anybody can give me a simple solution, I would appreciate it.

[1145 byte] By [BRBadea] at [2007-10-2 5:47:58]
# 1
What message did rmic display?
aniseeda at 2007-7-16 1:57:31 > top of Java-index,Developer Tools,Java Compiler...
# 2

Hi this is ankur

well the possible problem with ur application seems that the Hello.java class must be in some package . Remove the package <package anme >;

line from this file and then try compiling. And if this is not the problem then plz send the detailed exception or error.

ankur@javaa at 2007-7-16 1:57:31 > top of Java-index,Developer Tools,Java Compiler...
# 3
It is not a good idea to remove the package names. It is better to modify the compilation command accordingly.
aniseeda at 2007-7-16 1:57:31 > top of Java-index,Developer Tools,Java Compiler...