not able to add jar in linux server while executing java class -


i executing 2 java classes have stringutils function. have common-lang3.jar giving command

`javac -cp  common-lang3.jar *.java`  

this time no error after that

java -cp common-lang3.jar abc.class giving could not find or load main class linux server have place jar files can give command javac *.java ? if in classpath java -classpath not allowing me edit. pls help

change

java -cp  common-lang3.jar  abc.class 

to (assuming abc has main method)

java -cp  common-lang3.jar:.  abc 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -