Is there a way to tell if you are in Web Start or Standalone mode

Hello,
I am working on a program that can be ran either in Web Start or Standalone mode. Is there a way I can tell inside the code which mode I am in?
The reason why I ask is because if I am in Web Start mode I store files using the PersistenceService api... but of course this will not work in Standalone mode. So in Standalone mode I want to just store in working directory.
thanks
jose

Check for presence of security manager.
In webstart mode your code will run in the sandbox (even if it is singed security manager will be installed).
Or you can simply use class for name to lookup for PersistanceService. It is not on the default classpath for standalone application.

Similar Messages

  • Is there a way to tell which apps are using data while on WIFI?

    Hello,
    I have just purchased an iPad Air 2.  I use my phone as a mobile WIFI hot spot to connect to the internet when I do not have a regular WIFI connection available.  151 MBs of data were consumed over an hour and a half or so.  I played about an hour of Hearthstone, but I know from tethering my phone to my laptop that it usually doesn't use anywhere near that amount of data.
    I would like to track down which applications might be using the data so that I can avoid using them while connected to my phone.  Is there any way to do this?

    Thanks for the quick response.  That's a little disappointing though.  Is there an app on the store?

  • TS1398 Is there any way to see if you are connected via 2.4GHz or 5GHz on the iphone5?

    In an area where there are multiple wifi connections, is it possible to see if they are 2.4GHz or 5GHz (or both)?

    Yeah, which is helpful if they have id'd their SSID's labeled to id it somehow, but I'd like to be able to see what kind of connection I am getting.  I'm doing a job where it would be nice to be able to see this info.
    Thanks.

  • Is there any way to tell which formulas a particular cell is in, reverse look-up style? That is, is there a way to search somehow for which formulas in a sheet contain a particular cell in them without opening all of them up? If not, it would be nice

    Is there any way to tell which formulas a particular cell is in, reverse look-up style? That is, is there a way to search somehow for which formulas in a sheet contain a particular cell in them without opening all of them up? If not, it would be nice.
    I'm fixing a Numbers document that I use in business daily that's become overly complicated, but while I want to clear/delete a number of cells in it to clean it up, I'm not sure if those cells are being used as source for other formulas on the page. I don't have to open all my formulas one by one to see if that cell is in there, do I?! That'd be a huge amount of work if I wanted to eliminate say 10 cells to search each formula on the page to see if it is in there or watch all the cells when I delete that cell to see if the numbers change! There's got to be an easier way! Right click doesn't seem to be any help.
    I don't want to damage my daily tool to make it cleaner and reorganize it. Is there really no way to do a reverse look-up of which formulas a particular cell is in?! Any time I click on a formula it highlights all the CELLS in that formula. Why can't I (or can I?) do the reverse and see all the FORMULAS that contain a particular cell?
    As a Numbers document ages or gets used frequently, you can sometimes forget which cells are tied to which formulas. You just look for the results of your formulas. Would be a nice thing to be able to do. Thoughts? Work-arounds? Answers?

    Answer would be no unless application provided such feature. Numbers does not as far as I know.
    Note that even if you have complete list of formulae used in a table, identifying formulae referencing any given cell is not simple.
    E.g., cell T20 is referenced not only in
    =T20+1
    but also in
    =SUM(T)
    =SUM(20:20)
    =SUM(S19:U22)
    =OFFSET(S1,19,1,1,1)
    =INDIRECT("T"&(10*2))
    In order to identify such formula, we have to actually evaluate it to see if it references the given cell. Especially such formula as OFFSET() and INDIRECT() may not be found by static parser because their parameters can be dynamic.
    Sorry to be the bearer of bad tidings.
    H

  • Is there a way to tell what is actually being passed to DB from PreparedSta

    Is there a way to tell what is actually being passed to DB from PreparedStatement? What I mean by that is that I have a PreparedStatement that is a simple
    prepstmt = connection.prepareStatement("Insert into table (col1, col2, col3, .... colx) values (?,?,?....?)");
    (there are x ?s)
    I precompile this, and later, when there is a connection I call set all the variables
    prepstmt.setInt(1, someint); prepstmt.setString(2, "\\'" + somestring + "\\'"); etc... prepstmt.executeUpdate();
    I get back an exception thrown by Oracle complaining that one of my values is too large for the column (but doesn't say what column/value).
    So I made a string that contains what ought to be the same query
    String debug = "Insert into table (col1, col2, col3, .... colx) values (someint,'somestring',etc....someotherint)"; System.out.println(debug);
    I give the printed out line directly to Oracle through SQLScratchpad and it works just fine in there and I can confirm the row has been inserted. Nothing is too big.
    Is there a way to look at what the PreparedStatement actually has as values in there? I found I could look at the original statement (the one with the ?s) if I expand the prepstmt object in the debugger's (Eclipse) view, but nothing to show me where the values were filled in.
    Thanks for any help you can give me.

    Hrm, I'm suspecting that perhaps it has to do something with setting CHAR fields. Some of the fields in this table are CHAR but I don't see a call in my PreparedStatement that can set a char, only a String, so that's what I've been using, but it may be that that's not the right thing to do. I'm running Java 1.5.10, and looking through the API there doesn't seem to be anything specifically for char.

  • Do I need to be worried?  Is there a way to tell if I have a bad MacBook?

    Hello all,
    I just picked up a used MacBook Pro from a friend for $650. It is within the dates that there was the issues with the video chipsets from NIVIDIA. This notebook was not used that extensively, I don't think, so I am not sure if I am in the clear regarding this issue or not. Is there a way to tell if this MacBook is covered under he known issue even though it is beyond all coverage. It notes that if the issue appears within the 1st 4 years of purchase, it will be covered. Is this the best that they can do? Or can an apple guy run something on the system, or look up my S/N# and tell me if I have a notebook with the issue?
    Reason I ask is to known whether I need to use this for the purpose I bought it for, or if I can rely on it as my main notebook as well.
    Thanks for all, or any, help that someone on here can be. Love this notebook (and only had it for a few hours), but just wondering how much it can be trusted, or if there is a way to know.
    Thanks you guys...hope I will be welcomed to the MAC club, as I have NEVER owned a MAC until now!
    Message was edited by: traitor

    Hi t,
    traitor wrote:
    Hello all,
    I am not sure if I am in the clear regarding this issue or not.
    You won't be sure until the day you stop using it or it develops issues.
    Is there a way to tell if this MacBook is covered under he known issue even though it is beyond all coverage. It notes that if the issue appears within the 1st 4 years of purchase, it will be covered.
    Correct. NVIDIA issue
    Is this the best that they can do?
    At this point, it is what it is. Anything beyond this would be at Apple's discretion, on a case-by-case basis.
    Or can an apple guy run something on the system, or look up my S/N# and tell me if I have a notebook with the issue?
    You've already noted that your MBP falls within the range. It does have the GPU that may develop the issue. If the issue is occurring now, their test will show it. If the issue is not currently occurring, the test will not show it. The test tests whether or not the issue is occurring, it's not a predictor as to if/when it will occur. Some GPUs within that range will not develop the issue.
    Reason I ask is to known whether I need to use this for the purpose I bought it for, or if I can rely on it as my main notebook as well.
    I would feel comfortable using it as my main computer (I have a MBP that also falls in that range), but this computer or any other in the world could develop issues at any time. I backup frequently and in different ways and strongly recommend that you do, and everyone else does too. Every HD will die at some point in ongoing use. Some will take seconds, some years. Some will give notice, some not. Some will leave platters with recoverable data, some will have the platters gouged by failed heads, with little to no recovery possible. The only safe computing is by backing up data (and although I've never had to resort to it, having a second machine available; I keep most of my "old" Macs, so if my "main" machine would ever go down, I can just grab my data from a backup and keep going).
    Thanks for all, or any, help that someone on here can be. Love this notebook (and only had it for a few hours), but just wondering how much it can be trusted, or if there is a way to know.
    Heat is a big enemy of electronics. Monitor periodically with iStat Pro. Fans should speed up long before CPU hits thermal shutdown range of 100C.
    Message was edited by: tjk

  • 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.

  • In the Lync Database, is there a way to tell if a call has been answered or gone to voicemail?

    We are using Lync 2010.
    In Lync, if a call is not answered, and does not go to voicemail, is anything recorded in the Lync database ?
    It looks to me as if nothing is recorded in the database, but I was wondering if there is an option in Lync configuration to make Lync record such activity in its database.
    Is there a way to tell from the LYnc database if a call was answered by a person or went to voicemail
    I have been looking at the LCSCDR database, at the sessionDetails table, but cannot see a way of distinguising between these scenarios.

    Nothing is recorded if the call is not answered and does not go to voicemail.  This is a source of frustration for me, and there is no way that I'm aware of to record this information to the LCSCdr database.
    To see if voicemail answered, you want to look at the client version that answered the call, voicemail will say ExchangeUM.  You can see me messing around with this in the below example, pulling from SessionDetails.User2ClientVerId and matching against
    the ClientVersions table.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • HT201317 Is there a way to tell when a photo in your photo stream was taken?

    Is there a way to tell when a photo was added to photo stream. How do photos appear on photo stream? Are they downloaded from my iPhone when I save a picture that was texted to me? Do they then go right into my photo stream?

    Photos added to camera roll are added to your photo stream (when the camera app is closed, you are connected to wifi and you have at least 20% battery life remaining).  When you save a photo from a text message it is saved to your camera roll, and is therefore also added to your photo stream.  You can't, however, tell when such a photo was added.

  • HT4972 is there a way to tell which computer an ipad syncs with?

    I have tried to sync and update my ipad on my family's 3 different mac's, and i get a dialog box on each saying to sync with the computer you normally sync with.  i am pretty sure it is one of these three mac's.  Is there any way to tell which computer an ipad is syncing with?  Or how to tell which apps are backed up and will remain after the update?  thanks

    No.

  • Is there some way to tell lightroom to just re-export the previously exported files?

    Shot a celebration (Park, Mass and Party), went home and processed the raw files in Lightroom, Exported them into 3 folders.
    Then I proceeded to edit the files in photoshop, first folder that consisted of the park went well. Files looks great, even after compressing them again.
    Then up were the Mass pictures and that's where it all went down hill. When I loaded up the first image it was compressed to hell All the black areas were all pixelated, so I went into lightroom and sure enough it changed the quality from 100% down to 60%!
    All my other settings were the same so I didn't accidentally reset the whole thing. Not sure why or how Lightroom did this, I've had it on 100% for the past 2 years!
    Now I have to export them all over again, the trouble is there was 800 that I culled down to just 150. I really don't want to hand pick them all over again.
    Is there some way to tell lightroom to just re-export the previously exported files?

    The short answer: no.
    Lightroom remembers recently imported files in a collection, but does not remember recently exported files.
    That said, you could use the SQLiteroom plugin (free, by me) to round up a collection of *all* exported files, which might help.
    Rob

  • Is there any way to tell Airport to select the strongest network from saved networks?

    I have two routers in my house as both are fairly crap, and essentially I have one router for upstairs and one for downstairs (to be fair, my house is a few hundred years old and all the walls are massively thick granite so perhaps no router would negate this problem). This is a minor issue really, but is there any way to tell Airport, rather than simply having a list of networks to try in preferred order, to check which of the two networks has a stronger wifi signal when the mac is booted up or woken from sleep, and join that one?
    Don't mind doing it manually tbh, just curious as to whether this could be automated.

    Hmm, this is interesting. I actually didn't know this.
    From:
    http://www.macobserver.com/tmo/answers/4-wi-fi-tips-from-former-apple-wi-fi-engi neer
    "Apple devices choose networks by your preferred order. Period. If you have multiple networks of different names your Mac or iPhone will always choose the first in your iCloud-synced "Preferred Networks" list even if this one isn't going to give you the best bandwidth. If you have the network name/SSID the same then it will chose the radio that it predicts will give the best throughput (which isn't always the one with the best signal, but that's an even geekier discussion you can hear in the show). Make all the Wi-Fi networks in your home the same. Your life will be better for it."
    Maybe I've been working on too many PCs over the last 5 years.

  • Wireless sync only works when I unlock phone. Is there a way to tell itunes my phones unlock code?

    Wireless sync only works when I unlock phone. Is there a way to tell itunes my phones unlock code? Itunes tries to sync all night and posts 50 unknown errors. I unlock the phone and it syncs. I dont want my phone sitting around without a lock code but with wireless sync I cant find a place to tell itunes my code so it can sync? Any help is appreciated... Ray O

    I have the same problem. I am forced to have a PIN set on my devices because I use my corporate exchange email and sync over wi-fi initially fails until I manually unlock the phone/ipad.  #ckuan needs to read the words wiritten.  We know how it's supposed to work but it won't start until you enter the PIN. Until then I get error messages saying either it cannot find the phone or explicitly telling me I need to unlock it.

  • 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.

Maybe you are looking for

  • IPhone 4 (5.0.1) Won't Sync with iTunes

    I am not new to iPhones or Macs, but I can't figure this one out. My iPhone refuses to sync with iTunes on my MacBook Pro. iTunes rushes through the first 3 steps, hangs on step 4 (deciding what to sync) for a couple seconds, then briefly displays "c

  • My iMessage does not recognize my phone number under "send and receive"

    I had to restore my iphone and now it is unable to connect to iMessage. It says "waiting for activation" and then it will fail. Under send and receive, my phone number appears to be clicked on, but does not have the check mark next to it.

  • SCCM 2012 - Component Status

    Hi Experts, I need your kind advice, In SCCM 2012 console under monitoring - component status - SMS_SITE_SQL_BACKUP_XXXXXXX for primary site server is in failed status and there is no status message logged. Is there any way we can make this component

  • How to create subproject & Object for LSMW

    How to create subproject & Object for LSMW

  • Newsbie on HETEROGENEOUS conection

    I'm a nesbie on ORACLE and I try to make a databse link with INFORMIX SE 7.3 I understand that I must use a HETEROGENEUS connection; I study the documentation but that are a lot of configuration files : can any one help me indicating wich are the fil