How can I get the jar location of a class (the -Xbootclasspath case)?

Hi
I'm using -Xbootclasspath/a to append a jar into the "ring 0" of VM. Inside my class, I want to find out the location of the jar so that I can find other resources that's deployed along with it. How can I do that? I try the standard getProtectionDomain().getCodeSource().getLocation() way but it seems a class in bootpath returns null at the second method.
Currently I have to manually feed the path into the app using an environment variable, but I'd like to know if there's a better solution.
Thanks
Weijun

This is not exactly the answer that you are looking for but If your are interested into the BOOTCLASSPATH value, you can get it with JMX.
RuntimeMXBean mx = ManagementFactory.getRuntimeMXBean();
System.out.println("BOOTCLASSPATH:\n"
     + mx.getBootClassPath());Bye.

Similar Messages

  • How can I get iTunes to locate and play all my music files?

    How can I get iTunes to locate and play all my music files?

    I have this problem too. I am researching now. Here is what I know so far. If you right click a song then get ifo the it will say Protected AAC or purchased AAC. Protected wont play on sonos, purchased will play on sonos. It seems that all my protected were purchased 2005 to 2009 or so. I am trying to find out if apply will convert these for a small dfee or if I use the itunes cloud these tunes will convert for me. downloading and reloading is not an option for me. Pretty much a money grab by apple either way. I am sure Steve is smiling.

  • How can I get CR287255_810sp6.jar patch?

    Hello everybody,
    Do you know how can I get CR287255_810sp6.jar patch for WebLogic 8.1 Service Pack 6?
    Thanks in advance!
    Ivan.

    user8922940 wrote:
    Hello everybody,
    Do you know how can I get CR287255_810sp6.jar patch for WebLogic 8.1 Service Pack 6?Use your support contract to log on to Oracle Support (http://support.oracle.com) and access the Patches and Updates tab.

  • How can I get all tracks from an album into the album in my library?

    When importing the albums from a folder, the tracks for some of the albums were split up.  How can I get them in one?

    Hello JudyD276
    The article below will give the steps to get the songs grouped together for you.
    Why aren't songs with the same album art grouped together?
    http://support.apple.com/kb/TS1468
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • My friend synced a video to my ipod but it erased all my data on my ipod,but i cant figure out how to load my old libray back without deleting the movie. my friend cant tell me the password. How can I get my old library back without deleting the movie?

    My friend synced a video to my ipod but it earased all my data on my ipod,but I can't figure out how to load my old library back without deleting the movie. My friend shares a family account so she can't tell me the password. How can i get my old library back without deleting the movie?

    Linnwarner wrote:
    She does have the right because she bought the movie.
    Not true at all.
    You only buy the right to your own personal use.
    You do NOT have the right to distribute to others.
    This is illegal.  There is no doubt about it

  • How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them

    How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them. They have a ton of books but I can only listen to them from my windows media player and I wouldlove to download to my I pod but I have tried everything I can think of it they won't go over.  Someone said all I had to do was copy them over and they would convert but I can't even get them to copy.  Thanks.

    Well it started happening AGAIN with my 2nd IPod. No matter what I did, it Itunes would NOT restore it!
    I finally installed Itunes on my hubby's PC at work and managed to get it restored there.
    Apparently, there must be some sort of compatibility issue with the windows version of Itunes and some other piece of software on my pc.
    And one more important thing! I had to follow the instructions in the other thread that talks about how to correctly uninstall itunes and quicktime, in order to completely eliminate ALL traces of my "first" ipod's existence so it wouldn't demand that I restore it.
    I think the software got "confused" and thought when I connected my 2nd ipod, that it was the 1st and that it still needed to be restored.
    Basically, this is just POORLY written and POORLY tested software!

  • How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in?

    How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in? This application must be in Lab View 8.

    you mean something like this (see below)?
    Now you may have to implement code to check if the destination folder exists and to create it, etc.  But if you use the Front Panel Control to select the destination folder, it should be okay.
    Not the best implementation, mind you but you'll get the idea..
    Message Edited by JoeLabView on 04-18-2007 03:43 PM
    Attachments:
    copy folder contents.PNG ‏10 KB

  • HT1338 How can I get my photo to work again? the app will not open on my desk top any more. I can not dave my photo on my desk top

    How can I get my photo to work again? the app will not open on my desk top any more. I can not dave my photo on my desk top

    Hello, Cubby21. 
    Thank you for using Apple Support Communities.
    Here are the best resources for troubleshooting issues with Message.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Cheers,
    Jason H.

  • How can I get a list of active savepoints for the current session?

    Hi,
    In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
    "Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"
    So how can I get a list of active savepoints for the current session?
    Could you please also let me know if there is any better way to debug this issue.
    Appreciate any quick response as the issue is very critical.
    Thanks,
    Soma

    user776523 wrote:
    Hi,
    In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
    "Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"It sounds like there's an execution path in the code where the SAVEPOINT is never issued.
    There is no way to get a list of active savepoints. Is this your code or a "canned" procedure? If it is your code you can go through the code looking for answers, possibly tracing execution using DBMS_OUTPUT.PUT_LINE or writing messages to a log table. If its a "canned" procedure you may need to open an SR with Oracle

  • When I try to activate my cs 3 premium production, I get a message saying NO CONNECTION. Everything is in order though. How can I get an activatioon number other then trough the web??

    When I try to activate my cs 3 premium production, I get a message saying NO CONNECTION. Everything is in order though. How can I get an activatioon number other then trough the web??

    Sign in, activation, or connection errors | CS5.5 and later, Acrobat DC

  • When printing two-sided from my Mac on landscape A4 with 2 columns, how can I get my HP Photosmart 6520 to print the same way up?

    When printing two-sided from my Mac on landscape A4 with 2 columns, how can I get my HP Photosmart 6520 to print the same way up?

    Or, it is set the other way around (which makes more sense). Even though you are in Landscape mode, it is binding on the Long Side of the paper. Since you are in Landscape, you would want it to bind on the short side.
    Think of the Binding like a Book. How would you flip the finished pages to read the “book.” Where it would be bound in the imaginary book is how you want it to print.

  • My Mountain Lion app failed while downloading, and now I can't download it without repaying for it.  How can I get my access code to work/download the app?

    My Mountain Lion app failed while downloading, and now I can't download it without repaying for it.  How can I get my access code to work/download the app?

    Welcome to Apple Support Communities
    Open App Store, select Account in Quick Links and press Show hidden purchases. If OS X isn't there, http://www.apple.com/support/mac/app-store/contact

  • How can i get my keyboard to be recognized by the imac?

    how can i get my keyboard to be recognized by the desktop imac?

    Hello emanson805,
    Thanks for using Apple Support Communities.
    If you need to set up your Apple Wireless Keyboard with an iMac, then please follow the directions below.  Please note that if the keyboard was previously paired with another device, you will need to unpair it before being able to pair with your iMac.
    Bluetooth: How to set up your Apple Wireless Keyboard - Apple Support
    Have a good one,
    Alex H.

  • How can I get my safari to open after installing the new Mavericks operating system?

    How can I get my safari to open after installing the new Mavericks operating system?

    Thanks Carolyn. Unfortunately, this didn't work. It turned out to be in my display monitor as I have my computer wired to my tv for streaming. Once I changed the monitor display it worked fine. Go figure

  • How can I get my iPhone to show up on the panel to the right iTunes? I keep connecting it but it does not work.

    How can I get my iPhone to show up on the panel to the right iTunes? I keep connecting it but it does not work.

    http://support.apple.com/kb/TS1538

Maybe you are looking for

  • Play count on one song didn't register today?

    Hello, Play counts are very important to me for a few reasons, but today I listed to the same song at least 4 times today at work and when I synched my iPod with iTunes the song said "Last played - 7/5/07" when clearly that isn't the case. I do know

  • Horizontal scroll bar in OAF

    HI All, I have a requirement to display the table columns through horizontal scroll bar in OAF. please help me on this Regards Deb

  • Strange "unsupported format" error with jpegs

    I'm trying to help a friend who is running the most recent version of Aperture 3 (all updates installed). When we import a single jpeg from her hard drive, it comes into Aperture with the "unsupported format" icon and an exclamation mark where the pr

  • Motion tracking and chroma key

    I shot a webmercial and during the product demonstration (on an iphone) the screen of the application is very close to the color of the green screen. I am having a hard time keying due to the similarity in colors. I duplicated the clip and created a

  • Estimation of database size

    Hi, How can I estimate the database size required for a Netweaver system? I am installing a new system with ESS and MSS. And what is the rate that this database will normally grow? Appreciate any reply. Thanks, Tzyy Ming