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




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



Other Threads

1. How to license Google Closed Source Apps for device

Where can I find information to license Google closed source apps for
Android devices? These apps include

* Gmail
* Google Map
* Google Talk
* Android Market


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

2. Null pointer exception while receiving at Broadcast receiver

Hi all,

  I am receiving Text messages from another application sent through
broadcast intent. I am displaying these messages to my application's
GUI.

  In my application I had defined <broadcast receiver> in my
manifest.xml

------------------------------------------------------------------------------
<receiver android:name=".HHBroadcastReceiver">
                        <intent-filter>
                        <action android:name="android.demo.test"/>
                        </intent-filter>
                </receiver>
-------------------------------------------------------------------------------------
and also define the logic in the Broadcast receiver class

-------------------------------------------------------------------------------------------
public class HHBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
//TODO: React to the Intent received.
        String msg_receive = intent.getStringExtra("message1");
        AssetTest.hh_text.append("\n\n"+msg_receive);
}
}
---------------------------------------------------------------------------------------------

but I am getting following error,

09-04 10:49:04.275: ERROR/AndroidRuntime(912):
java.lang.RuntimeException: Unable to start receiver
android.hh.HHBroadcastReceiver: java.lang.NullPointerException
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2417)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
android.app.ActivityThread.access$2700(ActivityThread.java:112)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1741)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
android.os.Handler.dispatchMessage(Handler.java:99)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
android.os.Looper.loop(Looper.java:123)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
java.lang.reflect.Method.invokeNative(Native Method)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
java.lang.reflect.Method.invoke(Method.java:521)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
dalvik.system.NativeStart.main(Native Method)
09-04 10:49:04.275: ERROR/AndroidRuntime(912): Caused by:
java.lang.NullPointerException
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
android.hh.HHBroadcastReceiver.onReceive(HHBroadcastReceiver.java:12)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2408)
09-04 10:49:04.275: ERROR/AndroidRuntime(912):     ... 10 more


Please help.

Thanks,
Asif


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

3. DISABLE_DEXPREOPT ?

4. Have GET_INTENT_FILTERS been supported?

5. Pixelated Image

6. Image Pixelation (PNG)

7. Why I can not play the ringtone in the real device?