0

I am compiling java files from terminal. But It gives error for external jar files. where can I put external jars. so, it can be used at compile time from terminal?

Divyang Shah
  • 1,578
  • 1
  • 11
  • 22

1 Answers1

1

You can pput it in every directiory and then add it to the classpath:

javac -cp <path_to_jar_including_filename> <class_to_compile>
Jens
  • 67,715
  • 15
  • 98
  • 113