• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Solved] is it possible to get .java files from Project.woa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Solved] is it possible to get .java files from Project.woa


  • Subject: [Solved] is it possible to get .java files from Project.woa
  • From: james o <email@hidden>
  • Date: Sat, 6 Sep 2003 10:13:50 -0400

ricardo, guess what? it is possible to restore your .java files from a Project.woa. special thanks to everyone that helped me with this problem.

download jad (fast java decompiler) from http://kpdus.tripod.com/jad.html - i tried MacJad, JReverse and other gui decompilers yesterday. the only one that worked is Jad from Pavel Kouznetsov.

overview:

-download jad:
http://kpdus.tripod.com/jad.html

make jad executable:
% chmod a+x jad

find your Project.jar:
your Project.jar is located inside of Projects.woa/Contents/Resources/Java/Project.jar


extract the .class files:
% jar xvf [name].jar
or, on my mac i used Stuffit Expander to expand the Project.jar

to use jad on .class files to convert to .java:
% ./jad -sjava exampleClass.class (in documentation)

voila!  you get your .java code back without the comments!!

i recommend duplicating your Project.woa before trying a decompiler.

====================================
special thanks to thomas ganter for this outline:
once you have located the .jar file, you do (in a shell or a terminal window, after cd'ing to the directory)



% jar xvf [name].jar
which should list and extract all files in the jar file. Best you copy the jar file to a convenient location as to not damage the .woa


Assuming you are on unix/Mac, you can do
% find . -name \*.class

to find the classes, and
% find . -name \*.class -exec jad {} \;


to, magically, transform them back to java files.

On Windows, you will have to do it manually one by one using

jad [name1].class
jad [name2].class

and so on.

The reconstructed files will be named .jad, but they are all valid java files.

Of course, you will loose all your comments, as comments are not part of the .class files. But everything else will be there.



On Friday, September 5, 2003, at 03:06 PM, Ricardo Strausz wrote:

This is like the third time this month...
NO.
Your javas had been compiled. If you have a decompiler, decompile your .jar but your job will not be fun at all...
Suerte!
Dino


On viernes, sept 5, 2003, at 10:55 America/Mexico_City, james o wrote:

feeling like an idiot, i've lost the newest version of a project before commiting to cvs.

anyhow, i've opened up my Project.woa and was able to grab all the .api, .wo and EOModel files but i can't find the .java files.

can i recover the .java files, from the .woa?


./james

{ primax STUDIO : http://primaxSTUDIO.com : 513.772.1223  }
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: is it possible to get .java files from Project.woa (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: Re: Comparing 2 Arrays if they have same objects
  • Next by Date: Re: Using WebObjects
  • Previous by thread: Re: is it possible to get .java files from Project.woa
  • Next by thread: Re: Cloning a project using Project Builder
  • Index(es):
    • Date
    • Thread