简体   繁体   中英

How to get source code from .class file( class file version is 1.2)

Unresolved compilation problem:

Syntax error, parameterized types are only available if source level is 1.5 or greater

I used JD GUI de-compiler but it is giving above error.

is there any way i can get source code

试试javadecompilers.com ,我已经在那里成功地反编译了一些类文件。

Try this at the command line. It will also show the JDK version used to compile the class, in the beginning , like: major version: 52

javap -verbose <class name>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM