I am able to compile any program from command line, but when I try to run it using java classname, I get error: I am able to run some programs only by using java -cp option. Now the problem is that I am not able to run the programs enclosed in jar files. No matter what I am doing, I get the same error.
I have to do this: java org.apache.axis.client.AdminClient This compiled class is a part of axis.jar. I tried to run it in two ways. 1) and then extracted the files from jar file and
If a class is in a jar file, then you have to include the jar file in the classpath. Something like java -cp axis.jar org.apache.axis.client.AdminClient [ August 21, 2006: Message edited by: Joanne Neal ]