Solved

jEE : how to covert CLASS file to JAVA file

Posted on 2013-01-09
8
357 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Checkbox and ListView in Android Layout 4 65
Where to store the queries for modification of table 4 61
custom annotations 9 38
expectj telnet failing 5 35
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

808 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