Click here to Skip to main content
15,845,785 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i'm using java to develop simple face recognition system
i used code from the following link[^]
but i used jama 1.0.2 instead of jama 1.0.1
when i run the TestFaceRecognition file in command line it gives me the following error:
Exception in thread "main" java.lang.NoclassDefFoundError:jama/Matrix
at EigenFaceComputation.submit(
at EigenFaceCreator.ComputeBundles(
at EigenFaceCreator.submitSet(
at EigenFaceCreator.ReadFacdeBundles(
at TestFaceRecognition.main(;34)

can i get help!!!

1 solution

You are running the independent class without the right class path.
Try "java -classpath $CLASSPATH:jars/Jama-1.0.2.jar Main"
Share this answer
Richard_devz 27-Jun-11 0:56am    
hey, thanks for your help
i still have confusion
i'm using Netbeans 6.9.1,bse i didn't develop interfaces for loading the images in the system, i used commandline in windows environment
so i'm using TestFaceRecognition.class from build folder
here is what i did in my commandline for getting the above error:
c:\users\admin\Documents\NetbeansProjects\farereco\build>java TestFaceRecognition c:\images c:images\1.jpg
i added jama as jar file in netbeans
plz give me more details

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900