Reputation: 33
I tried
javac Something.java -cp ".; some\\directory\\xxx.jar"
and it worked. I could compile the file in this way.
But when running the file, i realized that I must put -cp in front, making it
java -cp ".;some\\directory\\xxx.jar" Something
Why is there such a difference?
Thanks
Upvotes: 0
Views: 69
Reputation: 240908
while running, anything you provide after Something
will be treated as program argument
Upvotes: 3