Link to home
Start Free TrialLog in
Avatar of j_script
j_script

asked on

Can Java decompiler decompile a jar file ?

Can a Java decompiler decompile a jar file ?
Avatar of exorcist
exorcist

why don't you unjar the jar file first and then decompile the classes?
Avatar of j_script

ASKER

Is that a way to prevent unjar the files ?
this will depend on your decompiler. You should read the decompiler's documentation, there might be an option to decompile classes from jar files.
Then is there any others to prevent my class from being decompiler ?
Then is there any others to prevent my class from being decompiler ?
sorry, I don't understand your question. Maybe you should take more caution to post understandable questions.
ASKER CERTIFIED SOLUTION
Avatar of ozymandias
ozymandias
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
BTW, a jar file is just a zip file with a manifest added to it. You can just rename any .jar file to .zip and open it in winzip.
You could also use

jar xf "name of file".jar