0
votes

I'm just wondering if there are any Java class editors that work on a J2ME environment. I've looked at aspectwerkz, which works with Java 1.4, but there are some dependencies that doesn't work on J2ME, plus it seems too big for my project. I've also took a look at Objectweb ASM, but it requires Java 5. I've seen other libraries such as BCEL and AspectJ, but none of them seem to work. So basically, I'm looking for a Java library that can modify class files (doesn't matter if it's through bytecode or not) and runs on a J2ME environment. Thanks.

2
I found that asm version 3.3.1 works on J2ME and the HelloWorld example worked. I guess I will work with that, but it would be nice to have a "higher" library like AspectJ which can insert raw java code. If nothing like that exists for J2ME, I guess I can make the library myself. - Yifan

2 Answers

1
votes

Javassist looks like it will. See the last page of the tutorial.

0
votes

Retroweaver is something to look at. Since source is available you may be able to modify it to your needs.