This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamically loading a .jar file at Runtime  RSS feed

 
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
Boost this thread!