Is there a way to tell the dir location of a class?

Good day.
I have a desktop application and I want it to save information to files located in the directory where the class is started.
example...
c:\myStuff\java java -jar myJar.jarThe program starts but is there a way within the program to tell where it started from, the mystuff\java location.
I have listed all of the system properties but thay all reference the location of the java executable?
Any ideas?
Thanks.

hmmm... I'm not sure how you can get the exact filepath where it's running, but it seems like if you only want to save stuff there to just make your files with relative filepaths/names rather than absolute filepaths. On that note (come to think of it) you could make a file with a relative filename and then call "getAbsolutePath()" on that file (of course that would be answering the question after solving the problem)

Similar Messages

  • Is there any way to tell the differences between auroras or betas?

    There are various arouras and betas released during each rapid release cycles.
    Is there any way to tell the differences (changes/fixes) between auroras or betas?
    bugzilla can only tell the target for landing but not releases for some of the changes/fixes ...

    The Beta builds of a version has about six to twelve with nine being the average in last while until the 34.0 Betas. For Aurora which now currently called Developer Edition has checkins almost everyday so therefore there are updates each of those days.
    For Beta builds you can look at http://release.mozilla.org/ and http://hg.mozilla.org/releases/mozilla-beta/
    For Aurora you can look through http://hg.mozilla.org/releases/mozilla-aurora/
    If you want to be a Tester then perhaps http://forums.mozillazine.org/viewforum.php?f=23 may be of interest as many Testers hang out there.

  • My iPad was either stolen or lost and was in my luggage.  Is there a way to tell the last time it was turned on.  If so this will tell me if anyone has it.

    My iPad was either stolen or lost and was in my luggage.  Is there a way to tell the last time it was turned on.  If so this will tell me if anyone has it.

    If you have an iCloud account and Find My Device was enabled on the iPad, you could try to find it using the iCloud.com web site. Otherwise there is no way to find it.
    You need to change all your online passwords immediately; notify the airport at which it went missing from your luggage (assuming it was at an airport); notify the police; notify your insurance company so you can get reimbursed and buy a new one; move on.

  • Question:-Is there any way to disable the installation location/folder of da Adobe AIR Application?

    Is there any way to disable the installation location/folder of the Adobe AIR Application or can we skip that part automatically?

    xmlns:mx="library://ns.adobe.com/flex/mx"  is the spark mx address, which is completely different than the original 2006 mx library. 
    The thing is:  I love AIR, hate spark, loved the 2006 pre-spark functionality.  It is so much more convenient and user friendly.  Given the choice between having the display seperate from the  processing, or having it be convenient and easy  to work with, I choose the later option.
    For the most part it seems like the AIR api is like a layer on top of the spark - flex system..   I would like to be able to over lay the same AIR functionality on top of the the old system....
    Possible or no?

  • TS4006 My kid misplaced her iPad, we can't find it for almost three months already. It is connected to our other iDevices by 'Find My iPhone/ Mac' and the iPad show still offline until now. Is there any way to find the last location before it was off ?

    My kids misplaced her iPad, we can't find it for almost three months already. Check using 'find my iPhone' it show the iPad still OFF. Is there any way to find it last location before it was OFF ?

    Simply stated that is design. If you want to suggest a change, there is a feedback section elsewhere on this site.
    Barry

  • (iPhone SDK) is there a way to tell the _size_ of the touched area?

    I have an app idea that would require me to be able to tell not just where you touch your finger on the screen but how big of an area is being touched. I know this is not possible using the official SDK but is there a way perhaps using some private frameworks? I am sure some part of the hardware knows about this so there ought to be a way. If anyone knows, would be greatly appreciated.

    Settings > General > About >  Look for ''Capacity'' and ''Available'' under ''Application''. It should tell you how many GB there is available on your iPhone.
    If you want to clean it completly to sell, you just need to go in Settings > General > Reset (at the bottom) > Erase all Content and Settings.
    Then you're ready to go!

  • Is there any way to tell the last date my ipod was plugged into my computer?

    OKay, this may be a techie question, but I'm pretty savvy so if this info is contained in a file somewhere, you can feel free to explain how to find it, I can look for it.
    i Misplaced my iPod nano at some point in time, and knowing the last date I synced it to iTunes or even plugged it in would be HUGELY helpful in helping me to maybe locate it.  IS there any way to see this information (the date specifically) anywhere on my computer dated in any file?
    I Did look at devices and the iPod wasn't listed there, (only my more recent iPad and iPhone as backups) so I'm assuming maybe this wasnt an option in earlier versions of iTunes at least when I last had that sucker plugged in.
    IIt's Moreso just killing me that I can't find it, and I KNOW it's one of a few places.
    ANy help is great!
    thanks!
    ROb

    Go here for instructions.
    iFixit: The free repair manual
    If your iPod got wet, put the whole iPod in a bag/container of rice and see it and leave it for days.
    How to fix a wet iPod or iPhone | eHow.com

  • I have my audio files saved as AIFF, is there any way to tell the iTunes match to play back 256 version instead to save on cellular data use?

    I have been using the match for about 5 months and it's very cool to have all the tunes with me at all times.  But, my ATT 'unlimited' data plan slows down after a certain point and I can't effectively stream the big files I uploaded to the cloud until it resets the next month.  I get about 12-15 days of no problems and then the rest of the month I'm taking cd's in the car. 
    Help!

    Using iCloud Status you can see which Songs are uploaded.  These can be placed in a playlist and saved to audio CD - in addition copy the playlist content to an open folder on your desktop.
    Delete the Songs from your library & cloud; import the Songs as 256 AAC from CD; update iTunes Match.
    At your discretion you can delete the local Songs once more and add back the original files from your desktop folder.
    This way you have the original files for local playback and 256 AAC files in the cloud for download.

  • Is there a way to display the file location in iTunes?

    I have several external hard drives connected to my windows PC.   Over time, I have copied my music files (some I have ripped from CD's, and some I have copied from a friend's external drive) to 3 or 4 different locations, each of which is on a separate external drive.   Now, iTunes has gone out and pulled all of those files into my music.   As a result, I have 3 or more copies of many songs.  
    The only way I can see where they are located, as far as I know, is to right click on each song, go to Get Info, and look at the "WHERE" box at the bottom of the window.
    Is there a way for me to set the file location up as a field in iTunes?  What I want to do now is to move all of my music to one location, then delete duplicates, before backing the entire library up.
    Thanks in advance for any help you can give me!

    I use CoderPlus workspace & tabbed panels.  For me, the file url is on the far right side. See screenshot. 
    If you click the "Page Icon" in upper right corner to tile, the URL shows on the left side.
    Nancy O.

  • Is there a way to Point the Exact Location for an Error In an XML File?

    Dear Members,
    I am validating an XML File with an XML Schema. The XML Schema is in the Database.
    I am using presently isschemavalid to check for the validity of the XML File.
    But this is not showing where the error is there in the XML File.
    Is there any way where I can check this one...(Validation should happend only in the Database side)
    Regards
    Madhu K

    Read about advantages of [url http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb03usg.htm#sthref315]schemaValidate  method over isSchemaValid.
    Best regards
    Maxim

  • Is there a way to tell the difference between an attached file, and an image that is embedded in an email?

    When Outlook receives an email, it appears that attached files and embedded images are carried as Attachments.  In looking at emails and the individual attachments/embedded images with Outlook Spy, I do not see anything that would tell me which is
    which.  Obviously Outlook knows the difference ... is there something that I'm missing?mdpowers

    Hi Ken,
    In my code i have something like that:
    public static bool IsEmbeddedAttachment(Outlook.Attachment attachment)
    //Anexos que não são embedded são obrigatóriamente olByValue, porém os embedded podem ser de qualquer tipo
    if (attachment.Type != Outlook.OlAttachmentType.olByValue)
    return true;
    //Busca a propriedade contentID do anexo. Anexos embedded não precisam necessáriamente gerar um ContentID. Anexos fixos não geram ContentID
    string strATTACH_CONTENT_ID = attachment.PropertyAccessor.GetProperty(@"http://schemas.microsoft.com/mapi/proptag/0x3712001E").ToString();
    //Busca a propriedade contentLocation. Para que o anexo seja embedded é necessario que essa propriedade esteja vazia ou nulla
    string strATTACH_CONTENT_LOCATION = attachment.PropertyAccessor.GetProperty(@"http://schemas.microsoft.com/mapi/proptag/0x3713001E").ToString();
    if (!string.IsNullOrWhiteSpace(strATTACH_CONTENT_ID) || !string.IsNullOrWhiteSpace(strATTACH_CONTENT_LOCATION))
    //Busca a propriedade AttachFlag se for diferente de 4 é uma imagem embedded
    if ((int)attachment.PropertyAccessor.GetProperty(@"http://schemas.microsoft.com/mapi/proptag/0x37140003") == 4)
    return true;
    if ((int)attachment.PropertyAccessor.GetProperty(@"http://schemas.microsoft.com/mapi/proptag/0x37050003") == 6)
    return true;
    if ((int)attachment.PropertyAccessor.GetProperty(@"http://schemas.microsoft.com/mapi/proptag/0x37140003") == 4)
    return true;
    return false;
    And was working very well until last week. 
    I have a problem with a single email. This email attachments possess 2 PDF type files. These files are not embbed in the email, but they have the contentId property. Could you tell me why? or if its possible discovery why this happens?
    PS.: Sorry about my english.
    Att's,
    Anderson Rissardi.

  • Is there a way to clear the list of "synched items" from phone?

    Please read the list of things I've done so far before responding with basic stuff.
    My iphone 4 was just updated with the latest firmware, 7.1.1. Full backup was done prior to upgrade. Subsequently, everything was wiped from the phone. Restore brought back a limited amount of apps and all pictures, but no music and no video. The Restore process displayed each file that should have been restored, but when completed, no music or videos were. restored. I tried again to restore with the same results. Tried syncing a few time and nothing was transferred.
    Frustrated as ****, I added a song to be synced. That song and only that song was synced. Short of deselecting and reselecting everything that I want on the phone, is there a way to tell the phone that nothing has been synced and to resync everything without verifying if it exists on the phone?

    You will find that by pressing the option key when you are in the File menu, that Duplicate changes to Save As… .

  • Is there a way to tell when an app was added to login items?

    Is there a way to tell the exact date when an app was added to login items? (eg. through terminal or console?).
    TIA

    No. Login items are created when you add an app through
     > System Prefs > Users & Groups | Login Items
    and is a list specifically used for running and app on login to a particular users account (not boot in general). At least AFAIK, this has nothing to do with installing the app to the system.
    I'm writing a bash diagnostic script which needs to call this info.

  • My ipod touch is currently running ios 4.2.1 I would like to run ios 5 or 6. When I try to update it on itunes, it tells me my software is up to date. Is there another way to upgrade the IOS?

    My ipod touch is currently running ios 4.2.1 I would like to run ios 5 or 6. When I try to update it on itunes, it tells me my software is up to date. Is there another way to upgrade the IOS?  Do I have to go to Settings>General>reset>Erase all content and settings before I can get the newer ios?  If this is the case, how can I ensure all my content is backed up prior to erasing it all. Is there anyway to check to ensure the backup is complete and comprehensive?  THanks!

    A second generation iPod touch can't be updated past 4.2.1.
    (88824)

  • I am syncing my iPhone now, and step 6 of 6 is taking significantly longer than it usually does. Is there a way to tell how long it will take, or complete the process?

    I am syncing my iPhone now, and step 6 of 6 is taking significantly longer than it usually does. Is there a way to tell how long it will take, or complete the process?

    Warp Stabilising is a two part process.
    Analysis and Stabilising.
    Both have a banner across the Program Monitor during the process ( unless you have turned that off.
    Analysis start automatically on forst application...but you can rock in there and start adjusting the parameters.
    You may need to hit "Analyse" Button again.
    You should see the number of frames and the estimated duration during this process.

Maybe you are looking for

  • Line chart will not drill down

    I am doing a drill down Group report which will show the Sum of Last year's Sales By Country, State and city over a period of time(by date) for throughout the year 2007. Every group will have a line chart with Data title as Sum of Last year's Sales (

  • Condition Type Groups - Rebates

    Plz make me understand d use of the "Condition Type Groups" with example. The F1 help n stuff on SDN has already been checked, some1 who has worked on rebates will b able 2 xplain better d xact need of "condition type groups" e.g sometimes v have onl

  • Re: having a bean go from page to page

    I have a bean that I put information into on the first page, it retrieves data from a database when the user clicks submit, and then the next page should pull the information from the bean, to set the text fields. <jsp:useBean id=".." class=".." /> d

  • Problem applying patches on Sol10

    I must be doing something guffy but can't figure out what... I am trying to apply patch on Sol 10x86 box. patchadd is failing siliently with no indication on what might be the problem. I tried on two different machines with identical results. Any ide

  • Emails Disappeared

    Hi everyone, I'm having an issue with emails that have disappeared. The emails are from March 2007 to May 2009, but the problem was put to my attention a few months ago. This happened sometime after a webhost switch back in May 2009. We managed to ba