3rd party jar

by Michael Lippautz » Tue, 10 Feb 2009 06:40:01 GMT


Sponsored Links
 Hi,

Having a problem here with including a 3rd party jar and couldn't find
any proper solutions on the group so far.

Compiling the HelloWorld app. with an additional 3rd party jar
(cglib-nodep). The jar is in the lib/ folder and has been added to build
path (add jar).

Compiling gives these warnings (about ~30 times):
warning: Ignoring InnerClasses attribute for an anonymous inner class
that doesn't come with an associated EnclosingMethod attribute. (This
class was probably produced by a broken compiler.)

I then tried to create the dex file myself (dx --dex --output=xx.dex
xx.jar) and succeeded without any errors. As far as I know an
incompatible jar file (incompatible byte code) shouldn't have passed
this one. Am I right here?

The problem is that by adding another 3 external jars the number of
warnings increases, compiling fills the buffer completely and finally
crashes the workspace.

Did I miss something?

I tried another approach by adding them as user lib but got an undefined
reference at runtime. (The .dex and .apk were far too small, so I think
they didn't get included)

Libs were:
cglib-nodep
commons-logging
antlr-runtime



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



3rd party jar

by Michael Lippautz » Tue, 10 Feb 2009 06:40:33 GMT


 Hi, (if you already received the message, sorry for that!)

Having a problem here with including a 3rd party jar and couldn't find
any proper solutions on the group so far.

Compiling the HelloWorld app. with an additional 3rd party jar
(cglib-nodep). The jar is in the lib/ folder and has been added to
build
path (add jar).

Compiling gives these warnings (about ~30 times):
warning: Ignoring InnerClasses attribute for an anonymous inner class
that doesn't come with an associated EnclosingMethod attribute. (This
class was probably produced by a broken compiler.)

I then tried to create the dex file myself (dx --dex --output=xx.dex
xx.jar) and succeeded without any errors. As far as I know an
incompatible jar file (incompatible byte code) shouldn't have passed
this one. Am I right here?

The problem is that by adding another 3 external jars the number of
warnings increases, compiling fills the buffer completely and finally
crashes the workspace.

Did I miss something?

I tried another approach by adding them as user lib but got an
undefined
reference at runtime. (The .dex and .apk were far too small, so I
think
they didn't get included)

Libs were:
cglib-nodep
commons-logging
antlr-runtime

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


Sponsored Links


Other Threads

1. Clickable Map Markers

Hi there,

I am developing a map application for Android.

My idea is to have a map with several markers. Whenever the user
clicks on a marker i would like to change to a different activity and
pass certain information.

My question: how can i attach something like onClick event to the
markers on the map?

I would really appreciate your replies.

regards

Patrick

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

2. Open Browser from Menu

Hello,

Here's what I'm attempting to do. I have a menu, and when a user
selects a particular option in the menu I want the browser application
to open and display the web page. However, I cannot seem to do this.

My application uses a TabWidget to display its content (which works
perefectly) but I cannot for the life of me figure out how to open a
link into the browser. I have tried adding a WebView to the TabWidget
(but when I request it from the view by findViewById(...) I get a
null. I've also tried creating a separte view and performing a
setContentView(...) and then I get an exception. I've also tried using
an intent I've seen demostrated on this group.

It seems like this should be fairly easy, but I must be missing
anything. I've looked at the sample apps as well as the Apps-for-
android samples and have followed them to the T, yet still to no avail
I cannot get the browser to open (or anything like that).

Does anyone have any recommendations/tips/code? Thanks
--~--~---------~--~----~------------~-------~--~----~

3. Bitmap memory leaks with onClick...

4. ActivityMonitor on Android activities.

5. can get the music information?

6. javax.xml.datatype.XMLGregorianCalendar

7. display more than one activity window on device