Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2008, 12:50 PM
Member
 
Join Date: Mar 2008
Posts: 14
zizou147 is on a distinguished road
question
hi ,i'm currently in an internship,i'm working on a classification image application ,my task is to automate the process of this small software,I've the jar file and i want to know how to get the api of the GUI,i've the one needed for the software work but i need the one of the GUI to be able to events of controls (buttons menus...),I hope there is a way to extract the source code of the GUI.Thank you
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-04-2008, 12:56 PM
Niveditha's Avatar
Senior Member
 
Join Date: May 2008
Posts: 299
Niveditha is on a distinguished road
Send a message via Skype™ to Niveditha
Hi,
Extract the jar file by the command
jar -xvf myJar.jar (Can get more details in Google)
Open any of the GUI related code and check in imports.
__________________
To finish sooner, take your own time....
Nivedithaaaa
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-04-2008, 01:15 PM
Member
 
Join Date: Mar 2008
Posts: 14
zizou147 is on a distinguished road
Hi,
Actually the problem is that i didnt find the api for the GUI,when i click on a button to classify an image i dont know what happend ,that is which block of code is executed,the software is called pixit and it's built in java .Is there any software that can extract the api of the GUI of a jar file ?thanks
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-04-2008, 01:28 PM
Senior Member
 
Join Date: Jun 2008
Posts: 303
masijade is on a distinguished road
Jad? (Google that word.)
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 07-04-2008, 01:32 PM
Member
 
Join Date: Mar 2008
Posts: 14
zizou147 is on a distinguished road
yes yes i've tried it before,but it's not giving the api of the GUI,that is what each control is doing .
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 07-04-2008, 01:53 PM
Niveditha's Avatar
Senior Member
 
Join Date: May 2008
Posts: 299
Niveditha is on a distinguished road
Send a message via Skype™ to Niveditha
You meant to say a jar contains the API of GUI like say "JButton" and u want to extract that to get the source code and modify is it?
__________________
To finish sooner, take your own time....
Nivedithaaaa
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 07-04-2008, 01:58 PM
Member
 
Join Date: Mar 2008
Posts: 14
zizou147 is on a distinguished road
yeppp,this is it
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 07-04-2008, 02:16 PM
Niveditha's Avatar
Senior Member
 
Join Date: May 2008
Posts: 299
Niveditha is on a distinguished road
Send a message via Skype™ to Niveditha
Ok... Right Click on jar say jcalendar.jar and click on "Extract to jcalendar\", this will create a folder structure in the same directory.
Navigate inside that folder till u get the jar's class file, for above example it would be JCalendar.class.

There is a 3rd party called jd-gui-0.1.0-0.3.1.windows which will convert .class file to .java file, you can convert JCalendar.class to JCalendar.java, edit it and save it according to your needs.

U can download the tool from following links:

1. Download JD-GUI Freeware - You can use this fast Java decompiler to reduce the time and energy you spend on your work. JD-GUI is a standalone graphical...
2. JD-GUI download page
__________________
To finish sooner, take your own time....
Nivedithaaaa
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 07-04-2008, 02:19 PM
Senior Member
 
Join Date: Jun 2008
Posts: 303
masijade is on a distinguished road
Quote:
Originally Posted by Niveditha View Post
There is a 3rd party called jd-gui-0.1.0-0.3.1.windows which will convert .class file to .java file, you can convert JCalendar.class to JCalendar.java, edit it and save it according to your needs.
This is exactly what Jad is, but seemingly he is not able to decipher the decompiled code.
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 07-04-2008, 02:50 PM
Member
 
Join Date: Mar 2008
Posts: 14
zizou147 is on a distinguished road
Well,I did all whay you said but maybe you didn't get my point ,actually I managed to get all the classes that does the job of classification but the code that controls the GUI that will show me how the classes are used is missing and this is the one i'm looking for.
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 07-04-2008, 03:32 PM
Senior Member
 
Join Date: Jun 2008
Posts: 303
masijade is on a distinguished road
If it runs (which I can only assume it does, since you mentioned having the "jarfile" of the application), how can you be "missing" them?
Bookmark Post in Technorati
Reply With Quote
  #12 (permalink)  
Old 07-04-2008, 04:38 PM
Member
 
Join Date: Mar 2008
Posts: 14
zizou147 is on a distinguished road
no,the jar file when extracted ,give only the classes that reprensent the objects needed to have the application do its job,but the code that's behind the GUI,that is the events of buttons and all other staff(when i want to classify an image after importing it ,which object is called and what's is done exactly)this is the code i'm trying to have ,when i asked the company that gave me the software ,they told we cant give you the API for the GUI and now i'm trying to see how to get it .
Bookmark Post in Technorati
Reply With Quote
  #13 (permalink)  
Old 07-04-2008, 07:07 PM
Senior Member
 
Join Date: Jun 2008
Posts: 303
masijade is on a distinguished road
Does it run (with the jarfile you have)? If yes, you already have the GUI code. It isn't just magically generated out of thin air.

Edit: And, if it doesn't run with just what you have, and the company said you can't have it, then give it up (at least this line of investigation), or it could actually result in your arrest, if you do manage to "steal" it.
Bookmark Post in Technorati
Reply With Quote
  #14 (permalink)  
Old 07-04-2008, 08:05 PM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 337
fishtoprecords is on a distinguished road
You may want to look at NIH's ImageJ library/API. Its designed for scientists looking at images, calculating things, etc.

ImageJ

http://rsbweb.nih.gov/ij/]ImageJ

Last edited by fishtoprecords : 07-04-2008 at 08:06 PM. Reason: remove redundant link
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
a question slytheman Java Servlet 0 03-12-2008 05:11 AM
Need help on this question Deon New To Java 3 01-27-2008 04:58 PM
JNI question javaplus New To Java 0 12-24-2007 11:18 AM
question about rmi leonard New To Java 1 08-06-2007 05:19 AM
Question mark colon operator question orchid Advanced Java 3 04-30-2007 11:37 PM


All times are GMT +3. The time now is 03:13 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org