Hi friends,
I could not able to run
java main class properly. This is how I do;
I have a java project created in eclipse, say
Abc. Project has build path to external jar files. I created the jar file
Abc.jar, exported from eclipse.
So inside the jar file I have
lib folder in which the external jar files(
ExtJar.jar) are stored.
I went to that folder through command prompt, and tried to run the java class. like:
java -cp Abc.jar com.javalabs.examples.Abc
But it says, class not found; that class belongs to external jar
ExtJar.jar file.
As an alternative trail, I tried :
java -cp Abc.jar;lib\ExtJar.jar com.javalabs.examples.Abc
The package structure and folder structure are correct.
So how can I set the path for the external jar files???
I hope my doubt is asked clearly.
Any and all suggestions are appreciated. Also let me know in case of any confusion in the question.
Thanks and Regards.