I really like idea of mentioned in my previous post x86 emulator in Java - JPC.
This reminded me that I always wanted to create Java Virtual Machine in Java :-)
Using weekend I made first attempts and it isn't easy ;-)
I use Java Virtual Machine Specification and try to implement some piece of code for handling CLASS files, and for now I'm during tires of handle constant pool....
In theory I try to use TDD but without success ;-)
As I wrote it's not easy....
Sources of JPC - x86 emulator in Java
Blah... ugly API ;-)
Why it isn't working???
How many i 1+1 in Java? ;-)