Integrating External jars(Drools Jars) in Android


Last Updated:

  1. vinay1497

    vinay1497 Member This Topic's Starter

    Joined:
    Jun 8, 2010
    Messages:
    6
    Likes Received:
    2
    Hello Android Programmers,

    I am new to Android,
    want to integrate the Drools rules Engine into the Android Application, but i am unable to run the application if i had integrated the drools jar's into the android.

    I have used the Eclipse Galileo
    with Android 2.2 and drools 5.1

    Simply i can integrate the external jars in following ways:

    1) From java build path
    2) separate folder as lib and added the jars

    But i am unable to run the program.
    i am getting following error from LogCat
    --------------------------------------------------
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): FATAL EXCEPTION: main
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cisco/com.cisco.Ghoom}: java.lang.NullPointerException
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at android.os.Handler.dispatchMessage(Handler.java:99)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at android.os.Looper.loop(Looper.java:123)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at android.app.ActivityThread.main(ActivityThread.java:4627)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at java.lang.reflect.Method.invokeNative(Native Method)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at java.lang.reflect.Method.invoke(Method.java:521)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at dalvik.system.NativeStart.main(Native Method)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): Caused by: java.lang.NullPointerException
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at com.cisco.Ghoom.onCreate(Ghoom.java:34)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
    06-08 09:41:53.454: ERROR/AndroidRuntime(327): ... 11 more
    ------------------------------------------------

    It would be helpful for me if any one can solve

    or simply explain how to integrate the third party jars in android in different ways..

    Regards
    Vinay Guntaka
     

    Advertisement
  2. abhay_bc

    abhay_bc Member

    Joined:
    Jun 6, 2011
    Messages:
    12
    Likes Received:
    0
    hi vinay

    i am in same boat .. any luck with this one ? Were u able to get this to work ?

    -abhay
     

Share This Page

Loading...