I am new to java and I need to manipulate java bytecode for some purposes (see this). Java bytecode manipulation need following imports:
I resolved org.objectweb.asm by downloading ASM package from asm website and related imports have been resolved.
I don't know how to resolve java.lang.instrument, My default ADT bundle hasn't it:
How do I resolve this import? Should I download any library? from where?
any help would be appreciated.
Thanks.
The java.lang.instrument
package isn't available for Android. Just like AWT and Swing. Have a look at this question:
Android & Dalvik - Get the size of an object
But it makes sense. Android apps are written at the source level in Java, but they don't run on the JVM -- they run on the dalvik VM. There's no contract there that says they have to support the standard Java library.
Sorry :(
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With