Arpit Garg
Arpit Garg

Reputation: 31

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

Upvotes: 0

Views: 12318

Answers (2)

Bajal
Bajal

Reputation: 6016

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>

Upvotes: 2

Magnus
Magnus

Reputation: 18810

Try javadecompilers.com, I've successfully decompiled some class files there.

Upvotes: 1

Related Questions