Solved

jEE : how to covert CLASS file to JAVA file

Posted on 2013-01-09
8
361 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
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
 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jsp login check 12 54
eclipse console opening separately 2 39
Problem to Alipay 10 73
restrict decimal places for double datatype 10 34
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

696 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