Hi,
I have recently installed
java on ubuntu.
But I am starting with Java after a long time now. Please help me ...
I have been getting this error -
java.lang.NoClassDefFoundError: org/apache/commons/fileupload/servlet/ServletFileUpload
I am using these jar - /commons-fileupload-1.2.2 and commons-io-2.0.1.jar:
which I believe might be due to incorrectly set CLASSPATH ??
How to fix it?
Could you please help me with configurations I need to set up - I am listing what I know - please correct or add to it.
1 the /etc/environment file should have this
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.24/jre"
CLASSPATH="/usr/lib/jvm/java-6-sun-1.6.0.24/lib:/home/xyz/commons-fileupload-1.2.2/lib/commons-fileupload-1.2.2:/home/xyz/commons-io-2.0.1/commons-io-2.0.1.jar:"
what else should I set up?