Error while compiling kernel

I am getting the following error when I refer to a third party jar which is inside the libs folder of my application

make: *** No rule to make target `packages/apps/DemoApp/jackson-all-1.6.2.jar', needed by   `out/target/product/SH09D/obj/JAVA_LIBRARIES/libs_intermediates/javalib.jar'.  Stop.
 make: *** Waiting for unfinished jobs....
 make[1]: Leaving directory `/home/john/beta/ICS/LINUX/android/kernel'

Open in new window


Following is my mk file

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_STATIC_JAVA_LIBRARIES := libs
LOCAL_PACKAGE_NAME := DemoApp
LOCAL_JAVA_LIBRARIES :=

LOCAL_PROGUARD_FLAGS := -include $(LOCAL_PATH)/proguard.flags

LOCAL_PROGUARD_ENABLED := disabled

#LOCAL_SDK_VERSION := current

include $(BUILD_PACKAGE)

##################################################
include $(CLEAR_VARS)

LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libs:jackson-all-1.6.2.jar

include $(BUILD_MULTI_PREBUILT)

include $(call all-makefiles-under, $(LOCAL_PATH))

Open in new window


Can someone please let me know the cause and solution for this error? Any help is appreciated with full points for sure.
Sreejith22Asked:
Who is Participating?
 
Sreejith22Author Commented:
LOCAL_STATIC_JAVA_LIBRARIES := jackson-all-1.6.2.jar

LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES :=  jackson-all-1.6.2.jar:libs/ jackson-all-1.6.2.jar


This resolved my issue.
0
 
Darr247Commented:
"packages/apps/" would appear to be a relative path, rather than an /explicit/absolute path...  

when you're in the subdir where you run the make command, can you do

CD packages/apps

and have it switch to that subdir?

If not, then you need to either make it an absolute path from root, or switch to the parent folder of packages/apps/ before running make.

Oh, and jackson-all-1.6.2.jar does really exist in ... packages/apps/DemoApp/ right?
0
 
Darr247Commented:
Gee... How did you ever figure out the path was wrong?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Sreejith22Author Commented:
>>Gee... How did you ever figure out the path was wrong?

By referring other apps in the android codebase to see the pattern they have used in .mk files for specifying jar.
0
 
Sreejith22Author Commented:
0
 
Darr247Commented:
No thank you.
0
 
Sreejith22Author Commented:
Modifying the lines as I have given in answer resolved the issue I had.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.