Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old April 2nd, 2010, 11:38 AM   #1 (permalink)
New Member
 
Join Date: Apr 2010
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default External Jar file error

Hi,
I have included an external jar file in eclipse as a user library. Everything compiles and deploys correctly to my android emulator.

When it comes to calling the activity that uses the external jar classes it craps out. I set a breakpoint at the offending area and it is reporting that it cannot find the class that I was trying to use.

The jar file is from Barbecue project

Stack extract:

ClassNotFoundException.<init>(String, Throwable) line: 59
VMClassLoader.loadClass(String, boolean) line: not available [native method]
BootClassLoader.findClass(String) line: 1057
BootClassLoader.loadClass(String, boolean) line: 1124
PathClassLoader(ClassLoader).loadClass(String, boolean) line: 567
PathClassLoader(ClassLoader).loadClass(String) line: 532
LoyaltyCard.outputtingBarcodeAsPNG() line: 32
LoyaltyCard.onCreate(Bundle) line: 21


Please Help

Damian

dcreedon is offline  
Reply With Quote
Sponsors
Old April 2nd, 2010, 06:23 PM   #2 (permalink)
Member
 
Join Date: Sep 2009
Location: Birmingham, UK
Posts: 148
 
Device(s): G1 (Developer model), HTC Tattoo, Nexus One.
Thanks: 1
Thanked 26 Times in 22 Posts
Default

Hi Damian,

Don't forget that Android Java isn't standard Java. It uses its own JVM.
Android will only recognise classes that were compiled with the Android java compiler, so standard java .class files that make up the external jar file won't work.

If you have the source, and recompile using the Android SDK then you might have more luck.

Mark
markb is offline  
Reply With Quote
Reply

Bookmarks

Tags
external, import, jar, library


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to send a external file to Android Emulator k.sumita Application Development 5 March 3rd, 2012 08:48 AM
Error: file cannot be displayed or played (please help!) Shrox Droid X - Support and Troubleshooting 2 November 2nd, 2010 11:41 AM
Help with External SD file transfer RSNation Captivate - Support and Troubleshooting 1 October 17th, 2010 03:26 PM
fix the error in .out.xml.file lakshmanan Android Lounge 1 September 14th, 2010 10:15 AM
Support Error msg when transferring file Chojey Samsung i7500 4 February 24th, 2010 02:00 PM



All times are GMT -5. The time now is 12:18 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo