Asking about the procedure of class loading.......

I knew the procedure was like this:
1. Bootstrap classes
2. Replace JDK implementation: <java_home>/jre/lib/endorsed
3. Intstalled extensions: <java_home>/jre/lib/ext
4. class path
I am confused about the function of step 2 and 3
what is the difference of relacing ur original JDK and using Installed extensions???
It is understandable about you want an extension to your JDK, but relacing JDK seems no difference with extension
thx for furthur responds

Sorry for posting again,
but does any one know, for example, calling the same
static method from the same name class, according to
the classloading list (in the 1st post), will the JVM
use the class at step 1 or 2??That has nothing to do with class loadiing.
When the class is loaded it is loaded. Either it is all loaded or it isn't. And you can't call a method, any method, without it being loaded.
>
PS. I know, in general, the 1st class that the JVM
finds in the classloading procedure will be used,
but, step 2 says "Replace JDK implementation", so I
wonder whether the classloading procedure would
actually be the 2nd step first and 1st step secondThere is no 'replacement'.

Similar Messages

  • How to load a class dynamically in the current/system class loader

    I need to dynamically load a new jdbc driver jar to the current/system class loader... Please note that creating a new classloader will not help since the DriverManager refers to the systemclassloader itself.
    Restarting the application by appending the jar to its classpath will solve the problem but I want to avoid doing this.

    Did you then create a ClassLoader to load the JDBC
    driver and then install it into the system as
    directed by the JDBC specification (ie
    Class.forName(someClassName))?
    And then try to use it from a class loaded fromsome
    other ClassLoader (i.e. the system class loader)?
    If you did not try this please explain why not.O.K. I just looked at the source to
    java.sql.DriverManager. I did not know what I was
    talking about, as what I suggested above will not
    work.
    This is my new Idea:
    Create a URLClassLoader to load the JDBC driver also
    in this ClassLoader you need to place a helper class
    that does the following:
    public class Helper {
    public Driver getJDBCDriver(String driverClassName,
    String url) {
    try {
    Class.forName(driverClassName);
    Driver d = DriverManager.getDriver(url);
    return d;
    catch(Exception ex) {
    ex.printStackTrace();
    return null;
    }Now create an instance of the Helper class in the new
    ClassLoader, and call its getJDBCDriver method to get
    an instance of the driver (you will probably have to
    create an interface in the root class loader that the
    Helper implements so that you can easily call it).
    Now from the root classloader you can make calls
    directly to the returned Driver and bypass the
    DriverManager and its restrictions on cross
    ClassLoader access.
    The only catch here is that you would have to call to
    the returned Driver directly and not use the Driver
    Manager.This sounds like will work but I did not want to load DriverManager in a new classloader.. I did a hack
    I unzip the jar dynamically in a previously known location (which I included in my classpath when launching the app). The classLoader finds the class now though it did not exist when the app was launched !
    A hack of-course but works eh ..

  • Hi my name is Al-Ameen, Am from Nigeria,actually my brother from the united kingdom sent me an iphone5, So when i insert my Sim card i discovered the iPhone is locked. So the reason why am sending this mail is to ask for the procedure of how to unlock an

    Hi
    my name is Al-Ameen, Am from Nigeria,actually my brother from the united kingdom sent me an iphone5, So when i insert my Sim card i discovered the iPhone is locked.
    So the reason why am sending this mail is to ask for the procedure of how to unlock an iPhone from another country the amount paid and all the other information about unlocking an iPhone.
    Hope to hear back from you guys.
    Many Thanks
    Al-Ameen.

    You need to contact the carrier to see if they offer unlocking and if you qualify. You may need to talk to your brother about this.

  • Hello,  Recently, I asked about the possibility of swap the Adobe Design Standard CS5.5 from windows to mac. In response, I was directed to the help page and and i know that it is possible. Today I see that the help page is out of date. How cann I now swa

    Hello
    Recently, I asked about the possibility to swap from windows to mac with Adobe Design Standard CS5.5. In response, I was directed to the help page and i know that it is possible. But today I see that the help page is out of date.
    How cann I now swap platforms for Adobe Design Standard CS5.5? Do I realy need to buy CS6? Or afer dowloading the mac version of CS5.5 I get the key. And if I realy need upgreade the CS5.5 cann I use the Mac version of CS6 for the dowloaded mac version of CS5.5? Is it possible?

    Thanks !
    I didn't know that I cann buy CS6 Mac upgrade in Adobe Store.
    So I have only to buy the CS6 Mac versions and upgrade CS5.5 Win to CS6 Mac?
    How does look the procedure?
    Do I need to install first the CS5.5 Mac on my Macbook and then upgrade it or is it not necessary?
    Thanks
    Langosz

  • TS1702 when I am installing a new free app on my iphone , 'm asked about the way of payment . I check the none option in my apple Id account but it wouldn't be accepted . what should I do ?

    hi , I faced with a new problem recently while installing a free app.
    when I am installing a new free app on my iphone , I'm asked about the way of payment . I check the none option in my apple Id account but it wouldn't be accepted . what should I do ?
    regards

    You need to ask Apple for assistance with getting back into your old ID. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to resolve this issue through the Account Security team, fill out and submit this form.
    (118441)

  • TS1717 since updating itunes yesterday I now can't open it and get a pop up box about the procedure entry point not being located. anyone able to help?

    since updating itunes yesterday I now can't open it and get a pop up box about the procedure entry point not being located. anyone able to help?
    these are the boxes that open up:
    I am unsure as to wether I need to unistall and start again but then worry about the vast amount of songs already in the folder that I would have to reload.

    anyone able to help me with the above?

  • My home button isn't working well so i went to my service provider to ask about the problem. They advised me to update my iPhone to iOS 5 but the problem is no matter what i do, there is always an error. What should I do?

    My home button isn't working well so i went to my service provider to ask about the problem. They advised me to update my iPhone to iOS 5 but the problem is no matter what i do, there is always an error. What should I do?

    If you are having Issues with downloading iOS 5....
    Try temporarily disabling your firewall and antivirus software and try again...
    See here for Connection Issues
    http://support.apple.com/kb/TS1379
    From Here
    http://www.apple.com/support/itunes/troubleshooting/

  • Reducing the amount of classes loaded

    Is it true that the amount of classes loaded can be reduced by having exclusive import statements in the code, as apposed to general package imports.
    eg import <package path>.<classname> as aposed to import <package path>.*

    all and only classes that are instantiated or referenced will be loaded
    specifying individual classes can help prevent name conflicts (ie 2 classes with the same name in different packages)
    importing whole packages will slow the compiler by a very very tiny ammount

  • Hi i just wanna ask about the volume down button in the ipad 2 ,it was mute the device when hold it at once but before 2days i noticed that the device did not mute when i hold it ,why? and how i fix this by the way it is still volume down

    hi i just wanna ask about the volume down button in the ipad 2 ,it was mute the device when hold it at once but before 2days i noticed that the device did not mute when i hold it ,why? and how i fix this by the way it is still volume down

    Have you tried restarting or rebooting the iPad and then see if the volume control will work again?
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • I ask about the price of changing ipod 4G screen in apple store?

    i ask about the price of changing ipod 4G screen in apple store?

    Apple will exchange your iPod for a refurbished one for $199 for a 64 GB one and $99 for the others. They do not fix yours.
      Apple - iPod Repair price
    Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar      

  • I do not have credit card but in review your account always ask about the card information. what should i do?

    i do not have credit card but in review your account always ask about the card information. what should i do?

    Call the Apple Store and ask them what you should do if you want to purchase on line without a credit cart and without purchasing a gift card which seems to me would require a credit card.

  • I already  bought the annual plan, I installed PS, but i cant open the LR, it keeps asking about the serial no.

    I already  bought the annual plan, I installed PS, but i cant open the LR, it keeps asking about the serial no.
    isn't the annual plan for ps and lr?

    Download LR did you remove and reinstall your installation of Photoshop Lightroom 5?  The licensing for your membership will only be applied to Lightroom if you install through the Creative Cloud Desktop application.  You can find additional details at Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • Payed for light room annual price, keep asking about the serial no.

    payed for light room annual price, keep asking about the serial no?

    Uninstall the "stand-alone" version of Lr, install the CC version via the CC Desktop app.

  • Certificate for the website, was going to copy and send an email to the website to ask about the certificate. I got my cursor just inside the pop up and the whole computer shut down. Why what happened i am not sure about going to the website now....

    Question
    Went to Crossings Book Club website while there something popped up about the certificate for the website, i was going to copy it and send an email to the website to ask about the certificate. I got my cursor just inside the pop up and the whole computer shut down.

    If you think getting your web pages to appear OK in all the major browsers is tricky then dealing with email clients is way worse. There are so many of them.
    If you want to bulk email yourself, there are apps for it and their templates will work in most cases...
    http://www.iwebformusicians.com/Website-Email-Marketing/EBlast.html
    This one will create the form, database and send out the emails...
    http://www.iwebformusicians.com/Website-Email-Marketing/MailShoot.html
    The alternative is to use a marketing service if your business can justify the cost. Their templates are tested in all the common email clients...
    http://www.iwebformusicians.com/Website-Email-Marketing/Email-Marketing-Service. html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • I have few questions to ask about the Expert Series and Valet Series

    Hello.
    I have few questions to ask about the Expert Series and Valet Series.
    1. I see there aren't any print server/bridge/access point for these two new series. Do I have to use previous ones? Or the new ones are in planned in near future?
    2. Do I "HAVE TO USE CONNECT SOFTWARE"?  Can I just use web interface to do every setting that these routers features?
    3. Does expert series routers support guest network and parental control?
    4. When I look into informations of these router, some router doesn't give information about backward compatible to older standards. Do I have to consider that as they are backward compatible with older standards?
    Ok, that's all for now.
    If I need to ask more questions I will do that in this thread as reply

    With the New Expert or the Valet Series Router, you still can use the Print Server / Bridge and Access Points.
    Well with the Expert and Valet Series router, you have an option to User Cisco Connect Software or you can User Web Interface of the Router. But with the Cisco Connect Software you have an Advantage of creating a Guest Account and using Parental Control , which is not available using the Web Interface.
    These both the routers are backward compatible and they can connect to your G Series Product.

Maybe you are looking for

  • How do I move page order in Thumbnails view in the new pages? (which is driving me nuts btw)

    I'm really struggling with the new pages, having used the old version so much I just can't get the hang of this one - so much has changed:( Really wish I hadn't bothered but now have too many documents created in it that I can't open on old version a

  • HT4972 The Wi-fi on my iPhone 4 does not connect to my home network or other networks

    The Wi-fi on my iPhone 4 does not connect to my home network or other networks that I have used in the past.  I noticed this after I updated to version 6.  I have tried to reset network settings ;turn off and on wi-fi; reset home network and it's sti

  • Adobe PDF forms

    Hi all, Please help me out... In Adobe PDF forms, how should we assign master pages to body pages. Kindly give me the steps... in the Adobe LifeCycle Designer. Thanks in advance. Jaffer Ali.S

  • Spreadsheet download problem

    Hi, This is my problem: I have an ABAP report that picks up an Excel file from the host and update its contents based upon some dictionary tables on the Application Server. To do that, it opens the spreadsheet with OLE2OBJECT methods, call some of th

  • Lync 2010 - Browser Helper & Lync Add-on

    We are rolling out Lync 2010 via SCCM.  One of the things we've noticed is that Lync automatically installs two brower add-ons: Lync 2010 - Browser Helper & Lync Add-on.  Is there any way not to install these?  or at least install them with the defau