How to convert class files into java files??
Hey Guys,
I need a little help.
I want to know wheather we can view .class files as .java files or convert the .class to .java files.Is ther any tool or software for doing that.
Or in other words can i see the source code of any .class file..??
Plz do tell me if we can do that or any other way we can do that.
Regds,
Gokul
Sort of. A "decompiler" will take a class file and generate a source code file of source code that could be compiled to get the class file you started out with. However, it won't be the same source code that was originally used to create the class. Most notably, comments will be missing, and variable names will probably be meaningless.
And before you say "java is bad because you can decompile it", note that any language that you can execute you can theoretically decompile.
Also, you can view the raw byte codes. If you're familiar with assembly language, or better yet familar with java bytecodes and the JVM in particular, you can often find out what a particular method does just by viewing the byte codes.
Similar Messages
-
How to convert a .class file into .java file without .jad using DeJDecompil
Hi all,
I am using DeJDecompiler and working with swing applications.If I try to convert a .class file into .java file,it is converting into .jad file only.Fine but if I try to save that file into .java file,It is giving lot of errors in that program.When I went into that program the total style of the program is changed and TRY-CATCH block is not recognised by the dejdecompiler,hence If I try to include some methods in the existing .java file thus got,I could not do.Kindly help me.
If I get the .java file without error then I can process the rest of the functionality.
Thanks in advance
With kind Regs
Satheesh.KNot so urgent today then!
http://forum.java.sun.com/thread.jsp?thread=553576&forum=31&message=2709757
I'm still not going to help you to steal someone�s code. -
How to decompile a .class file into .java file using DEJDecompiler?
Hi all,
I am using DeJDecompiler and working with swing applications.If I try to convert a .class file into .java file,it is converting into .jad file only.Fine but if I try to save that file into .java file,It is giving lot of errors in that program.When I went into that program the total style of the program is changed and TRY-CATCH block is not recognised by the dejdecompiler,hence If I try to include some methods in the existing .java file thus got,I could not do.Kindly help me.
If I get the .java file without error then I can process the rest of the functionality.
Thanks in advance
With kind Regs
Satheesh.KNot so urgent today then!
http://forum.java.sun.com/thread.jsp?thread=553576&forum=31&message=2709757
I'm still not going to help you to steal someone�s code. -
Decoding .class file into .java file
How can i decode .class file into .java file?
can any one suggest the same?sekhar145 wrote:
How can i decode .class file into .java file?by using a decompiler
JAD is a known one , i am sure there are other on the internet, use you favourite search engine on Java Decompiler
can any one suggest the same?by using a decompiler
JAD is a known one , i am sure there are other on the internet, use you favourite search engine on Java Decompiler -
How to convert database table into xml file
Hi.
How to convert database table into XML file in Oracle HTML DB.
Please let me know.
Thanks.This not really a specific APEX question... but I search the database forum and found this thread which I think will help
Exporting Oracle table to XML
If it does not I suggest looking at the database forum or have a look at this document on using the XML toolkit
http://download-east.oracle.com/docs/html/B12146_01/c_xml.htm
Hope this helps
Chris -
We have a matisse compiler which reads the *.xml files and converts this into *.java files. Do we have a plugin
for this compiler which can by used with MyEclipse or Eclipse.Does anybody know how to convert x.class file back to a x.java file.As Dr.Clap said, that's decompiling.
Or in other terms, extract .java files from a jarfile??That isn't quite the same thing. You can decompile a .class that's in a jar, but a .class file doesn't have to be in a jar and a file in a jar isn't necessarily a .class. -
How to convert alv list into excel file?
Hi Experts,
i have created one report for Due Date Analysis.
Now My output is displaying in ALV list. But I need to convert the data which in alv list into Excel File. then only i have to send the Excel File to the Customer Thro Email.
So i need the Function Module to Convert the Data into Excel File.
Thanks,
Neptune.MHi,
U can use function module gui_download.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = 'C:\Transportaionlane.XLS'
filetype = 'DAT'
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TABLES
ata_tab = t_trans_lane_dis[]
OTHERS = 22
if u want with header then pass the header.
regards
Ahasan -
Convert .class files into .java files???
Does anybody know how to convert x.class file back to a x.java file. Or in other terms, extract .java files from a jarfile??
Thanks for any help
/carlosDoes anybody know how to convert x.class file back to a x.java file.As Dr.Clap said, that's decompiling.
Or in other terms, extract .java files from a jarfile??That isn't quite the same thing. You can decompile a .class that's in a jar, but a .class file doesn't have to be in a jar and a file in a jar isn't necessarily a .class. -
How to convert jpeg images into video file of any ext using JMF
I want to convert the Jpeg files into video clip with the help of JMF
any one can help me?
Plz reply me at [email protected]
or [email protected]I'm not sure of his/her reasoning behind this, but I have yet to find a way to record video with mmapi on j2me. So with that restriction, I can see how one could make it so that it just records a lot of jpegs, and then makes it a movie.
I would be interested finding a workaround for this too. Either if someone would explain how to record video with mmapi or how to make recorded images into a video. Thanks! -
How to convert Vb code into java?
Hi,
I want to know how to make conversion a visual basic source code into java. The conversion could be (1:1) scale.
Is there any compilers making the live easier (solving this problem) ?
Thank you all.
Abu_ramlaUse the JNI. VB doesent actually do anything on its own. Its just a series of calls on COM objects to performs all its work. You can call these same COM objects using the Java Native Interface or JNI. You wont have access to things designed in VB though like forms, you will have to redesign those.
This will take extensive knowledge of COM, VB, Java, and JNI. It will take you about 1 year to get up to speed. I would say to not do this. -
How to convert iTunes songs into MIDI files?
I want to copy an iTunes song and convert the copied song into a MIDI file. How do I do this?
Can't be done...
A MIDI file is a set of instuctions for making music. Play this note, then, for that long, on this particular instrument, with these settings. Multiplied by as many notes and instruments as are required. A MIDI file can be turned into music automatically. Turning music into the instructions to make it is, as far as I am aware, beyond the capabilities of current software.
tt2 -
How to convert number pairs into .grd file(w/o typing them all in)
I want to be able to take a set of numbers (like coords from some shape), and use them to create a gradient file.
Example, I start w/file of:
x=0 , y=0
x=1 , y=4
x=2 , y=10
x=3 , y=18
x=4 , y=22
...50 lines elided...
x=75 , y=97
x=80 , y=98
x=84 , y=99
x=94 , y=100
where I would use the x as the x coord(duh), and 'y' as the 'height' of transparency
(or a brightness value that I'd combine with some desired color value to get an RGB value).
But in this simple case,
assume a a simple foregnd->backgrnd color (or any 2 color gradient @ 0 & 100), with only the transparency value needing
all the numbers ...)
(would be nice if I could just input a forumula...but.....) barring that.. trying to figure out the .GRD
file format is proving to be a bit of a pain.
I notice lots of map-marker points like FE' (ala SVG FE function, ) values, references to doubles, etc...
but spending a bunch of time figuring out the file format seems like such a bother if it's already been done...
any scripts or tools to allow such conversions or am I stuck writing my own perl script...
(breaking it down w/vim wasn't too difficult subbing in <0> or <0000> for quads, etc...
going from that could see where numbers were wanted and convert those
to hex, <xx>; At some point, given the 'FE' function I suspect I'll have to look up how floating point
is stored ... sigh.
See what I mean by a pain to write a script?)
Ideas/pointers?Odd, there was a response here by me, w/no content. I don't remember posting 'nothing', rather than just delete it, I thought I'd try to remember what I wrote at the time and see if it stays in the system this time.
Chris Cox wrote:
The gradient preset files are a sort of key/value pair system, but not really like XML (and are a heck of a lot faster to read and write than XML).
The file format is documented in the SDK, and has been for many years.
It's just a complex enough format that even most developers don't want to mess with it.
Yes-- could see the key value pairs in the work I did. that's were I found reference to a key with "FE"" in it and thought it was related to the SVG function of the same name - as it is the gradient function in SVG, but you said above, that the FE key word in the binaries files had nothing to do with the gradient function that is in SVG by the same name (somehow I don't think you read what I was writing but sorta skimmed it. My writing tends to alot more information in it than it appears (coincidentally, my posts tend to be longer than the average post), so it may not be that it contains more information than it _appears_, just more than the average post...and, as some may believe (not saying on the forum, but have encountered this on others)
What is often true in writing about any topic is that, it is increasingly difficult to make my writing more concise while retaining precision -- especially if you are trying to be *clear*. Too often, I find, that when I toss off quick notes, I'll lots of dumb looks <*huh?*? or responses (not responding to what I said) and I'll spend as much (usually more) clarifying or correcting misunderstandings, OR verifying that they were responding to or answering was to something I actually 'said', rather than what it appeared (to me) that they were responding to.
As for the bit about developers touching old code...that's common in almost every project...no one wants to touch something that is currently working, as even though they may be adding improvements or fixing a problem, it is certain they will change the code in a way that it doesn't behave precise as it did before (by definition, else why make changes?), and as a result, they may get complaints from some people who were using that code in some completely unexpected way which now breaks in the new code (even though the documented behavior may be unchanged).
This is a major problem, since I have NEVER scene documentation that explains all the inter-relations and behaviors of a program, yet often, it is *expected* that people will use those undocumented interrelations to do anything other than the most basic functions. Note -- by undocumented, I also include things that may be discerned via induction on the various pieces but are not explicitly spelled out (thus open to 'reinterpretation' at some later point...).
It seems, almost inherently, that they thorough documentation of code would be NOT just the code, but also design documents and notes -- which would not happen in almost any project (maybe a government funded security program), but would also be impractical as a an easy to use reference (I.e. that would need to be written as well). As it is, some programs simply come with installation instructions and/or installation support.
Anyway, hopefully, this answer will get posted and stay (don't know what happened to previous)...(failure in submission or bit-rot).
Astara -
How to convert a string into xml file
Hi,
i have a string . the string contain fully formated xml data. i mean my string like below
<?xml version="1.0"?>
<PARTS>
<TITLE>Computer Parts</TITLE>
<PART>
<ITEM>Motherboard</ITEM>
<MANUFACTURER>ASUS</MANUFACTURER>
<MODEL>P3B-F</MODEL>
<COST> 123.00</COST>
</PART>
<PART>
......................i want to convert it into an xml file
can u help me?
thank uThank you Paul Clapham,
and sorry ..
i have some other doubt.. regarding xml
i want to post an XML file from one server(Server_1) to other server.(Server_2)
To generate an xml file i used DOM in Server_1.
using xml.transform , StringWriter i converted it into String.
I post the string to another server and there i will parse it.
for that i write the code like below in servlet in server_1
<form name=fn action=http://localhost:8080/server_2/parseXMl.do method=post>
<input type=hidden name=xmlFile value="+Xmlstring+">
<input type=submit >is this process is correct?
Some of the turorial told that use web-services/XML-RPC
but i new to both..
I want to complete it using my knowledge only/
Is it possible to do it?
Or any other alternative?
can help me? -
How to convert Oracle Data into Java Date
Hi there,
in JDev 3.2 oracle.jbo.domain.Date was derived from oracle.sql.DATE, which has a timestampValue() method to get a java.sql.Timestamp.
In Jdev 9.0.3 Date is not!! derived from oracle.sql.DATE, so my previous implementation fails.
So, How can I get a java.util.Date from oracle.jbo.Date?
( I think this is a bug !?)Hi Dietmar,
this is documented in the help; see Reference - Business Components Oracle Domains; then choose 'Date'
using the dateValue() method on the oracle.jdo.domain.Date gives you a java.sql.Date which is a (subclass of) java.util.Date.
Cheers, Hans -
How to decode java class file to java file
hi
how to decode java class file into java file
regards
kedarIts really.......... really BAD.
Write ur own code... or use open source code..
Its a bad practice...
however i am telling u ..there is DJ java decompiler.
but mind it there are Obfuscator also....like codeshield and others
take care...
Alok
Maybe you are looking for
-
being new to the Mac G5, can someone help me to convert analog VHS videotape to DVD's?
-
Im tying to unlock an Iphone 4. the celular company make it by its system, and send me an E mail with the instructions to finsh the process by myself, throug itunes. I did every step, and at the end appers a message telling that my Iphone is unlocked
-
My ipod touch 4G is having several problems, how could that be ?
Look guys, my ipod touch 4G's seems to be a lot weaker than its friends. There were a lot of lags even after restoring (I haven't jailbroken it yet). And even a lot of wierd problems. Here's a list of where these problems took place : Lagging after s
-
G5 dual 1,8Ghz WONT BOOT
When trying to boot, system chimes, screen lights, Apple symbol appears, then crash. System will not boot from CD. In Single Mode, applejack cant fix disk errors. Tried fsck with no luck. Replaced battery (system is 7 years old). Disconnected all ext
-
I have 11 computers all pc's linked to an old windows server and all used primarily for microsoft office and printer sharing as well as for internet browsing. Can an apple joining the setup cause compatability issues?