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 / First Aid / November 2006

Tip: Looking for answers? Try searching our database.

.jar file cannot see what is inside

Thread view: 
Roy Gourgi - 09 Nov 2006 21:15 GMT
Hi,

I received this .zip file with .jar files. When I use JBuilder to see all
the classes in them I do not think that I see them all. Could they have been
stored in such a way that I do not see them all? Are they maybe stored as
classes so that I only see the java files and not the classes. Is this a
possibility? Is there any ways to actually convert the classes back into
.java files if that is the case.

TIA
Roy
Andrew Thompson - 09 Nov 2006 22:54 GMT
...
> I received this .zip file with .jar files.

A jar archive is simply a specialised form of a Zip archive.

>...When I use JBuilder to see all
> the classes in them I do not think that I see them all.

Java classloaders can find resources (classes, images,
property files, even other archives) within archives, but
they do not search for resources that are inside other
*archives* (zip or jar) that occur inside the main archive.

To see resources within archives of the main Zip, expand
the Zip file to the local filesystem, and add each jar to the
classpath of the IDE/build file.

HTH

Andrew T.
Andrew Thompson - 10 Nov 2006 03:02 GMT
Please reconfigure your Outlook Express to follow
conventional threading behaviour for usenet.
...
> > > I received this .zip file with .jar files.
...
> I tried expanding the .zip files and I get 2 .jar files,
> but when I try to bring them into JBuilder it does
> not do anything.

Maybe you had better take this up with whoever
sent you the .zip file.  Most '.zip files containing
.jars' come with instructions for use.

Andrew T.
Roy Gourgi - 10 Nov 2006 04:14 GMT
Hi,

Unfortunately I cannot reach the person that sent it to me otherwise I
would. That is the problem.

Roy

> Please reconfigure your Outlook Express to follow
> conventional threading behaviour for usenet.
[quoted text clipped - 10 lines]
>
> Andrew T.
Roy Gourgi - 09 Nov 2006 23:35 GMT
A jar archive is simply a specialised form of a Zip archive.

>...When I use JBuilder to see all
> the classes in them I do not think that I see them all.

Java classloaders can find resources (classes, images,
property files, even other archives) within archives, but
they do not search for resources that are inside other
*archives* (zip or jar) that occur inside the main archive.

To see resources within archives of the main Zip, expand
the Zip file to the local filesystem, and add each jar to the
classpath of the IDE/build file.

HTH

Andrew T.

Hi Andrew,

I tried expanding the .zip files and I get 2 .jar files, but when I try to
bring them into JBuilder it does not do anything. Can I do it with another
IDE/Build file? I am pretty new at this. Can I somehow do it through a
Command Window (DOS)?

Thanks
Roy

> Hi,
>
[quoted text clipped - 7 lines]
> TIA
> Roy


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.