aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "converting JAR to  .java file" Watch "converting JAR to  .java file" New topic
Author

converting JAR to .java file

sanju gajera
Greenhorn

Joined: Sep 24, 2006
Posts: 17
hi!!!
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
Rancher

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: 688

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: http://aspose.com/file-tools
 
subject: converting JAR to .java file
 
Similar Threads
Class - Static variables Questions?
Help Regarding .bat files
javasource code for read webpage in XML formate
Java API converting PDF to word
creating .exe file for java application