0

I'd like to reference several JARs at once in my CLASSPATH. Can I use an asterisk for this?

apennebaker
  • 603
  • 1
  • 8
  • 17

1 Answers1

5

Yes.

java -cp "lib/*" MainClass

Note that quotes are mandatory, see this question for additional details.

Community
  • 1
  • 1
OlivierBlanvillain
  • 7,475
  • 4
  • 29
  • 49