[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: two jars in java



> Could you please tell me how to compile my.java with two jars? What is the
> command line? Say, "javac -classpath a1.jar;a2.jar my.java", is it correct
> in windows? What is it in linux?

Just replace your semicolon with a colon:

javac -classpath a1.jar:a2.jar my.java

Ben.

-- 

Ben Burton
benb@acm.org  |  bab@debian.org
Public Key: finger bab@db.debian.org

Python is executable pseudocode, Perl is executable line-noise.




Reply to: