Open damonkohler opened 9 years ago
From @GoogleCodeExporter on May 31, 2015 11:27
You probably need to convert your files to dex format first.
See:
http://davanum.wordpress.com/2007/12/04/command-line-java-on-dalvikvm/
for examples on how to use dx and aapt.
Original comment by rjmatthews62
on 19 Jan 2011 at 1:05
From @GoogleCodeExporter on May 31, 2015 11:27
[deleted comment]
From @GoogleCodeExporter on May 31, 2015 11:27
This is how it works:
1. On the PC, dexify your standard Java jar file with the dx tool from the
Android SDK
2. Copy the dexified jar to your Android device
3. Use following code to use the Java classes:
//***********
//bsh
import dalvik.system.PathClassLoader;
ClassLoader cl = new
PathClassLoader("/mnt/sdcard/sl4a/scripts/javalibs/NanoXML-Lite-2-2-3ta1-3_droid
.jar",ClassLoader.getSystemClassLoader ());
this.interpreter.setClassLoader(cl);
nanoxml.XMLElement x = new nanoxml.XMLElement();
print ("Class instance created");
//************
Original comment by tom.ar...@gmail.com
on 13 Apr 2011 at 6:32
From @GoogleCodeExporter on May 31, 2015 11:27
Original issue reported on code.google.com by
andrea.i...@gmail.com
on 9 Sep 2010 at 3:04Copied from original issue: damonkohler/android-scripting#423