I have written code that uses classes in jar files for Twitter4J API. I want to run my code through a command prompt. How would I do that? I tried:
$ javac -cp [path-to-twitter4j-jars] MyCode.java
It got compiled successfully, but when i run it by
$ java MyCode
But it does not find the Twitter4J classes. I am creating an instance of that class in my code.
Could anybody please help me on this issue?