I have downloaded a library which contains some methods within some classes that I would like to use.
The library I have downloaded is the apache common lang package and I have the "commons-lang3.jar" file, I am trying to set a classpath using the environment variables in windows 7 but it doesn't do anything.
Can someone check if I am doing this right:
User variables for Me:
Variable: PATH,
Value: C:\Users\Me\Documents\JavaLib\commons-lang3.jar,
JavaLib is a file I have created which contains commons-lang3.jar on its own.
Java file name: Myclass.java
command typed into cmd: javac Myclass.java
Error returned: error: package org.apache.commons.lang3 does not exist
Myclass.java contains:
import org.apache.commons.lang3.StringUtils;
and it can't find it even though I have put it into my environment variables.
What have I done wrong?