How can i tell if Native code is being used or not?

Hi,
I imported a jar file called dnsjava, and set my system property to use this so that my getHostName method doesnt use native code to get the host name. My question is, how can i know for sure that it is using the code from the jar file dnsjava? I used a debugger, and it seemed like it was getting it from java.net.InetAddress instead. Please help!
import java.net.InetAddress;
public class Test {
     public static void main(String[] args) throws Exception {
          System.setProperty("sun.net.spi.nameservice.provider.1","dns,dnsjava");
          InetAddress addr = InetAddress.getByName("64.58.76.179");
          String name = addr.getHostName();
          System.out.println("name = " + name);
}

What makes you think that you can set that property in the code and it will work?
A number of properties can only be set from the command line. They will not work when set in code.
I am not sure that any sun type properties will work when set in code.

Similar Messages

  • How can you tell if a file is being used in your project or not?

    How can you tell if a file in your bin is being used in your project or not? My director dragged hundreds of reference files into my project and only used a few of them. I'd like to do some house cleaning and delete the ones that are not in use. This project file has 100 sequences in it, so it would be a tough manual hunt to figure this out.
    In Premiere Pro (or Flash for example), where all the information is in the Project Bin such as in/out times and duration, there is where it tells you how many times that piece of media has been used or if it hasn't been used yet.
    Can FCP tell me this info?
    Thanks for yout time!
    -Monty

    Monty,
    Within FCP, there is a menu item called "Media Manager" (depending on what version you are in). This would be worth your while to look into. It basically organizes your project by moving/archiving any used assets of a project and leaving out un-used assets. It saves a ton of disk space.
    For example, say you have a 5 minute clip with an in/out point that is just 30 seconds. Media Manager will "archive" just that 30 seconds, not the entire clip. There is even a setting that you can add additional "handles" time to the front andd back of the clip if you think you may need to add or change transition.
    Do a google search. I was just watching a few Youtube videos on this myself.
    Jonathan

  • HT201653 We are a retail shop which has a copy of AppleCare Protection plan. The box is not sealed. How can I tell if the product has been registered or not.

    We are a retail shop which has a copy of AppleCare Protection plan. The box is not sealed. How can I tell if the product has been registered or not.

    Since the only thing needed in that box is the small piece of paper with the (very long) registration code on it (usually found inside the booklet), see if that is actually there and, if it is, call Apple at 800-275-2273 and ask to be transferred to the Applecare department. Here is the link to the Applecare plan - just in case you may need it, see the fax numbers listed under para. 9 (Cancellation).
    http://www.apple.com/legal/sales-support/applecare/appmacnaen.html

  • How can you tell if your iPhone 4s is locked or not, without replacing sim?

    Hello everyone.
    I'm new to the site and iPhone world,
    How can you tell if your iPhone 4s is locked or not, without replacing sim?
    Any tips or tricks?
    Supposably, Sprint iPhone 4s prior to Nov.11th are unlocked, in what extend this true?
    thanks in advance.

    Call Sprint and ask

  • HT201342 how can I tell if my contacts are being updated and stored in my cloud?

    how can I tell if my contacts are being updated and stored in my cloud?

    Log into icloud.com with a computer's browser and look at the contacts page.  This lists the contacts currently stored on the icloud servers.

  • HT4211 how can you find out what kb are being used by what apps

    how can you find out what kb are being used by what apps there is always alot of kb being used even when I don't use my phone

    Go into settings , general, usage and it tells you what the apps use. If your refering to the memory storage of the apps.

  • How can i tell if my iphone is being tracked

    How can i tell if my iphone 5 is being tracked?

    BioQuant wrote:
    1.  is it even possible that if i called someone's number that that would be enough for them to track me, simply by knowing my iphone 5 number?
    Sure, with the right equipment/contacts...but, not easily.
    can say Verizon give me this info?
    Nope, Verizon won't help you, at least not without a court order.

  • How can I purchase a redemption code for a used Premiere Elements 11?

    My wife bought me a used version of Adobe Premiere Elements 11.  When I try to enter the redemption code, it says that the code is not valid.  How can I purchase another redemption code / serial number?  Thanks!

    When I went to Best Buy online and searched for Premiere Elements 11 a page came up that shows that program being sold by "marketplace" vendors
    http://www.bestbuy.com/site/searchpage.jsp?_dyncharset=UTF-8&_dynSessConf=1374273800958887 553&id=pcat17071&type=page&ks=960&st=premiere+elements&sc=Global&cp=1&sp=&qp=soldby_facet% 3DSAAS%7ESold+By%7EMarketplace+Seller&list=y&usc=All+Categories&nrp=15&fs=saas&iht=n&seeAl l=
    I did not click through to go to any of the vendors, so I don't know if any of them actually sell USED software

  • How can I tell/set amount of memory AI uses in OS X?

    Hello
      I'm working on a VERY detailed illustration using CS5. I keep getting out of memory errors when duplicating stuff.
      I have 24GB RAM on my 12-core Mac Pro. Should I be getting these errors? How can I tell how much RAM AI is using, and how can I set it higher if it's not high enough?
    Thanks

