473,385 Members | 1,780 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

class file decompilation.

dmjpro
2,476 2GB
Few days ago I tried to decompile a class file which generates some JVM instructions. It is not generating the original code. Actually i got that class file from a jar file. Now my question is that what causes that happen.
I mean what is way of building a class file so that after decompilation the original code doesn't get generated.
And what is way to get the original code of dis such situation.
Jul 16 '08 #1
3 1394
r035198x
13,262 8TB
Google for "Obfuscation".
Jul 16 '08 #2
JosAH
11,448 Expert 8TB
Few days ago I tried to decompile a class file which generates some JVM instructions. It is not generating the original code. Actually i got that class file from a jar file. Now my question is that what causes that happen.
I mean what is way of building a class file so that after decompilation the original code doesn't get generated.
And what is way to get the original code of dis such situation.
It doesn't matter where the class came from, i.e. it can be a file or it can be an
entry in a .jar file or whatever. If you have used javap: it can't decompile anything
to its original code, it can only disassemble the generated byte code (machine
code). The process of compiling something from source code to byte code is
not a bijective operation so almost never the original source code comes up after
decompilation. If you want the source file to be more or less unreadable check
the previous reply and use obfuscation.

kind regards,

Jos
Jul 16 '08 #3
dmjpro
2,476 2GB
It doesn't matter where the class came from, i.e. it can be a file or it can be an
entry in a .jar file or whatever. If you have used javap: it can't decompile anything
to its original code, it can only disassemble the generated byte code (machine
code). The process of compiling something from source code to byte code is
not a bijective operation so almost never the original source code comes up after
decompilation. If you want the source file to be more or less unreadable check
the previous reply and use obfuscation.

kind regards,

Jos
Thanks Josh!
It proved very useful to me.
No no I used first cavaj then i used jad in both case i got same result.
Jul 16 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Fu Bo Xia | last post by:
the java.lang.Object.forName method takes a java class name and returns a Class object associated with that class. eg. Class myClass = Object.forName("java.lang.String"); by if i only know the...
2
by: Pierre Rouleau | last post by:
Greetings, I'm wondering why the >> operator does not use the write() method of a class derived from the built-in file class as in DerivedFile below. In the following example: - StringFile...
14
by: Mick | last post by:
I wrote a C# program that interfaces with a data vendor over the web using an API they supplied and their examples in C#. Now I have another data vendor's API and example that I want to add to...
16
by: pawel.pabich | last post by:
Hajo, I would like to have 2 my own partial classes. For example: Default.aspx.cs Default2.aspx.cs and they both will relate to Default.aspx page.
0
by: Daniel Sélen Secches | last post by:
I found a good class to do a simple FTP. Very good.... I'm posting it with the message, i hope it helps someone ============================================================== Imports...
7
by: tshad | last post by:
I have a problem with a VS 2003 project. This project was designed and works fine in VS 2003. But trying to open the project I get the following error....
66
by: QuantumG | last post by:
Decompilation is the process of recovering human readable source code from a program executable. Many decompilers exist for Java and .NET as the program executables (class files) maintain much of...
14
by: MsNews | last post by:
Hi, I'm creating a free Icon library in C# with source code include, it already support .ico/.dll../exe and I'd like to support .ICL format too, I need to load a file .ICL (Icon Library) that...
6
by: Chris | last post by:
Are there any performance/general issues with putting classes in the .vb files in the app_code folder rather than compiling them into assemblies
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.