I am back to java coding after 9 years and am having trouble getting started.
I am using jdk 1.6.
This is ITest.java
-------------------------------
package com.ibm.jaxws.tutorial.service ;
public Interface ITest {
public int getNumber() ;
}
This is Test.java
--------------------
package com.ibm.jaxws.tutorial.service ;
public class implements Test {
public int getNumber () { return (5*5) ; }
}
Now compile the interface. Current working dir is C:\jax-ws\com\ibm\jaxws\tutorial\service
> c:\sun\sdk\jdk\bin\javac -cp . ITest.java
Works great and I see the ITest.class file in the current working directory as expected.
Now I compile the implementing class --->> This class fails to compile
> c:\sun\sdk\jdk\bin\javac -cp . Test.java
Test.java:5 cannot find symbol
symbol: class ITest
public class Test implements ITest {
The above 3 lines are output of the compiler.
What am I doing wrong? Why can't the compiler resolve/find ITest.class and compile Test.java?
Thanks.
Len