Hi Dillirao, Command line approach will work for Sun Java applications. I want to create a JAR file on android platform using android.mk file and looking for a sample android.mk file.
BR, Shaddu On 06/04/2009, dillirao malipeddi <dillir...@arijasoft.com> wrote: > Hi > If you want to create a jar "with out Eclipse" > > you can use jar command (Provided by JAVA) > > usage: > > > Usage: jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ... > Options: > -c create new archive > -t list table of contents for archive > -x extract named (or all) files from archive > -u update existing archive > -v generate verbose output on standard output > -f specify archive file name > -m include manifest information from specified manifest file > -0 store only; use no ZIP compression > -M do not create a manifest file for the entries > -i generate index information for the specified jar files > -C change to the specified directory and include the following file > If any file is a directory then it is processed recursively. > The manifest file name and the archive file name needs to be specified > in the same order the 'm' and 'f' flags are specified. > > Example 1: to archive two class files into an archive called classes.jar: > jar cvf classes.jar Foo.class Bar.class > Example 2: use an existing manifest file 'mymanifest' and archive all the > files in the foo/ directory into 'classes.jar': > jar cvfm classes.jar mymanifest -C foo/ . > > > I think this will help you > > Thank you > > Dilli Rao.M > > > On Mon, Apr 6, 2009 at 1:06 PM, shaddu <shad...@gmail.com> wrote: > >> >> Hi dillirao, >> >> Sorry for delayed response. >> I am using some APIs/packages from Android platform which are not >> puclic in Android SDK. >> So, I cannot use eclipse to build. Only option is make command from >> shell. So, would you help with sample make files to build a library >> from our own .java files and then link with application apk file. >> >> BR, >> Shaddu >> >> On Mar 12, 10:12 am, dillirao malipeddi <dillir...@arijasoft.com> >> wrote: >> > you can create your own jar file by select >> > right click on project of which you want to make jar and select export >> > >> > choose jar under java and select the .java files you want to make a jar >> and >> > >> > it will create jar for you and you can use that as 3rd party jar >> > >> > On Thu, Mar 12, 2009 at 10:20 AM, Shadakshari Hiremath < >> shad...@gmail.com>wrote: >> > >> > >> > >> > >> > >> > > Hi Dirk, >> > >> > > Thanks for your response. One more question. >> > > Is it possible to build a jar file from source in eclipse for some >> > > core modules? If yes then how? If not then is it possible by writting >> > > a make file? Please provide a sample. >> > >> > > BR >> > > Shaddu >> > >> > > On 12/03/2009, indiabolbol.com <bolbolin...@gmail.com> wrote: >> > >> > > > create a folder called lib and put 3rd party jar in there. Then add >> > > > a >> > > > reference to the jar in Eclipse as any other java app. >> > >> > > > On Mar 6, 1:22 pm, Dirk Jäckel <dirk.jaec...@gmail.com> wrote: >> > > >> Hi! >> > >> > > >> I use thrid-party jars with my application. All it takes is the >> > > >> dx-compiler transforming the classfiles to dex-files. It might also >> be >> > > >> neccessary to have a uses-library statement in your manifest. >> > > >> Like: <uses-library android:name="android.awt"/> >> > >> > > >> Its explained for eclipse here: >> > >> > > >> >> http://groups.google.com/group/android-developers/browse_thread/threa. >> > > .. >> > >> > > >> It is _not_ necessary to compile (.java -> .class) the jars with >> > > >> the >> > > >> android sdk. >> > >> > > >> Dirk >> > >> > -- >> > Dilli Rao. M >> > >> > > > -- > Dilli Rao. M > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---