Are you including 3rd party libraries in your application?

Those might contain code that access (or include) classes in the
java.awt namespace which are not supported.

Xav

On Fri, Sep 25, 2009 at 3:01 PM, Beth <[email protected]> wrote:
>
> This is getting out of hand!  A second project in my Eclipse workspace
> started throwing the error.  I fooled around with the clean project
> and fix properties commands and got nowhere. I rolled back from 1.6
> SDK to 1.5 only to find that did not resolve the problem.  I even
> switched to the MotoDev Studio program, built atop Eclipse.
>
> This error seems a bit intermittent and I suspect it is the
> environment because when I created a new project where there is only
> the MainActivity stub, no code entered into the project yet, I got an
> error.  That one went away but I cannot shake the error from my other
> two projects. I deleted the existing project, created my project new,
> and without even importing the old project source, I got the error.
>
> Another reason I suspect configuration is that the compile gets
> through all of the dalvik classes and then chokes on the very first
> java package.  In other words, the system passes through all my files,
> all the android and dalvik classes and then throws an error once it
> hits java.  I am not using the awt class unless some other android
> class is calling it.
>
> The error is pasted here.  If there are any Eclipse configuration
> experts reading, I would really welcome ideas.  To be clear, I am
> running on Mac OS v 10.5.8 with JDK 5.  Is there an environment
> variable I need, something on the path?  Is there a JRE setup I could
> be missing?
>
> [2009-09-25 14:48:29 - Alarmoid]processing dalvik/system/
> Zygote.class...
> [2009-09-25 14:48:29 - Alarmoid]processing java/awt/font/
> NumericShaper.class...
> [2009-09-25 14:48:29 - Alarmoid]
> trouble processing "java/awt/font/NumericShaper.class":
> [2009-09-25 14:48:29 - Alarmoid]
> Attempt to include a core VM class in something other than a core
> library.
> It is likely that you have attempted to include the core library from
> a desktop
> virtual machine into an application, which will most assuredly not
> work. If
> you really intend to build a core library -- which is only appropriate
> as
> part of creating a full virtual machine binary, as opposed to
> compiling an
> application -- then use the "--core-library" option to suppress this
> error
> message. If you go ahead and use "--core-library" but are in fact
> building
> an application, then please be aware that your build will still fail
> at some
> point; you will simply be denied the pleasure of reading this helpful
> error
> message.
> [2009-09-25 14:48:29 - Alarmoid]1 error; aborting
> [2009-09-25 14:48:29 - Alarmoid]Conversion to Dalvik format failed
> with error 1
>
>
> On Sep 18, 1:59 pm, Beth <[email protected]> wrote:
>> Thanks for the suggestion, but, I am not using that lib in my code.  I
>> do not have any NumericShaper class call and cannot see how to clear
>> the error.  Could it be some Eclipse glitch happening with the import
>> of my project from another machine? I guess it's just me with this
>> problem! A second error cropped up where the apk file is not found on
>> my system in bin and I cannot create a new one.
>>
>> Unless there is a better idea, my next step is probably to try and
>> import the code into a new project to see if the weirdness will go
>> away.
>> Wish me luck!
>>
>> On Sep 17, 10:02 pm, Raphael <[email protected]> wrote:
>>
>> > IIRC awt is a separate library that you need to declare explicitly in
>> > your application 
>> > manifest.http://www.google.com/search?hl=en&q=android+uses-library+awt
>>
>> > R/
>>
>> > On Thu, Sep 17, 2009 at 1:49 PM,BethMezias <[email protected]> wrote:
>> > > Hiya,
>>
>> > > When I try to open my SDK 1.1 project with Donut, I get an error (pasted
>> > > below).  I did a search and cannot find the NumericShaper anywhere in my
>> > > code.  As a matter of fact, I cannot even find an import or call to the
>> > > java/awt package.  Can I get a clue about how I might solve it?
>>
>> > > Thanks and regards,
>> > >Beth
>>
>> > > [2009-09-17 13:44:14 - Flipper]processing dalvik/system/Zygote.class...
>> > > [2009-09-17 13:44:14 - Flipper]processing
>> > > java/awt/font/NumericShaper.class...
>> > > [2009-09-17 13:44:14 - Flipper]
>> > > trouble processing "java/awt/font/NumericShaper.class":
>> > > [2009-09-17 13:44:14 - Flipper]
>> > > Attempt to include a core VM class in something other than a core 
>> > > library.
>> > > It is likely that you have attempted to include the core library from a
>> > > desktop
>> > > virtual machine into an application, which will most assuredly not work. 
>> > > If
>> > > you really intend to build a core library -- which is only appropriate as
>> > > part of creating a full virtual machine binary, as opposed to compiling 
>> > > an
>> > > application -- then use the "--core-library" option to suppress this 
>> > > error
>> > > message. If you go ahead and use "--core-library" but are in fact 
>> > > building
>> > > an application, then please be aware that your build will still fail at 
>> > > some
>> > > point; you will simply be denied the pleasure of reading this helpful 
>> > > error
>> > > message.
>> > > [2009-09-17 13:44:14 - Flipper]1 error; aborting
>> > > [2009-09-17 13:44:14 - Flipper]Conversion to Dalvik format failed with 
>> > > error
>> > > 1
>> > > [2009-09-17 13:44:14 - Flipper]Refreshing resource folders.
>> > > [2009-09-17 13:44:14 - Flipper]Starting incremental Pre Compiler: 
>> > > Checking
>> > > resource changes.
>> > > [2009-09-17 13:44:14 - Flipper]Manifest min SDK version (2) is lower than
>> > > project target API level (4)
>> > > [2009-09-17 13:44:14 - Flipper]Nothing to pre compile!
>>
>>
> >
>



-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to