How to Convert a Class File to a Ja
What is a programming language?
Before introducing compilation and decompilation, let’s briefly introduce the Programming Language. Programming languages are divided into low-level languages and high-level languages.
Machine language and assembly language are low-level languages, and programs are written directly with computer instructions.
C, C ++, Java, and Python are high-level languages. Programs are written in statements, which are abstract representations of computer instructions.
What is compilation?
There are two languages mentioned above, a low-level language and a high-level language. Simple understanding: low-level languages are languages recognized by computers, and high-level languages are languages recognized by programmers.
So how do you switch from a high-level language to a low-level language? This process is actually compiling.
The process of translating source code programs written in high-level computer languages that are easy to write, read, and maintain into low-level machine language programs that can be interpreted and run by computers is compilation. The tool responsible for this process is called a compiler
Now we know what a compiler is and what a compiler is. Different languages have their own compilers. The compiler responsible for compiling in Java is a command: javac
After we write a HelloWorld.java file, we can use the javac HelloWorld.java command to generate a HelloWorld.class file. This class file is a file recognized by the JVM. Usually we think of this process as the compilation of the Java language. In fact, the class file is still not a language that the machine can recognize, because the machine can only recognize the machine language, and the JVM needs to convert this class file type bytecode into a machine language that the machine can recognize.
javac is a Java language compiler included in the JDK. The tool can compile source files with the extension .java into bytecodes with the extension .class that can run in the Java virtual machine.
What is decompilation?
The process of decompiling is just the opposite of compiling, that is, restoring the compiled programming language to an uncompiled state, that is, finding the source code of the programming language. Is to translate the language that the machine understands into a language that the programmer can understand. Decompilation in the Java language generally refers to .
With decompilation tools, we can do many things. The main function is that with decompilation tools, we can understand the bytecode generated by the Java compiler. For example, we can gain insight into the principles behind Java’s syntactic sugar.
Java commonly used decompilation tools
This article mainly introduces 4 Java decompilation tools: javap, jad and cfr, and visual decompilation tool JD-GUI.Or you can use online tool wesite - .
What is Java Decompiler Online?
is an online tool for decompiling class files to java source files which supports .class, .jar, .zip and other file formats. It’s the best online tool to decompile java code quickly and intelligently.
3 Steps to Decompiler Java Class File
Step 1: Choose Java Class File
Drag the specified java class file to the upper area or click the above button to select the file, enter the verification code and confirm to upload the file.
Step 2: Waiting for Decompilation
Java class file will be decompiled after the file is uploaded. Please wait patiently if the file is too large.
Step 3: Download The Decompiled Java Source Code File
Open the file in the corresponding folder, and click the download button in the upper right corner to download.
By the way, please contact us if you have any question. Don’t miss to share on facebook etc.
本文由部落格一文多發平臺 釋出!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/2558/viewspace-2824884/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How to Convert Class File to Java File Online?Java
- [Linux] convert .img to .iso fileLinux
- 4.3.2.2.1 The SEED FILE_NAME_CONVERT Clause
- How to use Qt Designed Ui fileQTUI
- Utility class to convert Hex strings to ByteArray or String types.
- How to Dump Redo Log File Information --metalinkORM
- 一文理解class.getClassLoader().getResourceAsStream(file)和class.getResourceAsStream(file)區別
- How to get the exact duration of an audio file in js All In OneJS
- [Design Pattern] Upload big file - 2. How to coordinate frontend and backend
- 如何將UTC時間轉換為Unix時間戳(How to convert UTC time to unix timestamp)時間戳
- No virtual method setOutputFile Ljava/io/File V in class Landroid/media/MediaRecorderJavaAndroid
- 原創:java.lang.UnsupportedClassVersionError: Bad version number in .class fileJavaError
- Oracle 12c 使用FILE_NAME_CONVERT建立pdb報錯 ORA-01276Oracle
- 錯誤:-bash: ./how_paras.sh: /bin/bash^M: bad interpreter: No such file or directory
- java.lang.IllegalArgumentException: Unsupported class file major version xx解決之道JavaException
- [重慶思莊每日技術分享]-dg環境測試 db_create_file_dest和db_file_name_convert引數
- 7.60 CONVERT
- 突破tls/ja3新輪子TLS
- 【開源】我和 JAP(JA Plus) 的故事
- How to ssh
- PHP 每日一函式 — 字串函式 convert_uuencode () & convert_uudecode ()PHP函式字串
- Python convert string to unicode numberPythonUnicode
- DocTo convert doc(x) to pdf
- Convert型別轉換型別
- Eclipse IDE 2020-06 R(4.16.0)來了支援JaEclipseIDE
- How to find dependency
- PIL.Image convert to numpy array
- 淺析Convert,Parse和TryParse
- matlab convert to PGM P2Matlab
- koa-convert原始碼分析原始碼
- 19c RAC Convert to OneNde
- 19c OneNode Convert to RAC
- C# convert ImageSource to byte arrayC#
- 538-Convert BST to Greater Tree
- Convert a normal Git repository to a bare oneORMGit
- iOS[super class]和[self class]iOS
- [譯] WebAssembly: How and whyWeb
- How OpenStack integrates with Ceph?