is there a way to tell if you are using Web Start or standalone

Hello

I'm working on a program that can be run in stand-alone mode or Web Start. Is there a way I can tell the code inside how I am?

The reason why I asked is because if I'm in the Web Start mode I store files using the api PersistenceService... but of course it won't work in stand-alone mode. So in stand-alone mode, I just want to store in the working directory.


Thank you
Jose

Try System.getSecurityManager)
Or check if you can do something that is not permitted in the sandbox and catch System.exception. Read for example "unsafe" property

Tags: Java

Similar Questions

  • Is there a way to tell when the bin was emptied last?

    Is there a way to tell when the bin was emptied last?

    Open a new Finder window. The display in the FInder menu, select Customize toolbar... Drag / move the icon to get information from the right toolbar on the left of the existing action button. Click done in the personalization Control Panel and close the window of the Finder. This Get Info button will also be useful for selections of files.

    OS X does not connect to an event to empty the trash. You can click on the trash icon in your Dock, and if the Recycle Bin has been emptied recently, you'll be watching an empty Finder window. Now, you can click on this button to obtain information about the toolbar, and the displayed change date will be when the Recycle Bin has been emptied. If you add more items to the trash, this date modifed will be when the last element has been added.

  • Is there a way to tell what 'effects' I applied to a chart? I need to go back

    I need to go back and change the effects, I applied to one area of the logo, is there a way to tell what the effects were originally? It would be useful to know if I'm not too greatly changing

    Thank you

    If you haven't used something later as decompose the aspect that has removed the original appearance.

  • Is there a way to tell if a virtual machine was created using the LSI or BusLogic SCSI device?

    Is there a way to tell if a virtual machine was created using the LSI or BusLogic SCSI device?

    No worries, you can try going to the virtual machine and looking for an online .vmx file such as - scsi0.virtualDev = "free".

    I shot on a vmware workstation VM, don't know if it's exactly the same vmware server, but is worth a visit.

    • Kyle

  • Is there a way to the target url by using the power of Attorney (I want to say is possible to use the proxy to target a site something like that.)?

    Is there a way to the target url by using the power of Attorney (I want to say is possible to use the proxy to target a site something like that.)?

    By default, you can not in Firefox.

    But you can use an add-on like FoxyProxy Standard, I think he understands the functionality you need.

  • I put 240 photos in an InDesign document using mini bridge.  Is there a way to hide the photos I used after I have put in my document?

    I put 240 photos in an InDesign document using mini bridge.  Is there a way to hide the photos I used after I have put in my document?

    I think Willi, and I even read your question differently. I thought you wanted to hide the images in Mini Bridge once they have been placed in InDesign so that you could keep track of those who you have (if you put twice the same image). If you want to hide in InDesign (as Willi read the question), his suggestion is very good. Another alternative is to use the shortcut to hide (command 3 on Mac OS), after putting the images, but before you click next to deselect them.

    I do not use Mini Bridge, so I can't help you there. If you want to use the full version of the bridge, you can use a Move command to move the selected items to another folder (temp), where they will not appear in your current folder. You can move after that that they all were placed. A bit of a hack, but it could work.

  • Is there a way for my images which are links NOT to be preceded what color I put my links in my page properties?

    Hello.

    I put my links to be black in my page properties.  I have somes pictures that I use for the links and I don't want to have a black box, tracing their plan.  It's wasting my design and tables.  is there a way for my images which are links NOT to be preceded what color I put my links in my page properties?

    See attachment.

    Thanks for sharing your knowledge with me.

    Gina

    If you would like your unbound images must have a border and remove only the border of linked images then this css:

    an img {border: none ;}}

    -- 
    
    E. Michael Brandt
    
    www.divahtml.comwww.divahtml.com/products/scripts_dreamweaver_extensions.phpStandards-compliant scripts and Dreamweaver Extensions
    
    www.valleywebdesigns.com/vwd_Vdw.aspJustSo PictureWindowJustSo PhotoAlbum, et alia
    
    --
    
  • 11g says "you are using JDK 1_7_79, program may not work correctly" pls help

    Hi all

    I installed ODI 12 c on my laptop (windows 64-bit) and already installed 12 c repository database...

    Now, I tried the version 11 installed well g 11 g (64-bit) with the help of the jdk version 1.7 (actually it is the wrong thing I have done, we should always use the version lower than 1.7)

    But strangely installation allowed me to install odi 11g with version 1.7 of jdk.

    Now when I start odi 11g, it says as a message "you are using 1.7, you must use ECCAS 1.6 these version..."

    so to fix this issue, the forums have explored, found that we can change the jdk path in appdata\roaming\1.0.0.1\odi\product.conf

    I installed Javea JDK 1.6.27 again in the separate path and the same update in this product.conf...

    When I restart odi11g of what it still shows this msg you are using JDK version 1.7 o...

    Can u pls tell any missing step here?

    Concerning

    ASP.

    Fixed my self! Grand...

    do not change the product.conf instead to change the JDK path in below url

    file oracledi\client\odi\bin\odi.conf

    That's all... There is no more pop up warning message

  • If you are using windows it suddenly switches to a blank white screen

    Original title: white screen Syndrome

    If you are using windows, that it suddenly switches to a blank white screen, I can't get except if I use ctrl alt delete very annoying is there a set problem here? help help help

    Hi Yaxleybandit,

    Until solve us the problem I need more information on the issue.

    ·        When exactly do you get the white screen of white?

    ·        This occurs when the computer is idle or while working on this subject?

    ·        It happens when you use a particular program or is it random?

    ·        Did you do with the last changes made to your computer before this problem started?

    Also, you can open check and Event Viewer if there is another error important messages/codes related to the question and after return of the error.

    See the link below for more details:

    What are the information contained in the logs of the event (Event Viewer)?

    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    Post back with the required information.

    Thank you and best regards,

     

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • When installing CD collection national geographic Gets the error, "the version of this file is not compatible with the version of Windows that you are using".

    Original title: the version of this file is not compatible with the version of Windows you are using. Check your computer system information to see if you need a X 86 (32-bit) or X 64 (64-bit) version of the program, and then contact the software publisher.

    I have a large CD collection published by National Geographic. The difficulty lies in the installation of the program that displays the pages. Setup of the program ends. ins.  These Photo CD were produced by mindscape. When you try to contact them, they are based in France, and it is impossible to get support for this product. Is it possible to get the installer on the CD to do its job to provide a way to turn the 'pages '?

    Hello malaglinskom,

    In addition to what Azam offered, you may try the following:

    If you are running Windows 7 Professional or Ultimate version, install Windows Virtual PC and Windows XP mode (http://www.microsoft.com/windows/virtual-pc/default.aspx) and run your software in Windows XP.

    If you run Windows 7 Home Premium, try VirtualBox (www.virtualbox.org) or VMware Player (www.vmware.com), or any other software virtualization part 3rd and install a separate copy of Windows XP (family or professional edition) for this purpose. You can find the virtualization software free that will run on Windows 7 Home Premium.

    Hope this information helps.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • "This version of this file is not compatible with the version of Windows you are using. Check your computer's system information to see if you need a x 86 (32 bit) or x 64 (64-bit) version of the program.

    Hello

    I seem to be having problems when you try to install a program on my Windows 7 that allows to launch on my Windows XP and Windows Vista. I used the tool to solve compatibility problems and selected these settings in the CONFIGURATION file, but nothing seems to work the error message I get is as follows:

    "This version of this file is not compatible with the version of Windows you are using. Check your computer's system information to see if you need a x 86 (32 bit) or x 64 (64-bit) version of the program, and then contact the software publisher. »

    Is it possible to set my computer to allow this program to run successfully? Any solution would be greatly useful.

    Hello Rdforbe,

    The problem is a software that was created for Windows 95, 98, and Windows XP has no way to work correctly with an operating system that didn't even exist when the software was written. However, the error message you get normally means that you have a 32-bit software that you are trying to install on a 64-bit system.

    To find out if your computer is running 32-bit Windows or 64-bit, follow these steps:
    System opened by clicking on the button start , by clicking on the Control Panel, click System.
    Under system, you can view the system type. This will describe if you have 32-bit or 64-bit.

    You can also try compatibility mode.

    If the program is not compatible, then you try to install and run the program in compatibility mode.

    Use the following steps:

    (1) right click on the program

    2) click Properties

    3) click on the Compatibility tab

    (4) select run this program in compatibility mode and select Windows Vista or other operating system, the program has been run successfully.

    Check out the link here: make sure to run older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    If you are running Windows 7 Professional or Ultimate version, install Windows Virtual PC and Windows XP mode (http://www.microsoft.com/windows/virtual-pc/default.aspx) and run your software in Windows XP.

    If you run Windows 7 Home Premium, try VirtualBox (www.virtualbox.org) or VMware Player (www.vmware.com), or any other software virtualization part 3rd and install a separate copy of Windows XP (family or professional edition) for this purpose. You can find the virtualization software free that will run on Windows 7 Home Premium.

    I hope this helps.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Error message: "the version of this file is not compatible with the version of Windows that you are using", when you try to run an old ms - based back program in Win-7 Ultimate 64 bit.

    Original title: program compatibility Application Applications App Apps game games Legacy Crash crashes Hang hangs

    I get this message when you try to run an old MS-DOS - based program in Win-7 Ultimate 64-bit.

    "The version of this file is not compatible with the version of Windows you are using. Check your computer system information to see whether you need a x 86 (32 bit) or x 64 (64-bit) version of the program and then contact the software publisher. »

    I understand that I am under a 64 bit OS, but is it possible to get this program to run? I was wondering if anyone has tips :)

    Hi Bcopeland,

    Thanks for posting your question in the Microsoft Community.

    Based on the information, you are trying to install and use an old ms - dos program based in Windows-7 Ultimate 64-bit.

    The problem is a software that was created for Windows 95, 98, and Windows XP has no way to work correctly with an operating system that didn't even exist when the software was written. However, the error message you get normally means that you have a 32-bit software that you are trying to install on a 64-bit system.

    You can check the compatibility of the program with Windows 7, in the Compatibility Center.

    Compatibility Center

    If the program is not compatible, then you try to install and run the program in compatibility mode.

    a. click right on the program.

    b. click Properties.

    c. click on the tab compatibility.

    d. Select run this program in compatibility mode and select Windows Vista or whatever to use the system, the program was executed successfully.

    Here is an article that gives you more information on this:

    Make older programs in this version of Windows

    If the problem persists, you can get in touch with the software vendor to see for the latest version of the program to use the same system of 64-bit Windows 7.

    Hope the helps of information.

    If you need assistance in the future to resolve any issues related to Windows, post your query and we will be happy to help you.

  • Running game - this version of the file is not compatible with the version of Windows you are using. Check your computer's system information to see whether you need a x 86 (32 bit) or an x 64 (64-bit) version of the program

    I'm having the same problem that is described in this topic: http://social.answers.microsoft.com/Forums/en-US/vistagaming/thread/f15edea1-f88f-492e-bb42-4db2b06fdf05

    My error message is: "this version of the file is not compatible with the version of Windows you are using. Check your computer's system information to see whether you need a x 86 (32 bit) or an x 64 (64-bit) version of the program and then contact the software publisher. »

    I tried to run the program in question (Castle of the winds) in each mode of compatibility that is on the list and it is giving me this error message every time. Other people have managed to get the program to work, so I don't know, it does not work on Windows 7, but I can't make it work for me.

    Help?

    Hi autohaptic,

    (a) on the computer what Edition\Version of Windows 7 operating system do you use? What type of system? 32-bit or 64-bit

    If you are running Windows 7 64-bit operating system, you can install the 64-bit computer game program.

    (b) on the computer which the castle of the winds game version are you running?

    I want to clarify, if you try to install the program or trying to run.

    Step 1: Put the computer in a clean boot, and then try to run the game

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    You can consider the right version of the game for your computer relocation program.

    Make older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • During the installation of Microsoft Flight Simulator 2004, the following error occurs: the version of this file is not compatible with the version of Windows you are using.

    Former title: Microsoft Flight Simulator will not install on Windows 7

    I have Windows 7 Home Premium 64-bit.  I try to install MFS 2004.  The first 3 discs work fine, but when I insert disk 4 to complete the installation, I get the following error message:

    "The version of this file is not compatible with the version of Windows you are using.  Check your computer's system information to see if yo need a x 86 (32 bit) or x 64 (64-bit) version of the program and then contact the software publisher. »

    I have a Dell Studio 1558

    Intel i5 - 520 M

    ATI Mobility Radeon HD 5470 graphics card

    8 GB RAM DDR3

    What can I do?

    Hello

    1. which edition of Windows are you using? Is - this edition is 32-bit or 64-bit?
     
     
    Given that the game is compatible with Windows 7, I suspect that the conflict can be 32-bit or 64-bit architecture.
    The link below shows the compatibility of this game with Windows 7.
     
     
    Method 1.
    We must ensure that the edition of the game must correspond with the operating system.
    If you use 64-bit in this game, you need the 64-bit Windows to install it.
    Method 2.
    If the above information matching I you recommend to start the computer in clean condition and then try to install the game.
    See the article below for instructions on how to start your computer in a clean boot state.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 7 in the above article.
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Windows Search 4 the program active with a log on before you can use the start menu. It is sometimes impossible to open an Office application.

    Original title: search Windows 4

    With Windows Search 4, the program active at the log on before you can use the start menu. Several search screens occur and reproduce when they are closed. Sometimes it's impossible to open an Office, research childcare opening application.

    Hi Ken_978,

    ·         How long have you been faced with this problem?

    ·         Did you do changes on the computer before the show?

    ·         The question is only limited to Office applications?

    ·         What exactly happens when you try to open an Office application? You receive an error message?

    Follow the suggestions below for a possible solution:

    Method 1: I suggest that you scan your computer with the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malware

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Important: While running scan on the hard drive if bad sectors are found on the hard drive when scanning try to repair this area if all available on which data may be lost.

    Method 2: If this does not help then you can uninstall and reinstall Windows search 4.0 on the computer.

    Follow the steps below to uninstall:

    a. click on Start

    b. click Control Panel

    c. select Add / Remove Program

    d. place a check on "Show updates"

    e. you will see Windows Desktop Search 4.0 and uninstall it.

    Reinstall back, you can see the link below:

    http://www.Microsoft.com/Windows/products/winfamily/desktopsearch/choose/windowssearch4.mspx

    Hope this information helps.

