Hi. I have two questions.
1) Is there any reflectasm .jar, or do i have to build it from the downloaded project?
2) I downloaded the reflectasm project and built my own .jar. Then, i imported the .jar on a normal Netbeans project. I tried to use MethodAccess with a class that i created on my project:
MethodAccess access = MethodAccess.get(ModelClass.class);
But i got this error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/objectweb/asm/ClassWriter
at com.esotericsoftware.reflectasm.FieldAccess.get(FieldAccess.java:108)
at pack2.ReflectTest.main(ReflectTest.java:29)
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassWriter
Then, i opened the reflectasm project on Eclipse, and i created a main class and a model class for test purposes, inside the project, and it worked.
As far as i understood, the problem is the class loader. So, if i want my classes working with an reflectasm .jar, do i need to modify the AccessClassLoader (or create my own classloader)?
---
By the way, my sugestion is byte class loader. So, it would allows to load classes from data bytes.
Best regards, and congratz for your project guys :)
Gabriel.