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
- 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)時間戳
- 原創:java.lang.UnsupportedClassVersionError: Bad version number in .class fileJavaError
- java.lang.IllegalArgumentException: Unsupported class file major version xx解決之道JavaException
- [重慶思莊每日技術分享]-dg環境測試 db_create_file_dest和db_file_name_convert引數
- 突破tls/ja3新輪子TLS
- PHP 每日一函式 — 字串函式 convert_uuencode () & convert_uudecode ()PHP函式字串
- Python convert string to unicode numberPythonUnicode
- DocTo convert doc(x) to pdf
- Convert型別轉換型別
- How to ssh
- 【開源】我和 JAP(JA Plus) 的故事
- C# convert ImageSource to byte arrayC#
- Convert a normal Git repository to a bare oneORMGit
- How to find dependency
- Typescript的interface、class和abstract classTypeScript
- WPF SelectedItemCollection convert to IList and List, such as Datagrid SelectedItems
- Eclipse IDE 2020-06 R(4.16.0)來了支援JaEclipseIDE
- How to Install psql on MacSQLMac
- How Python list works?Python
- How to Install LibreOffice on UbuntuUbuntu
- CISO之What & How
- How to Build a Cybersecurity CareerUI
- self::class和static::class的區別
- C# convert sql blob type to plain stringC#SQLAI
- java.sql.SQLException: Fail to convert to internal representationJavaSQLExceptionAI
- 28、Static Nested Class 和 Inner Class的不同。
- [Javascript] How javascript read the property?JavaScript
- How to subscribe to GPT4?GPT
- How to review diffs between commitsViewMIT
- how to build a website like apkmirrorUIWebAPK
- 用Go構建你專屬的JA3指紋Go
- File
- RCNN中函式配置-convert_data_to_tfrecordCNN函式
- Java for LeetCode 109 Convert Sorted List to Binary Search TreeJavaLeetCode