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
Post a Comment