Anyone know how to find available classes in a package?

Anyone know how to find available classes in a package?
Given a String like "java.io" I would like to write a method to extract the available classes in this package. I can't seem to find a method for this anywhere in the docs. The package class does not seem to have a method like this.

Here is some code I tried.
I'm not very familiar with manipulating JARs The code below is what I tried, but how do I access the packages like "java.io" in the JarFile? and then get the available classes?
import java.io.*;
import java.util.*;
import java.util.jar.*;
class Tester
     public static void main(String args[])
          try {
               JarFile jf = new JarFile("c:/jdk1.3/lib/dt.jar");/* usually rt.jar (and 1.4)*/
               Enumeration e = jf.entries();
                    while (e.hasMoreElements())
                         Object current = e.nextElement();
                         System.out.println(current.toString() + "class:"+current.getClass());
                         try {
                              Thread.sleep(300);
                         } catch (InterruptedException ie) {}
          } catch (IOException ioe) {System.out.println(ioe.toString());}
               /*also tried      ClassLoader cl = ClassLoader.getSystemClassLoader();
          try {
               Enumeration e = cl.getResources("c:/jdk1.3/lib/dt.jar");
               System.out.println(e.nextElement());
               while (e.hasMoreElements())
               System.out.println(e.nextElement());
          } catch (IOException ioe) {System.out.println(ioe.toString());}

Similar Messages

  • HT2509 Hello I wonder if anyone knows how to find, download and install a suitable IPA (phonetics) font for the Mac Air? I need to be able to use a pop up window of fonts.

    Hello I wonder if anyone knows how to find, download and install a suitable IPA (phonetics) font for the MacBook  Air? I need to be able to use a pop up window of fonts.

    Unless you've done anything to change it, Google keeps every email that ever passes through their server in your All Mail folder/mailbox/label. Even if you delete stuff, they hold onto it, there. You have to go out of your way to actually delete anything permanently.

  • Anyone knows how to find the mac-adress on an Ipad(for network)

    anyone knows how to find the mac-adress on an Ipad(for network connection)

    chose settings - general- about...and there it is  , the wi-fi-adress :-)

  • HT1551 Want to play tv shows purchased on iPad on Apple tv. When I touch icon for apple tv and choose "apple tv" it asks for an apple tv password. We have never set up any password and can't get past this screen. Does anyone know how to find this password

    Want to play tv shows purchased on iPad on Apple tv. When I touch icon for apple tv and choose "apple tv" it asks for an apple tv password. We have never set up any password and can't get past this screen. Does anyone know how to find this password?

    You can remove the Airplay password from the Settings menu on your AppleTV.

  • Does anyone know how to "find my iphone" without iOS or iCloud?

    Does anyone know how to "find my iphone" without iOS or iCloud? I downloaded the app, but am unable to locate it as I do not have icloud or iOS.

    you have made many question about how to find your iphone without icloud or didn't download the app "find my iphone",I‘m sorry to say,you can't find back you iphone unless the miracle happened,god bless you .你已经写了很多关于如何找到没有开启icloud服务,而且也没有应用“find my iphone"的IPHONE手机,那我很遗憾的告诉你,除非奇迹出现,否则是不可能的,上帝保佑你!
    BTW:my iphone also got lost yesterday。另外,我的IPHONE昨天也丢了……伤心……

  • HT2905 Does anyone know how to find and remove duplicate items in the new itunes 11?

    I am having a hard time trying to figure out how to find and remove duplicate items under the New iTunes 11? Its not as user friendly as in previous versions. Does anyone know how to figure this out?

    As Jim said View > Show Duplicates
    or
    Option + View > Show Exact Duplicates

  • Ive purchased ringtones from itunes.  They were assigned to contacts.  I did the latest update and now now of them are in the list of ringtones.  I've synced twice and they are not on my iphone.  Does anyone know how to find them?

    Ive purchased ringtones from Itunes.  They were working before I did the recent update.  I cannot find them on the iPhone and they are no longer assigned - I had five. I have synced several times and does anyone know where they are or how to assign them again?

    On your iPhone tap Settings > Store
    Make sure Music is switched on.
    Now reset your iPhone.
    Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.

  • Does anyone know how to find my iPhone without the Find My iPhone app?

    Hi, I lost my iPhone Friday night. Ironic I know, Friday the 13th, who coulda had worse luck. Every person I ask what to do, tells me I should use the Find My iPhone app. BUT ITS RUBISH. IT DOES NOT HELP ME IN ANY WAY POSSIBLE. WHOEVER INVENTED IT DID NOT ACCOMMODATE FOR IF THE PHONE WAS STOLEN OR LOST WHEN IT WAS SWITCHED OFF. Its obviously locked via passcode and lost mode on Find My iPhone but really anyone can bypass it or restore the phone which is what worries me because once they do that there is no way of finding it since the phone is only traceable through iCloud in partner with my apple ID. So thanks whoever invented Find My iPhone. It was just further confirmation that any chances of actually finding my iPhone are non-existent.
    And I believe Apple has a way to find it via the 982149810 different kinds of product codes such as the serial number or the IMEI number but they choose not to, A) because they do not want to bother themselves and B) because they'd rather have you pay full ******* price for a brand new one. Which I'm not going to do. That phone has restricted and confidential material on it and it needs to be found NOW.
    There must be a way to locate the phone. I've heard of ways that the police has worked side by side with carrier companies to track it. Unfortunately I cannot do that because I purchased an originally unlocked cell phone at full retail price from the Apple store itself. I know there is a way to find it. There has to be. Also, I heard that an Apple Certified Mac Technician can help find it. Does anyone know the number of any here in Canada? Prefferably the GTA? Please help me out.
    Thank you.
    P.S. If I never find my iPhone, I'm switching to Android. They have an app that helps you find the phone even if its switched off and an app for after it gets stolen. Meaning it doesn't have to be installed in the phone before it was stolen. BECAUSE THEY ARE SMART AND CONSIDER ALL OCCASIONS. LEARN FROM YOUR COMPETITORS APPLE. ADIOS APPLE.

    There is no way to remotely track any device that is turned off, or does not have an internet data connection.  In that case, no remote system can possible communicate with the device, nor the device send any information to any remote server.  Any device, not merely an iPhone, shares that same limitation.  Remote tracking is only possible if the device and the tracking system can talk to eachother.
    Apple does not offer any other feature because they are not a law enforcement agency.  They are bound by the same privacy laws that keep you from snooping in somebody's house just because you claim they have something of yours.
    Of course there are alternate ways to track a powered on and connected cell phone, but Apple has neither the legal nor the moral authority to do such things.  Just because something is technically possible does not mean that any big company and just go out and do them.
    Since when is it always "someone else's" fault and responsibility to deal with your lost or stolen private property?  I don't get this mentality of passing either the blame or the responsibility on to someone else.

  • Anyone know how to find out availability with AT&T stores?

    The city I live in does not have an Apple retail store. The nearest one is 2 hours away from me, and upon trying to get into that store saturday when I was in that city, I couldn't even get thru the door. On calling back Sunday I was informed not to waste my time driving back because they were nearing sold out.
    I have also been told that ALL of the AT&T locations (I have personally visited 3 and called a few) in the upstate of SC have sold out, and none of their reps seem to know when they will have more.
    I am honestly tired of wasting gas doing all of this driving trying to buy the new iPhone. Does anyone here know of any contacts that can give someone a heads up on what AT&T stores will be getting shipments, and when? Nobody seems to have any information at all, and I'm getting annoyed by the lack of knowledge by the people that are supposed to be selling me a $300 product and a serious update on my monthly bill.
    I simply just want to spend my money on this new iPhone and can't.

    They really have no idea. The person I delth with in ordering said they were told the 7-10 day estimate was probably longer than it would take. They said there was stock but they were only getting so many on launch day. Last year I did the same thing, order to have my order priority. It arrived the Monday after I ordered it, so I wouldn't be surprised if they do come this week sometime.

  • Anyone know how to find this stuff?

    computer crashed reinstalled windows but now i cant find my i-cloud or anything from my i tunes please help

    Doing that is a large order for a beginner. It can't find the jar file (or directory) that contains the package "org.python.util". You need to place the jar or parent directory in the classpath.
    See this page for information about packages:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html
    Read "Setting the Classpath " and "How Classes are Found "
    If you wish to take an easier approach, try the jEdit program editor. It's available as a precompiled file for LInux. Good editor for Java and other languages, written in Java, free.
    http://www.jedit.org

  • Help ?? when i bought the mac I thought saw Icloud on it now i cant ? anyone know how i find it please

    Can any one help me I cant find the icloud on my mac any where ??

    iCloud is built into the operating system. Your profile states that you are using OS X 10.6.8, iCloud only comes with OS X 10.7.2 or better, you would need to upgrade to lion in order to obtain iCloud .

  • Anyone know how to find and replace a hard drive cable fo an HP Pavilion zv5160us laptop?

    I received message that my hard drive had failed.  I ordered an identical drive and replaced it.  I now get error message:
    PXE-E61:  Media test failure, check cable
    PXE-M0F:  exiting PXE ROM
    The recovery disks will not reformat the drive.  What does the cable look like.  Can it be replaced?  Where could I find one?
    Thanks for any help as I have bought new hard drive, more memory and recovery disks.  Hate to lose my investment completely.  Should have just bought a new laptop!

    Hi,
    Should be ok to put new WD HDD on your dv6 machine. All connectors are standard. Please watch the following videos to see some idea of this work:
        http://www.youtube.com/watch?v=CP0WYzpKYKk
       http://www.youtube.com/watch?v=QQx7PlIXFuE
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Does anyone know how to find maximum sample rate on an mac 10.7.5

    Trying to see if I can downlaod a audio plug-in that requires a maximum sample rate of 199kHz. Where do I find this info for 2009 Mac 10.7.5?

    According to http://support.apple.com/kb/ht3913:
    "The internal microphone supports recording at bit depths of 16, 20, or 24 bits per sample and at sample rates of 44.1 kHz, 48 kHz, or 96 kHz."

  • Hi, I found an ipod anyone know how to find the owner so I can give it to them

    Any idea's can I bring it into an apple store and can they find the owner from the serial number

    Apple cannot help.  If the iPod is not locked, go to Utilities > Settings > Mail, Contact, Calendars.  There you should find the owners email address(es), so you can contact him/her.  If it is locked the only thing you can do is turn it in to the police.

  • HT2905 Anyone know how to find duplicates in iTunes 11.0.2?

    Underthe "File" drop down menu in 11.0.2, it is not shown as here.

    It should be under View-Show Duplicate Items.

Maybe you are looking for