|
Re: Setting Classpath
|
Posted: Dec 4, 2003 6:01 AM
|
|
There is no error. You can't call "c:\myPackage\java.exe interface". Only "c:\>java.exe myPackage.interface" works. (or "c:\>java.exe -cp . myPackage.interface", in case you have problems with the classpath).
The full classname is NOT "interface", but "myPackage.interface". Only classes of the same package recognize "interface" as "myPackage.interface".
I think "c:\myPackage>java.exe -cp c:\ myPackage.interface" might work, too.
But as you see, I had to include the package in the call. If you want to use "c:\myPackage\java.exe interface" the class interface must not be part of a package.
|
|