OiO.lk Blog java How to run a java class with a jar in the classpath?
java

How to run a java class with a jar in the classpath?


Why am I getting the error Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Hex when I run a program from a Windows command line? I set the path to include the folder with commons-codec-1.5.jar. Is SET PATH=path_to_folder_with_commons;%PATH% not sufficient?



You need to sign in to view this answers

Exit mobile version