TopLink Wiki

Main
About
Javadoc
Forum
Resources

RecentChanges
About Wiki
Find Pages
Page Index

Set your name in
UserPreferences

Edit this page


Referenced by
DebugTopLink
TopLinkSourceCode




JSPWiki v2.0.52


DecompileTopLink


If RecompileTopLinkFromSource is not enough for your needs, there is always the brute-force option, ie. decompiling.

1. Expand the TopLinkJar to a temporary directory say toplink-jar.

2. Use the JadDecompiler to decompile TopLink classes to a source directory. Not all classes may decompile cleanly, that's probably okay.

$ jad -s java -r -lnc -b -pi99 -d source toplink-jar/**/*.class
If your shell fails with "invalid argument" or something of the sort, you may want to try this command instead:
$ find toplink-jar -name '*.class' | xargs jad -s java -r -lnc -b -pi99 -d source

3. Expand the TopLinkSource (source.jar) on top of the decompiled classes. This source is precious as it includes comments and proper variable names.

$ cd source
$ jar xvf ../source.jar

4. The rest is just like RecompileTopLinkFromSource.

Caveat Emptor eclipse/showwarn_tsk.gif

This procedure is not endorsed by OracleCorp and most certainely violates your license agreement. The author(s) of this site do not accept any responsibility for consequences due to following these instructions.


Edit this page   More info...   Attach file...
This page last changed on 04-Apr-2005 13:45:33 PDT by 64.168.145.189.