    To check memory usage:
    Launch Activity Monitor, located at /Applications/Utilities.
    In the Activity Monitor window that opens, click the 'System Memory' tab.
    From the Activity Monitor menu, select View, Dock Icon, Show Memory Usage.

  • Delegate control, how can I find out which one is being used?

    I am working with some mysites customizations and came across a delegate control. How can I tell which control SharePoint is currently pointing this delegate control to?  If someone already swapped it out, how would I know?
    <SharePoint:DelegateControl runat="server" ControlId="ColleaguesLink1" Scope="Farm" />
    What does ColleaguesLink1 currently point to?  What did it originally point to?

    This blog post may get you started (same applies to SharePoint 2010):
    http://usingsystem.wordpress.com/2008/04/11/sharepoint-delegatecontrol/
    I hope this helps,
    Regards,
    Yuri Lausberg, MCP, MCAD, MCSD, MCTS, MCPD

  • TS4006 Can someone wipe and use my iphone that was stolen and if so can apple tell me if phone is being used

    Can apple tell me if someone else is using my iphone if so can they give me the phone number as I have suspicions

    Yes - your phone could be wiped
    No - if you enabled find my iphone lock and running at least IOS 7 your phone can not be used but can be sold for parts. Prices on ebay for activation locked phones you can search yourself.
    No Apple can't tell anything, it knows about your phone nothing, zilch, zero.

  • HT1414 After Voice over, opening code will not open ipad2 owing to not recognizing security code so remains locked have reset programmes but still does not work. How can I clear please my code was 2121 but will not open now?

    Hi, after turning on Voice over and then turning off the i pad 2,  I found that it would not turn on again as the locking code which always worked  till now,  2121 is not recognised. A voice can be heard when trying to enter the 4 letter code stating the letters
    I have tried to repair programme by resetting several times and also downloading i tune software as suggested by your advice centre but the i pad remains locked
    Please can you tell me how I can resolve this issue?
    Thanks  Derek Brown

    If it's slow on startup it would be extensions loading or LaunchDaemons starting up. 
    You should have a look in:
    /Library/LaunchDaemons
    /Library/Extensions
    You can count out anything in your home folder and it shouldn't put anything in /System as that's reserved for Apple. 

  • How can you tell if your drive is 7200rpm model or not?

    I just received my new MBP via FedEx - so far, love it. I bought the 2.53 version and upgraded the hard drive to 320GB at 7200rpm. I can't for the life of me figure out how to see in my settings if this is in fact the 7200rpm model or if it's the 5400rpm model. I just want to make sure I'm getting what I paid for. I opened the back up and the drive itself doesn't say it's running speed. When I pull it up in finder it doesn't say. So how can I find out?

    Just got my new MBP via FedEx this afternoon.
    I ordered the 320GB HDD @ 7200 RPM. It is the same as noted above. It is the $50 upgrade that Apple offers. Standard drive is 5400 RPM.
    All drives that Apple offers are Serial ATA (1.5GB/s), none are SATA II (3GB/s). The only difference is in RPM. (5400 standard vs. 7200 upgrade)
    Curiously the nvidia chipset is 3GB/s capable. Strange that 3GB/s support is not offered.
    To answer OPs question, yes, the drive is 7200 RPM.

  • TS4006 can i tell if my Itouch is being used if it is stolen?

    Is there a way to see if the device is being used and if so where?

    Welcome to the Apple Community.
    You can only locate your device when it is logged into iCloud and 'Find My Phone' is enabled, additionally the device will need to be switched on and connected to a wifi or cellular network.
    Unfortunately, you cannot activate iCloud or 'Find My Phone' remotely.
    If the device is wiped by you or another, you may not be able to locate the device (although some have reported they can)

  • How to check if an SQL profile is being used or not?

    Hi,
    We have a couple of SQL profiles and outlines in the database. There has been a couple of code changes and it is now difficult to keep track if an SQL profile or an Outline is still being used? Is there any way to find that?
    Thanks in advance

    Find the entry corresponding to the SQL statement you are reviewing in V$SQL. Look at OUTLINE_CATEGORY and SQL_PROFILE columns. NULL indicates that no Outline/Profile was used.

Maybe you are looking for

  • Messages stuck in OAI schema

    Hi, Adapter is up and running but 3k messages are stuck in OAI tables and are not published to the adapter. Records exist in messageobjecttable and aotable. Stopping and starting adapter doesn't reslove this - bouncing db doesn't either. I can publis

  • Problem in orders idoc

    Dear xperts, There were some orders idoc for a company where the company name is being changes by some buddy. i:e  In stead if NAME1 it is displaying NAME2 now from t001w table. I have to find out where it is being changes  and who has done the chang

  • How do I delete apps on iCloud?

    I want to erase the apps from iCloud.

  • Conversion of Actuate Reports to BI Publisher

    Hi, Is there anyone who has converted Actuate reports to BIP ? I will need some help. Thanks, Vandana

  • Satellite P755 random shut down problems

    Hi, I just bought my laptop couple of months ago and haven't really been using it much since. So it doesn't have more than 100 working hours. Couple of weeks ago I started experiencing this strange problem with random shutting down. There is no rule