Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

jad error decompiling 1.5 code

Thread view: 
grasp06110@yahoo.com - 09 Dec 2006 00:12 GMT
Happy Friday Everybody!

/* * * a little background * * */
I am trying to decompile some legacy code I have inherited.  Only the
.class files are in production.  I have (most of) the source but there
is some confusion of exactly what versions of various copies of the
source are in production.  The .class files in production have been
modified as recently as today using Java 1.5 and go back several years
and Java 1.3.  I would like to decompile the production source,
recompile it and then compare the .class files from that little
exercise to the .class files generated from the source under the same
conditions.

/* * * the problem * * */
When I try to decompile the production source files I get errors
similar to the following:

Parsing classes/com\myCompany\automation/MyClass.class...The class file
version
is 49.0 (only 45.3, 46.0 and 47.0 are supported)

Does anyone know what might be causing this?

Does Jad (or Jode or any other decompiler) support Java 1.5?

Any help would be greatly appreciated.

Thanks,
John
grasp06110@yahoo.com - 09 Dec 2006 00:19 GMT
Sorry,

I forgot to mention, I'm using Jad version 1.5.8 (I'm not sure what
letter, I'll try the latest and see if that helps).  

Thanks,
John
Chris Uppal - 09 Dec 2006 13:02 GMT
> I forgot to mention, I'm using Jad version 1.5.8 (I'm not sure what
> letter, I'll try the latest and see if that helps).

It should.  Version 1.5.8f (which I use) has no special trouble with
1.5-compiled files (it doesn't always succeed in producing valid Java, of
course, but it is happy to make the attempt).  Apparently the latest version is
1.5.8g, but I haven't tried that yet.

   -- chris
Aleksander Zawitkowski - 29 Dec 2006 16:15 GMT
I confirm this:
The first version of Jad to decompile Java 1.5 code is 1.5.8f. Jad
1.5.8e doesn't.

Unfortunately, the latest binaries available for Linux are 1.5.8e, but I
did successfully run 1.5.8f Windows binaries with Wine 0.9.21. I just
had to run dos2unix command on generated files afterwards.

Alex.
Signature

http://olek.sdf-eu.org/devel/java/

>> I forgot to mention, I'm using Jad version 1.5.8 (I'm not sure what
>> letter, I'll try the latest and see if that helps).
[quoted text clipped - 5 lines]
>
>     -- chris
Daniel Dyer - 09 Dec 2006 00:21 GMT
> Happy Friday Everybody!
>
[quoted text clipped - 20 lines]
>
> Does Jad (or Jode or any other decompiler) support Java 1.5?

Class file format 49.0 is Java 5.0.  Looks like JAD doesn't support  
anything after 1.4.

Dan.

Signature

Daniel Dyer
http://www.uncommons.org



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.