aspose file tools*
The moose likes Java in General and the fly likes create a java project using an existing jar file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "create a java project using an existing jar file." Watch "create a java project using an existing jar file." New topic
Author

create a java project using an existing jar file.

Ryan Webb
Greenhorn

Joined: Dec 09, 2009
Posts: 28
Hello Ranchers,

I have an old Jar File but we need to update it.
decompilers I find doesn't generate folder structures which I can import to an IDE.

Any advice out there?

Thanks!

Ryan Webb


frustrated to learn c/c++/objective-c
vicky chauhan
Ranch Hand

Joined: Nov 27, 2008
Posts: 41
what happens when you try importing the jar directly in IDE say eclipse ?
Ryan Webb
Greenhorn

Joined: Dec 09, 2009
Posts: 28
The jar file is imported, but no java source codes.
we need the java source codes for us to edit it, we tried using decompilers but none generates the source files. If it does generate, then that means we can import/create new project using Eclipse.

The Jar file is so old, non of the team has the source code. =(

anyways, we managed to fix that damn thing...=) so thanks for the response.

Thanks,
Ryan Webb
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19790
    
  20

You are using the incorrect decompiler flags. JAD allows you to recreate the package folder structure with one of its flags.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ryan Webb
Greenhorn

Joined: Dec 09, 2009
Posts: 28
Oh?!?!?! Can you show me?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19790
    
  20

Try "jad -h" to see all options.
Ryan Webb
Greenhorn

Joined: Dec 09, 2009
Posts: 28
Gee thanks a lot! Cool!

-Ryan Webb
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: create a java project using an existing jar file.