• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Integrating External jars(Drools Jars) in Android

vinay1497

Lurker
Jun 8, 2010
6
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
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones