AdviceClient.java:18: package headfirst does not exist (for all headfirst package classes).
But when I extract the AdviceAppClient.jar file to project directory (c:\ejbprojects\advice) and compiled using following command, it worked fine ( Also I ran the client and got the expected results)
javac AdviceClient.java
Any idea! Why I could not directly use AdviceAppClient.jar file during the compilation.
You can use this command for Windows environment: javac -classpath %CLASSPATH%;AdviceAppClient.jar;. AdviceClient.java
With HF they ppl have worked it out on unix environment. As to why you cant directly write java AdviceClient : You must actually be able to tell the client where are your classes located.