Solved

jEE : how to covert CLASS file to JAVA file

Posted on 2013-01-09
8
353 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 16

Accepted Solution

by:
krakatoa earned 40 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
 
LVL 12

Assisted Solution

by:Sharon Seth
Sharon Seth earned 80 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

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 80 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 80 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 80 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars challenge 6 64
strCopies  challenge 17 73
Understanding websocket example in spring 1 42
mapShare challenge 13 68
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now