Reg: Porting of camera code with android source code

by alok Yadav » Tue, 17 Mar 2009 19:13:19 GMT


Sponsored Links
 Hi ,
    I am porting camera code with the android source code .I am 
following all the
procedure but while doing ant, i am getting following error.

******************************

[r...@localhost CameraApiTest_alok]# /usr/bin/ant
Exception in thread "main" java.lang.NoClassDefFoundError: 
org.apache.tools.ant.launch.Launcher
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: 
org.apache.tools.ant.launch.Launcher not found in 
gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/bin/build-classpath,file:/usr/lib/jvm/java-1.4.2/lib/tools.jar],
 
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.7rh)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)

********************************



i have set all the path like:

export JAVA_HOME=/usr/lib/jvm/java-1.4.2
export ANT_HOME=/usr/share/ant
PATH=$PATH:$HOME:$JAVA_HOME:$ANT_HOME:

But still getting the issue.
Can some one tell that where the issue is??

Thanks in advance
Alok




--~--~---------~--~----~------------~-------~--~----~