1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584
|
<HTML>
<HEAD>
<TITLE> Home Page of Jad - the fast Java decompiler </TITLE>
<META NAME="description" CONTENT="Jad - the fast Java decompiler">
<META NAME="keywords" CONTENT="java,decompiler,jad">
</HEAD>
<BODY BGCOLOR="#FFFFFF"><CENTER><script language="JavaScript">
<!--
// Cache-busting LUBID bug.
var ran = Math.round(Math.random() * 899999) + 100000;
var lubid_string = "<img src=\"http://lubid.lycos.com/one.asp?site=members.tripod.lycos.com&ord=" + ran + "\" height=\"1\" width=\"1\">";
document.write(lubid_string);
//-->
</script>
<center><table border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><A href="/adm/redirect/www"><IMG SRC="/adm/img/popup/tripodsm.gif" ALT="hosted by tripod" WIDTH="116" HEIGHT="26" BORDER="0" VSPACE="2"></A></td>
</tr><tr>
<td align="center" valign="top" width="468"><A HREF="http://ln.doubleclick.net/jump/tr.ln/memberembedded;kw=jad;h=misc;sz=468x60;ord=22723168418942?" target=_top><IMG WIDTH=468 HEIGHT=60 SRC="http://ln.doubleclick.net/ad/tr.ln/memberembedded;kw=jad;h=misc;sz=468x60;ord=22723168418942?"></A></td>
</tr>
</table><table border="0" cellpadding="0" cellspacing="3" align="center" width="468">
<tr>
<!--<td><font size="1" face="verdana, arial, helvetica, sans serif"><a href="/bin/email_this_page/display_form">E-mail this page to a friend</a></font></td>-->
<td align="right"><font size="1" face="verdana, arial, helvetica, sans serif"><a href="/bin/email_when_updated/display_form">Tell me when this page is updated</a></font></td>
</tr>
</table></center>
<div align="center"><font size="1" face="verdana, sans-serif">Tripod powered by <a href="http://linktracker.tripod.com/bin/linktracker?link=/cableandwireless/tripod">Cable & Wireless</a></font></div><img src="/img/common/cw_promo.gif" width="1" height="1" border="0" alt="">
<!-- TEMPORARY POP UNDER -->
<script language="JavaScript">
<!--
function showNow(scale)
{
var expdate = new Date ();
var surveyCookieName = "NSYNC";
var percentOfferedSurvey = 100;
var surveyLocation = "/adm/redirect/www/popunder/nsync_popunder.html";
var popupNewWindow = true;
expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000));
var stored_value = GetCookie(surveyCookieName);
if (stored_value == null)
{
SetCookie(surveyCookieName, "alreadyOffered", expdate, "", "");
nowWin = window.open(surveyLocation,'Now','height=250,width=600,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
nowWin.blur()
window.focus()
}
}
function SetCookie (name,value,expires,path,domain,secure)
{
document.cookie = name + "=" + escape (value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}
function getCookieVal (offset)
{
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name)
{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
if( (document.cookie == null) || (document.cookie.length == null))
{
return null;
}
var i = 0;
while (i < clen)
{
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
showNow();
//-->
</script>
</CENTER>
<a name="toc"> </a>
<b><font size="+3">Jad - the fast JAva Decompiler</font></B><hr>
<img src="images/jad.gif" align=right>
<ul>
<li type=circle><a href="#whatsnew">What's New</a>
<li type=circle><a href="#general">Jad main features</a>
<li type=circle><a href="#bugs">Known bugs and limitations</a>
<li type=circle><a href="#download">Download Jad</a>
<li type=circle><a href="#install">Installation</a>
<li type=circle><a href="#gui">Graphical UIs and utilities for Jad</a>
<li type=circle><a href="#faq">FAQ</a>
<li type=circle><a href="#email">E-mail for contacts</a>
<li type=circle><a href="#disclaimer">Disclaimer</a>
</ul>
<a name="whatsnew"> </a>
<H2><img src="images/greenball.gif"> What's New</H2>
<p>
<b>NOTE</B>: Jad is free for non-commercial use, but since the version 1.5.6
it's no longer free for commercial use. This means that Jad cannot be used in
other software products (especially decompilers) without my prior permission.
If you want to use Jad (as a command-line utility or as a library)
in your product(s) please contact <a href="mailto:kpdus@yahoo.com">me</a> for conditions.
<p>
Nov 23, 2001: the page moved to http://kpdus.tripod.com/jad.html.
<br>
Sep 15, 2001: updated <a href="#jadalign">jadAlign v1.01</a>.
<br>
Aug 05, 2001: updated Jad 1.5.8e for Linux and Windows.
<br>
Jul 19, 2001: updated <a href="#gui">FrontEnd Plus v1.04</a>.
<br>
Jul 15, 2001: added Jad for HP-UX 11.x.
<br>
Jul 15, 2001: updated <a href="#gui">FrontEnd Plus v1.03</a>.
<br>
Jul 13, 2001: added <a href="#jadalign">jadAlign</a> utility by Bernard Poulin.
<br>
Jul 12, 2001: updated <a href="#gui">FrontEnd Plus v1.02</a>.
<br>
Jul 7, 2001: released the bug-fix version 1.5.8e for Windows.
<br>
Jun 18, 2001: alternative download locations removed because providing them violates the Yahoo Geocities Terms of Service.
<br>
May 19, 2001: released the bug-fix version 1.5.8d.
<br>
May 12, 2001: provided alternative download locations since many people reported difficulties
with downloading Jad from Geocities (bogus authentication dialogs or "file not found" errors).
<br>
May 06, 2001: released the bug-fix version 1.5.8c. Added versions for Mac OS X, NetBSD 1.5.
<br>
Apr 29, 2001: released the bug-fix version 1.5.8b.
<br>
Apr 17, 2001: released the bug-fix version 1.5.8a.
<br>
Apr 14, 2001: released Jad 1.5.8 (JDK 1.3-compatible) for Windows, Linux (RH 7.0) and OS/2.
<br>
Feb 20, 2001: updated <a href="#gui">FrontEnd Plus v1.00</a>.
<br>
Nov 14, 2000: added Jad 1.5.7g for Linux (Sparc).
<br>
Oct 15, 2000: released the bug-fix version 1.5.7g.
Added <a href="#gui">FrontEnd Plus v0.08</a>.
<br>
July 7, 2000: updated <a href="#gui">FrontEnd Plus v0.07</a>.
<br>
July 6, 2000: added Jad 1.5.7f for BeOS 5.0.
<br>
July 4, 2000: added Jad 1.5.7f for FreeBSD 4.0 and OpenBSD 2.7. Updated the Linux versions of Jad.
<br>
June 29, 2000: released the bug-fix version 1.5.7f for Windows, Linux (RH 6.2), Solaris 8 (Intel), Solaris 7 (Sparc) and OS/2.
<br>
June 23, 2000: added Jad 1.5.7e for OS/2. Added <a href="#gui">FrontEnd Plus v0.06</a>.
<br>
June 19, 2000: released the bug-fix version 1.5.7e. Added one Q&A.
<br>
June 10, 2000: updated <a href="#gui">FrontEnd Plus v0.05</a>.
<br>
May 25, 2000: updated <a href="#gui">FrontEnd Plus v0.04</a>.
<br>
Apr 26, 2000: updated <a href="#gui">FrontEnd Pro v0.03</a>.
<br>
Mar 15, 2000: updated <a href="#gui">FrontEnd Plus v0.02</a>.
<br>
Mar 14, 2000: added <a href="#elisp">decompile.el</a>, an add-on to JDE for GNU Emacs.
<br>
Jan 18, 2000: released the bug-fix version 1.5.7d. Added one Q&A.
<br>
Jan 13, 2000: FrontEnd v1.02 was replaced with <a href="#gui">FrontEnd Plus v0.01</a>.
Added link to <a href="#links">FrontJad</a> - another GUI for Jad.
<br>
Jan 10, 2000: released the bug-fix version 1.5.7c.
<br>
Dec 29, 1999: updated version for Rhapsody 5.3 (fixed the "incorrect magic" error).
<br>
Dec 20, 1999: added version for Rhapsody 5.3 (Power Macintosh, compiled by gcc 2.7.2.1). Added two Q&As to the FAQ section.
<br>
Dec 13, 1999: added <a href="#gui">a third-party GUI interface</a> for Jad and <a href="#links">links</a> to other
Jad-based decompilers.
<br>
Dec 04, 1999: released the bug-fix version 1.5.7a. The version for Linux compiled on RedHat 6.1.
<p>
For the list of differences from previous versions click <a href="jaddif.html">here</a>.
<p>
<a name="general"></a>
<H2><img src="images/greenball.gif"> Jad main features </H2>
<p>
Jad is a Java decompiler, i.e. program that reads one or more
Java class files and converts them into Java source files which
can be compiled again.
<p>
Jad is a 100% pure C++ program and it generally works several times faster
than decompilers written in Java.
<br>
Jad doesn't use the Java runtime for its functioning,
therefore no special setup is required (like changes to the CLASSPATH variable).
<p>
Jad can be used:
<ul>
<li type=square> for recovering lost source codes;
<li type=square> for exploring the sources of Java runtime libraries;
<li type=square> as a Java disassembler;
<li type=square> as a Java source code cleaner and beautifier. <img src="images/smile.gif" alt="just kidding">
</ul>
<p>
Jad expects that supplied Java class files are valid ones, i.e.
they can pass the Java Virtual Machine (JVM) verification successfully.
<p>
The Jad main features:
<ul>
<li type=square> Enhanced readability of the generated source code.
<li type=square> Ability to comment Java source code with JVM
bytecodes. Useful for verification and educational purposes.
<li type=square> Full support for inner and anonymous classes.
<li type=square> Fast decompilation and simple setup.
<li type=square> Automatic conversion of identifiers garbled by Java
obfuscators into valid ones.
<li type=square> Free for non-commercial use. If you would like to
use Jad for commercial purposes, please contact me for conditions.
</ul>
<a name="bugs"> </a>
<H2><img src="images/greenball.gif">Known bugs and limitations</H2>
<p>
<ul>
<li type=circle>
In certain cases when decompiling classes which contain inner classes,
Jad cannot reliably sort out the extra arguments added to class
constructors by Java compiler. In those cases Jad can
generate constructors with an incorrect number of arguments or
can fail to declare some local variables as final.<br><br>
<li type=circle>
ZIP and JAR files are not supported.
However you can unzip those files and decompile the whole class tree.
Use the instructions from Readme.txt.<br><br>
<li type=circle>
In those rare cases when Jad is unable to fully decompile
constructs like labeled blocks with breaks
or nested loops with inter-loop break/continue statements it
generates the source with labels and goto statements which
reflects program's control flow and displays the message "Couldn't
fully decompile method <name>". Also when Jad couldn't reconstruct
all try-catch-finally statements it displays the message "Couldn't
resolve all exception handlers in method <name>".<br><br>
<li type=circle>
Currently Jad ignores the contents of the Line Number Table Attribute
and the Source File Attribute.<br><br>
<li type=circle>
Currently Jad makes no use of the Java class hierarchy information.
Consequently, Jad always chooses java.lang.Object as a common superclass of two
different classes and inserts auxiliary casts where necessary.<br><br>
<li type=circle>
Jad doesn't handle inlined functions well.
</ul>
<a name="download"> </a>
<H2><img src="images/greenball.gif"> Download Jad</H2>
<p>
Jad has a 'beta' status (see <a href="#disclaimer">Disclaimer</a>).
Please send bug reports with attached .class files to <a href="mailto:kpdus@yahoo.com">me</a>.
<p>To download Jad click on links below.
<br>These files are ZIP archives, save them with the extension .zip and verify file sizes after download.
<br>If you get the error "File not found", refresh the page.
<p>
<a href="jad/winnt/jadnt158.zip">Jad 1.5.8e for Windows 9x/NT/2000 on Intel platform</a>
(202541 bytes).
<br>
<a href="jad/hpux/jadhp158.zip">Jad 1.5.8e for HP-UX 11.x</a>
(293214 bytes).
<br>
<a href="jad/linux/jadlx158.zip">Jad 1.5.8e for Linux on Intel platform</a>
(214917 bytes).
<br>
<a href="jad/linux/jadls158.zip">Jad 1.5.8e for Linux (statically linked)</a>
(389972 bytes)
- take this version if the one above crashes or displays the "seek error" message.
<br>
<a href="jad/os2/jados158.zip">Jad 1.5.8d for OS/2</a>
(288717 bytes) -
OS/2 version was cross-compiled on Windows using EMX and RSXNT packages,
therefore it requires <a href="ftp://ftp.leo.org/pub/comp/os/os2/leo/gnu/emx+gcc/emxrt.zip">EMX runtime</a>
(EMX.DLL should be enough).
<br>
<a href="jad/freebsd/jadfb158.zip">Jad 1.5.8c for FreeBSD 4.0</a>
(322311 bytes) - statically linked.
<br>
<a href="jad/openbsd/jadob158.zip">Jad 1.5.8c for OpenBSD 2.7</a>
(334499 bytes) - statically linked.
<br>
<a href="jad/netbsd/jadnb158.zip">Jad 1.5.8c for NetBSD 1.5</a>
(324440 bytes) - statically linked.
<br>
<a href="jad/solaris/jadsx8158.zip">Jad 1.5.8c for Solaris 8 on Intel platform</a>
(264751 bytes).
<br>
<a href="jad/macosx/jadap158.zip">Jad 1.5.8c for Mac OS X (Darwin 1.3) on PowerPC platform</a>
(266264 bytes).
<br>
<a href="jad/linuxsparc/jadsp157.zip">Jad 1.5.7g for Linux on Sun Sparc platform</a>
(180606 bytes).
Many thanks to Mr. J. Harding who offered an user account on his Sparc computer.
<br>
<a href="jad/linuxsparc/jadss157.zip">Jad 1.5.7g for Linux on Sun Sparc platform</a>
(346221 bytes) - statically linked.
<br>
<a href="jad/solaris/jadsl157.zip">Jad 1.5.7f for Solaris 7 on Sun Sparc platform</a>
(318096 bytes) - compiled
on Sun 4m (Sparc10) using GCC 2.8.1, statically linked. Works on Solaris 2.6 as well.
Many thanks to Mr. R. Volpe, NY who provided an user account on his Sparc computer.
<br>
<a href="jad/beos/jadbe157.zip">Jad 1.5.7f for BeOS 5.0 on Intel platform</a>
(245422 bytes) - statically linked.
<br>
<a href="jad/macosx/jadap157.zip">Jad 1.5.7b for Mac OS X (Rhapsody 5.3) on PowerPC platform</a>
(372317 bytes).
<br>
<a href="jad/solaris/jadsx157.zip">Jad 1.5.7a for Solaris 7 on Intel platform</a>
(252582 bytes) - try the version for Solaris 8 instead.
<br>
<a href="jad/aix/jadax155.zip">Jad 1.5.5.3 for AIX 4.2 on IBM RS/6000 platform</a>
(360970 bytes).
<p>
<a name="install"> </a>
<H2><img src="images/greenball.gif"> Installation</H2>
<p>
Unzip jad.zip file into any appropriate directory on your hard drive.
<br>
This will create two files:
<p>
- an executable file named 'jad.exe' (Windows 9x/NT/2000) or 'jad' (UNIX)
<p>
- README file 'Readme.txt', which contains the short user's manual
<p>
For UNIX users: make 'jad' executable: <i>chmod a+x jad</i>
<p>
No further setup is required.
<a name="gui"> </a>
<H2><img src="images/greenball.gif"> Graphical UIs and utilities for Jad</H2>
<p>
<i>FrontEnd Plus</i> is a graphical decompiler for Windows 9x/NT
that uses the command-line version of Jad as its decompiling engine.
<i>FrontEnd Plus</i> is written and supported by
Martin Cowley (<a href="mailto:reflectonus@blueyonder.co.uk">reflectonus@blueyonder.co.uk</a>).
<p>
Click <a href="frontend/FrontEnd.zip">here</a> to download the latest version of <i>FrontEnd Plus</i> (v.1.04).
The size of the zip archive is 784820 bytes.
<p><a name="links"></a>
Graphical decompilers that use Jad as their decompiling engine:
<br><br>
FrontEnd Plus - <a href="http://www.reflectonus.pwp.blueyonder.co.uk/download.htm">http://www.reflectonus.pwp.blueyonder.co.uk/download.htm</a>
<br><br>
NMI's Java Code Viewer - <a href="http://njcv.htmlplanet.com">http://njcv.htmlplanet.com</a>
<br><br>
Decafe Pro - <a href="http://decafe.hypermart.net">http://decafe.hypermart.net</a>
<br><br>
mDeJava - <a href="http://molesoftware.hypermart.net">http://molesoftware.hypermart.net</a>
<br><br>
FrontJad - <a href="http://www.ire.pw.edu.pl/~mszklan/frontjad.htm">http://www.ire.pw.edu.pl/~mszklan/frontjad.htm</a>
<br><br>
DJ Java Decompiler - <a href="http://members.fortunecity.com/neshkov/dj.html">http://members.fortunecity.com/neshkov/dj.html</a>
<br><br>
Cavaj Java Decompiler - <a href="http://sureshot.virtualave.net/cavaj">http://sureshot.virtualave.net/cavaj</a>
<br><br>
JavaDecompiler - <a href="http://iago-soft.iespana.es/iago-soft/jdecompiler/jdecompiler.htm">http://iago-soft.iespana.es/iago-soft/jdecompiler/jdecompiler.htm</a> (in Spanish)
<br><br>
JadClipse, Jad plugin for Eclipse IDE - <a href="http://sourceforge.net/projects/jadclipse">http://sourceforge.net/projects/jadclipse</a>
<p><a name="elisp"></a>
<a href="jad/emacs/decompile.zip">decompile.zip</a>
- an add-on to the Java Development Environment (JDE) for GNU Emacs.
It automatically decompiles a class file and offers you a buffer to view or edit it.
The add-on is written and maintained by Ingo Koch (<a href="mailto:ingo.koch@ikoch.de">ingo.koch@ikoch.de</a>).
<br><br>
VajDecompiler - <a href="http://www.ibldesign.com/lorin/VAJDecompiler.shtml">http://www.ibldesign.com/lorin/VAJDecompiler.shtml</a> - Jad frontend for VisualAge for Java
<br><br>
<a href="jad/emacs/decomp.zip">decomp.zip</a> - yet another LISP code for Emacs that runs Jad on the current buffer. Contributed by R. Mecklenburg.
<br><br>
<a name="jadalign"></a>
<a href="jad/jadalign/jadAlign.zip">jadAlign</a> v1.01 is an utility created by Bernard Poulin (<a href="mailto:bernard@acm.org">bernard@acm.org</a>) that re-alignes Java source files produced by Jad.
The resulting file can then be used for source-level debugging (i.e. stepping in the code).
The size of the archive is 20942 bytes.
<br><br>
<a href="http://www.softamis.com/ie/ot/jad/highlight.html">JADClassFileNode</a> - an open tool by A. Sazonov that replaces the built-in decompiler in JBuilder.
<p>
<a name="faq"> </a>
<H2><img src="images/greenball.gif"> FAQ</H2>
<p>
<b>Q1</B>: Is the source code of Jad available?
<p>
<b>A1</B>: Currently I have no plans to release the Jad source code for any purposes including
porting to other computer platforms.
<p>
<b>Q2</B>: What is the option <i>-dead</i> for?
<p>
<b>A2</B>: This option forces Jad to decompile the dead portions of bytecode.
For example, non-optimizing compilation of the following code can produce the dead bytecode:
<pre>
if (false)
{
...
}
</pre>
This option should be on by default,
but the incorrect dead bytecode can crash Jad.
<p>
<b>Q3</B>: Why does Jad fail to generate the <i><b>throws</B></i> clause in
the method declarations like the one in
<pre>
<i>int divide(int a, int b) <b>throws DivideByZero</B> { ... }</i> ?
</pre>
<p>
<b>A3</B>: This <i><b>throws</B></i> clause is represented
in the Java class files by the <i>Exceptions</i>
attribute. The Java Virtual Machine itself doesn't use these attributes (well, at least,
the common implementations of JVM), so they can be stripped out of the Java class files.
Jad has no way of restoring this information in full if it's missing from
the class file.
<p>
<b>Q4</B>: Why does Jad generate weird-looking
static fields like <i>class$java$lang$Float</i> and static methods <i>class$(String)</i>?
<p>
<b>A4</B>: These fields/methods are the internal representation of the
<i><classname>.class</i> expression and automatically generated by compiler.
For example, <i>java.lang.Thread.class</i> is translated into the following:
<pre>
...
((class$java$lang$Thread == null) ?
(class$java$lang$Thread = class$("java.lang.Thread")) :
class$java$lang$Thread);
...
static Class class$(String s)
{
try
{
return Class.forName(s);
}
catch(ClassNotFoundException ex)
{
throw new NoClassDefFoundError(ex.getMessage());
}
}
static Class class$java$lang$Thread;
</pre>
This is fixed in 1.5.8. The explanation for the previous versions:
Jad doesn't convert all that back to the original expression, but
apparently the Sun JDK 1.2 compiler is able to compile "the long format" successfully.
JDK 1.3 compiler doesn't accept names containing class$, so in order to recompile the decomplied class
you need to change all expressions similar to the conditional expression above to <i><classname>.class</i> and
remove static methods/fields whose names start with class$.
<p>
<b>Q5</B>: Jad refuses to decompile my class file saying "Class file version mismatch".
What can I do?
<p>
<b>A5</B>: Use -debug option. Jad then complains about the version mismatch, but
attempts to decompile the file anyway. Note that this works starting
from the version 1.5.6e.
<p>
<b>Q6</B>: Jad fails to decompile my class file, it spits out a bunch of gotos and JVM instructions.
Why is that?
<p>
<b>A6</B>: There could be several possible reasons: the class file has been obfuscated
or it was produced by non-JDK Java compiler or some functions were inlined by Java compiler.
Generally Jad works best with class files generated by Sun Java compilers.
If you encounter such a behaviour, please send <a href="mailto:kpdus@yahoo.com">me</a>
a bug report <b>with attached .class files</B>.
<p>
<b>Q7</B>: How to decompile jar or zip archive with classes?
<p>
<b>A7</B>: "Unjar" (jar xvf <jarfile>) or unzip (using unzip or WinZip)
the archive into a directory on your hard drive. Then see the next answer.
<p>
<b>Q8</B>: How to decompile the whole class tree?
<p>
<b>A8</B>: Run
<pre>
jad -r [-d<directory_for_sources>] [<other_options>] <directory_with_classes>**/*.class
</pre>
On Unix the last argument should be in single quotes. For more information please read Readme.txt.
<p>
<b>Q9</B>: Why do I get "Class <<ambiguous>>List not found" from the compiler?
<p>
<b>A9</B>: There are two List classes: java.awt.List and java.util.List.
If Jad generates two import directives:
<pre>
import java.awt.*;
import java.util.*;
</pre>
and your class actually uses the List class, the compiler will complain.
Prior version 1.5.7d use the command-line option -pi to prevent Jad from
combining the import directives.
<p>
<b>Q10</B>: How to make the command-line options <i>-ff -nonlb -space -t</i> to be on by default?
<p>
<b>A10</B>:
Use the environment variable JAD_OPTIONS to permanently override the default settings.
The example for Windows:
<pre>
set JAD_OPTIONS=-ff+ -nonlb+ -t+ -space+
</pre>
<p>
<b>Q11</B>: How to extract Java classes from an executable file (.exe)?
<p>
<b>A11</B>:
Use the Java-Split utility written by the Decafe Pro team.
Download it from <a href="http://decafe.hypermart.net/javasplit.htm">http://decafe.hypermart.net/javasplit.htm</a>.
<br>
Or use J++Extract from <a href="http://www.multimania.com/dolmen/productions">http://www.multimania.com/dolmen/productions</a>.
<p>
<b>Q12</B>: What does the error message "JavaClassFileParseException: Invalid tag value 0x0" mean exactly?
<p>
<b>A12</B>:
It means that your file is not a valid Java class and Jad was unable to parse it successfully.
Either the file was broken (for example, during download) or the package this class belongs to
contains a custom Java class loader that modifies (or decrypts) Java classes after
reading them into the memory. In both cases Jad cannot decompile this file as it is.
<p>
<a name="email"> </a>
<H2><img src="images/greenball.gif"> E-mail for contacts</H2>
<p>
If you have any questions, bug reports or comments regarding <i>Jad</i>,
please send e-mail to <a href="mailto:kpdus@yahoo.com">kpdus@yahoo.com</a>.
<a name="disclaimer"> </a>
<H2><img src="images/greenball.gif"> Disclaimer</H2>
<p>
Copyright 1997-2001 Pavel Kouznetsov. All rights reserved.
<br><br>
THIS SOFTWARE IS PROVIDED
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
<br><br>
THE SOFTWARE IS NOT DESIGNED OR INTENDED FOR USE IN ON-LINE CONTROL
OF AIRCRAFT, AIR TRAFFIC, AIRCRAFT NAVIGATION OR AIRCRAFT
COMMUNICATIONS; OR IN THE DESIGN, CONSTRUCTION, OPERATION OR
MAINTENANCE OF ANY NUCLEAR FACILITY. THE AUTHOR DISCLAIMS ANY EXPRESS OR
IMPLIED WARRANTY OF FITNESS FOR SUCH USES. YOU MUST REPRESENT AND
WARRANT THAT YOU WILL NOT USE THE SOFTWARE FOR SUCH PURPOSES.
<hr align=left size=3>
This page has been visited many times since December, 1997
<br>
<script language="JavaScript">
<!--
document.write("<font size=-1>Last modified on " + document.lastModified + "</font>");
// -->
</script>
<br>
</BODY>
</HTML>
|