Solved

viewing a jar file content

Posted on 2014-01-17
6
587 Views
Last Modified: 2014-01-23
Hi,

I have a jar file. I need to open and see the source code in the jar file to override some of the style related code like primefaces-3.4 related
org.primefaces.component.behavior.printer.PrinterBehavior.getScript()

How do I see jar content.

please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
6 Comments
 
LVL 14

Expert Comment

by:CPColin
ID: 39789860
JAR files are just ZIP files with a standardized structure; you can open them using any application that can open ZIP files. However, if the source code is not in the JAR file, you're going to have to look elsewhere. JAR files typically just contain the compiled CLASS files, not the source.
0
 
LVL 11

Assisted Solution

by:Manish
Manish earned 166 total points
ID: 39793492
You can use java decompiler to view code.
http://en.wikipedia.org/wiki/JAD_%28JAva_Decompiler%29
0
 
LVL 37

Assisted Solution

by:zzynx
zzynx earned 167 total points
ID: 39793548
I use WinRAR to open a jar file.
But in most cases, jar files contain the binary .class files not the java source code files.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 6

Accepted Solution

by:
Mahesh Bhutkar earned 167 total points
ID: 39793560
You can use 7-Zip to solve this issue. Even any decompiler also resolve your problem.
0
 
LVL 6

Expert Comment

by:Mahesh Bhutkar
ID: 39799786
Is the problem resolved?
0
 
LVL 37

Expert Comment

by:zzynx
ID: 39803164
Thanx 4 axxepting
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now