Maybe you are looking for

  • ThinkPad 600 x - issue of replacing hard drive

    Hi all I recently got an IBM Thinkpad 600 x off a friend for cheap... It needs some work to be useful again... The hard drive shows a large number of bad sectors (using spinrite at the moment)... IM wondering if this is an easy replacement or it is a

  • Set the initial (Initcwnd) TCP Congestion window

    For a Windows Server 2008 (not R2) I would like to set the TCP Initial Congestion window size. It would be similar to what could be done with R2 in this KB, http://support.microsoft.com/kb/2472264. In any case to display this value? Thank you.

  • After you have reinstalled windows, web pages are bigger than my screen, any suggestions?

    All icons, tabs, and the bars are larger than before taking more space on the screen, which leaves less room for the pages. Don't know what to do, and without any help from the computer nearby.

  • Re-formatting a drive of 64 GB of exFAT to FAT32 USB2Go

    I have a disc of USB2Go 64 GB I want to connect to my Motorola MotoG (2nd generation). However, the phone does not recognize the exFAT, only FAT32. How can I re - format the drive to FAT32 as Windows OS will not?

  • Can pix 515E degrade from 7.04 to 6.33?

    already go to 7.04, want to return to 6.33, this issue not addressed by the link below: http://www.Cisco.com/univercd/CC/TD/doc/product/iaabu/PIX/pix_sw/v_70/pix_upgd/pixupgrd.htm#wp1631306 concerning Xiao hua