This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes converting JAR to  .java file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "converting JAR to  .java file" Watch "converting JAR to  .java file" New topic

converting JAR to .java file

sanju gajera

Joined: Sep 24, 2006
Posts: 17
i want to know how i can converting the JA executable file formate to the .java file formate.............?
please give me the solution.........

as soon as possible.......

gajera sanjay
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

A JAR file is a collection of resources, typically multiple Class files but could also be other file types too.

The format for JAR files can be read by (typically) any archive managing tool like Winzip, WinRar etc, or it can be 'unjarred' using the command line.

There are decompilers available to convert the .class files into .java files, such as JAD
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

Hi sanju,

I think that the easiest way to see what is in a .jar file is to first make a copy of it (so you don't mess anything up) and then change the ".jar" extension to be ".zip" and then open it.

This works for both Mac OS X and for Microsoft XP and up.
I agree. Here's the link:
subject: converting JAR to .java file
jQuery in Action, 3rd edition