Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
i'm using java to develop simple face recognition system
i used code from the following link http://darnok.org/programming/face-recognition/[^]
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(EigenFaceComputation.java:132)
at EigenFaceCreator.ComputeBundles(EigenFaceCreator.java:118)z
at EigenFaceCreator.submitSet(EigenFaceCreator.java:160)
at EigenFaceCreator.ReadFacdeBundles(EigenFaceCreator.java:118)
at TestFaceRecognition.main(TestFaceRecognition.java;34)

can i get help!!!
Posted

1 solution

You are running the independent class without the right class path.
Try "java -classpath $CLASSPATH:jars/Jama-1.0.2.jar Main"
Ref:http://stackoverflow.com/questions/1863296/jama-matrix-classnotfoundexception[^]
http://ubuntuforums.org/showthread.php?t=1367110[^]
 
Share this answer
 
Comments
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