Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

get source to jar files

Thread view: 
odelya - 16 Apr 2007 08:47 GMT
hi there!
i download eclipse and can't see the source file for java classes such
as String , ArrayList etc..
more the more, i imported a jar file from external source, but i can
see the code like binary stuff.
A. how can i see Java classes source?
B. Is there a way to view extract jar classes from binary - when i
don't have the source?

Thanks
Odelya
Andrew Thompson - 16 Apr 2007 09:41 GMT
..
>i download eclipse and can't see the source file for java classes such
>as String , ArrayList etc..
>more the more, i imported a jar file from external source, but i can
>see the code like binary stuff.
>A. how can i see Java classes source?

A search fo the Eclipse site for 'attach source code'
throws up this page as the top hit.
<http://download.eclipse.org/eclipse/downloads/documentation/2.0/html/plugins/org
.eclipse.jdt.doc.user/tasks/tasks-115.htm


>B. Is there a way to view extract jar classes from binary - when i
>don't have the source?

A google for 'java decompiler' seems to show some likely
hits, also check out JAD.  These tools will not produce
'the (original) source' as such, but they might give something
workable.

Please also consistently put an upper case letter at the
start of sentences, to assist the reader.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

odelya - 17 Apr 2007 09:17 GMT
Hi !
A. Thanks alot.
B. I Am blocked with the fact that I have to decompile class by class.
Is there a tool to decompile a whole zip file with classes?
Odelya
Andrew Thompson - 17 Apr 2007 10:55 GMT
..
>A. Thanks alot.

No worries!  

>B. I Am blocked with the fact that I have to decompile class by class.
>Is there a tool to decompile a whole zip file with classes?

No idea!  ( I have never found the need to decompile
any single class, let alone groups of them. ;)

OTOH, if you can decompile one from within
Java, you might:-
- Use Java to iterate the ZipEntries of the archive.
- Extract the classes (if needed), and..
- Decompile each class in turn.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

odelya - 18 Apr 2007 11:10 GMT
couldn't understand your answer. i have a .jar file with all java
classes that i would like to have the resource.
JAD decompiles them one by one. is there a tool to compile all of them
at once?

Odelya


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.