This should be simple but I have never done it before and didn’t find any solution.
I am currently using Eclipse to code my program, which imports some external JAR library such as google data api library. I can use Eclipse to compile/build/run the program.
But now I want to run it in terminal, so where should I put those JAR files, and how to build and run the program?
Thanks!
You can do :
1)
javac -cp /path/to/jar/file Myprogram.java2)
java -cp .:/path/to/jar/file MyprogramSo, lets suppose your
current working directoryin terminal issrc/Report/Take a look here to setup Classpath