Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2009, 10:03 AM
kishan's Avatar
Member
 
Join Date: Apr 2009
Posts: 54
Rep Power: 0
kishan is on a distinguished road
Default How to see view the jar class
hi all......

I am new to java programming. I want to extract a jar file.
Please tell me the steps how to extract a jar file class ?
where will be the extracted class file stored in our system after extracting?
Is there any effect to the current running project by viewing the code?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 04-24-2009, 02:24 PM
Member
 
Join Date: Apr 2009
Posts: 9
Rep Power: 0
saifuddin.merchant is on a distinguished road
Default
Well a Jar file is really just a zip file with another extension. To view the contents of the Jar file, just copy the Jar file, rename the copied file to .zip instead of .jar and extract the contents using Winzip (or equivalent).
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-24-2009, 03:51 PM
kishan's Avatar
Member
 
Join Date: Apr 2009
Posts: 54
Rep Power: 0
kishan is on a distinguished road
Default
thank u....
but i followed steps by browsing net.
1) cd C:\Program Files\Java\jdk1.6.0_05\bin
2)jar xf TicTacToe.jar TicTacToe.class images/cross.gif (for example)
will extract all of the folders and files comrpessed inside of the TicTacToe.jar file, and place them into the current folder.


in the above "current folder" means which folder.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-24-2009, 04:01 PM
kishan's Avatar
Member
 
Join Date: Apr 2009
Posts: 54
Rep Power: 0
kishan is on a distinguished road
Default
I do as u told but it shows compiled code only.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 04-25-2009, 06:52 AM
Member
 
Join Date: Apr 2009
Posts: 9
Rep Power: 0
saifuddin.merchant is on a distinguished road
Default
Oh so you want to see the source code? You need a Java De-compiler for that. Just do a search for java decompiler on google and you should a lot of links to Java decompilers. Install any one and you should be able to decompile the Java class files to get the source code!
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 04-25-2009, 06:54 AM
Member
 
Join Date: Apr 2009
Posts: 9
Rep Power: 0
saifuddin.merchant is on a distinguished road
Default
Originally Posted by kishan View Post
thank u....
but i followed steps by browsing net.
1) cd C:\Program Files\Java\jdk1.6.0_05\bin
2)jar xf TicTacToe.jar TicTacToe.class images/cross.gif (for example)
will extract all of the folders and files comrpessed inside of the TicTacToe.jar file, and place them into the current folder.


in the above "current folder" means which folder.
This will do the same thing - as when you unzip. Its just a harder way to do it . To get the source you will need a decompiler. Look at my post above!!!!
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant view table bheezee Database 0 12-14-2008 02:46 PM
A view to help hervey Reviews / Advertising 1 10-29-2008 08:37 AM
Updating a view using actions in a seperate view xcallmejudasx Eclipse 0 10-24-2008 10:24 PM
MVC - View Example JavaForums Java Blogs 0 02-13-2008 01:30 PM
MVC - View JavaForums Java Blogs 0 02-13-2008 01:20 AM


All times are GMT +2. The time now is 06:38 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org