I am trying to use other jars for a program I am writing.
I installed all the required files and added them to CLASSPATH, but Java doesn't recognize the packages.
I put semicolons in between the jar locations but Java doesn't recognize the packages from the jar. Why does that happen?
For example, my classpath looks like:
.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip;C:\Users\JOE\Downloads\easymock-3.2\easymock-3.2\easymock-3.2.jar;C:\Users\JOE\Downloads\cglib-3.1.jar;C:\Users\JOE\Downloads\objenesis-2.1-bin\objenesis-2.1.jar
but if I try to import package org.easymock.EasyMock for example, the package is not recognized.
org.easymock.EasyMockexists insideeasymock-3.2\easymock-3.2.jaror not ?CLASSPATHany more. Provide the libraries through the-cpparameter when starting your Java application.