Mamta Satoor <[EMAIL PROTECTED]> writes: > Hi, > > Derby compiler generates byte code during code generation phase. My question > is how can one look at that generated code in human readable form, say in > Java language? Also, where is this generated code kept in the file system?
You can use -Dderby.debug.true=DumpClassFile (heeded by org.apache.derby.impl.services.bytecode.BCClass) to dump the classfiles, and then use a bytecode decompiler to inspect it. The files end up in derby.system.home: /export/home/tmp/derby/sb/tests/foo: total 98 drwxrwxr-x 3 dw136774 512 Apr 22 00:43 . drwxrwxr-x 5 dw136774 92672 Apr 22 00:38 .. -rw-rw-r-- 1 dw136774 3777 Apr 22 00:43 ac601a400fx0112x1650xd28fx0000003a09000.class -rw-rw-r-- 1 dw136774 366 Apr 22 00:43 derby.log drwxrwxr-x 5 dw136774 512 Apr 22 00:43 mydb3 > javap -c ac601a400fx0112x1650xd28fx0000003a09000 will dissamble the bytecode, but you can also use a decompiler like jreversepro (http://jrevpro.sourceforge.net). Hope this helps, Dag
