Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamically loading a .jar file at Runtime

 
Asif Kadiwala
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Hi all,

I am storing the required test.jar file in the /sdcard. I want to
load it dynamically at runtime and want to execute a function xyz()
resides in that.

I had used typical java ClassLoader mechnism to execute it but fails and got Exception
ClassCastException : dalvik.system.PathClassLoader

My .jar file contains .class file. I think it should be converted to .dex file and then it can be used. But I want some proper information to execute my task. Please Help

Regards,

Asif
 
Asif Kadiwala
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Please tell me that any API is available or not.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic