?
Solved

jEE : how to covert CLASS file to JAVA file

Posted on 2013-01-09
8
Medium Priority
?
372 Views
Last Modified: 2013-01-25
your assistanc required.


please advice how to convert CLASSS into to JAVA file.
0
Comment
Question by:mac_g
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 16

Expert Comment

by:Valeri
ID: 38758095
0
 
LVL 17

Accepted Solution

by:
krakatoa earned 120 total points
ID: 38758119
0
 

Author Comment

by:mac_g
ID: 38758317
i did .
simple class file HelloWorld.class is seems to be OK.

my multiline programe giving the below error mesage
---

D:\tempshare\visio>jad HrwsBase.class
Parsing HrwsBase.class... Generating HrwsBase.jad
Couldn't fully decompile method _mthclass$
Couldn't resolve all exception handlers in method _mthclass$

D:\tempshare\visio>
-----------

please advice how to procede further
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Assisted Solution

by:Sharon Seth
Sharon Seth earned 240 total points
ID: 38758356
What kind of class is it ?
Pls note that decompling does not convert the CLASS into a JAVA file 100% . There are several places where assumptions are made by the decompiler.
Also , I had used DJ java decompiler . You can give it a try too
0
 

Author Comment

by:mac_g
ID: 38758447
this class file developed in  JAVA-1.4 release .

are theere any decompilers specific to version ?

As you said, I have tried  with DJ java decompiler, some of the charectors i am getting are ,$, _...etc.

please advice, is there any paid tools which can do this work.

If you are interested, i can attach the class file which i am trying for your test.

Thanks for your efforts.
0
 
LVL 16

Assisted Solution

by:Valeri
Valeri earned 240 total points
ID: 38758763
Hi mac_g,

The decompiler I recommended you is not so good. I wanted to recommed you the one that "krakatoa" did!
Ok, please attach you .class file.
0
 
LVL 16

Assisted Solution

by:Valeri
Valeri earned 240 total points
ID: 38758791
btw decompliler is not able to revert to the original .java file! there are a lot of assumptions, because when the .java file is compiled the compiler makes a lot of "improvements" as well.
0
 
LVL 12

Assisted Solution

by:Sharon Seth
Sharon Seth earned 240 total points
ID: 38762009
Any kind of decompiler would end up showing $ , _ etc . The reason is that the CLASS file which itself would have had many modifications/substitutions during compilation
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question