How stop call to System.exit but allow them to install Securitymanager?

I have an application that allows you to start a java application from inside it (it then gives you monitoring capabilities). I want this to work with pretty much any desktop application, even those that require their own security manager. However, i don't want their application to be able to shutdown the jvm. How can I do this?
As far as I can tell, there's no way to allow them to add the securitymanager, "wrapped" by mine is there?
And I thought of using AccessController.doPriviledgedAction(...) and giving them a context where they can add a security manager but not call system.exit, but then if they do add a security manager, won't it have the final say on system.exit calls?
Is there a solution here?

6tr6tr wrote:
Thanks for the reply!
Hmmm, the problem with that is I need the users to be able to use my application without access to that app's source code. So they need to be able to run that program (as 3rd party black-boxed code) inside my app and still have this work properly. Is there another way?
Source code?
You don't need any source code for what I suggested.
If a frame/jframe tries to exit on close, I can grab and stop that. my problem is if some random code tries to call system.exit(). Is there any other way to intercept it?
UPDATE: the only solution i could come up with is to use bytecode engineering + classloading.
Which I doubt will help if they call it with reflection.
You could use the bootstrap command line options and replace System with your own version. Add some functionality to how it sets up the security manager and/or make System.exit() do nothing, but provide another name for yourself.

Similar Messages

  • How can I turn off voicemail but allow calls in my iPhone 4s?

    How can I turn off voicemail but allow calls in my iPhone 4s?

    Voicemail is a carrier feature, so contact your carrier.

  • How to call legacy system screen in web dynpro for java?

    Now I'm using Netweaver CE for building BPM (Business Process Management).
    In BPM system, I wana call legacy system screen(ERP, C/S , Web, etc..) in web dynpro.
    I'v already known how to call legacy system method and data.( using RMI, SOAP and RFC )
    But I don't konw how to call legacy system screen.
    If there is no way calling legacy system screen, I will have to build every screen using web dynpro.
    It's so terrible.
    So I think there is a way calling legacy system screen.
    It's just my opinion.
    If It can call legacy system screen in web dynpro, please let me know how to call it.
    Or, If there is no way calling legacy system, how solve I this problem?
    Thank you reading my question.

    I assume that with "legacy system screen" you mean ABAP Dynp sceens. Of cause it would be attractive to integrate into new BPM processes. However there is a conceptional issue: You could easily integrate them e.g. into a WebDypro using a URL to to the so-called WebGUI (the ITS that makes Dynp screens Web enabled).
    However the Dynp screen store all there state in the ABAP backend. This information is not available to to the process engine, e.g. to set the Task to completed or to use the data in Output Mapping.
    In fact you need a way to wrap the how UI transaction into a WebDynpro screen including data flow.

  • How to block set of vendors for creating PO but allowing them to create RFQ

    Dear Experts,
    I want to block the set of vendors created by GS01 for creating Purchase order but allowing them for creating RFQ. I tried using XK05 but its blocked even vendor for creating RFQ. So is there any way to do so in my business practise ?
    I already tried several way but no one is fullfilling my requirement. So i need all you experts valuable input on this.
    Regards
    Arun

    Hi Aleksey Tkachenko,
    Well i am also trying to do the same using the badi you had told me but my query is how can i do this if i create a set of vendor using gs01 or provide an interface to user to update the vendor account to whom we dont want to allow for creating PO but they can create RFQ. and using this BADI how i can read this set of account of vendors?
    Can you tell me how to handle this scenario using any of the method?
    Regards
    Arun

  • How to call Operating System commands / external programs from within APEX

    Hi,
    Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
    E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
    c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
    Any pointers will be greatly appreciated.
    Thanks & Regards,

    Hi Guys,
    I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
    However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
    sqlplusw.exe user/password@database @script1.sql
    sqlplusw.exe user/password@database @script2.sql
    sqlplusw.exe user/password@database @script3.sql
    sqlplusw.exe user/password@database @script4.sql
    What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
    Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
    Any help will be greatly appreciated.
    Thanks & Regards,

  • I have Windows 8 pro on my computer .  I un-installed itunes on my computer to re-install itunes 7.1.1  Now the system will not allow the re-install.  Can anyone help?

    I have Windows 8 pro on my computer .  I un-installed itunes on my computer to re-install itunes 7.1.1  Now the system will not allow the re-install.  Can anyone help?

    I have an HP Officejet Pro 7580 similar to the 8600 you have and after upgrading to Mountain Lion it wouldn't work. HP support site said download updates for Mountain Lion from App Store not their site so I went to software update but there were NO UPDATES FOR 10.8.  Tried a million things and could not get printer to work.  So I restored back to Lion figuring at least printer worked then only now I can't get it to work with old settings either. I am sick to death of claims by Apple and peripheral manufacturers that everything is compatible all you have to do is get updates well in this case THERE ARE NONE TO BE GOT and I don't have time to **** about trying to find 'work arounds'.  There shouldnt be a need for work-arounds. Unless the updates are ready DONT release the new OS.  You shouldn't have to be an IT tech to make basic things like printing work.  I see also the HP 8600 is even sold by appstore so there is no reason why it shouldn't work with minimum fuss. 

  • I had to delete everything on my computer and install the operating system again , but I had to install Snow Leopard because it was the cd that came with the computer when I bought it. The problem is that I had already paid for the OS Lion and even h

    I had to delete everything on my computer and install the operating system again , but I had to install Snow Leopard because it was the cd that came with the computer when I bought it. The problem is that I had already paid for the OS Lion and even had upgraded to the Mavericks . I do not think it's fair to have to pay again and I would like to upgrade my operating system without having to pay again for the same system.

    Hi anatuta, 
    Thanks for visiting Apple Support Communities. 
    It sounds like you are trying to upgrade your Mac to a newer version of OS X, after completing a fresh install of Snow Leopard. 
    If you have already purchased and downloaded OS X Lion and Mavericks, you should be able to find these items in the Purchased section of the Mac App Store. 
    You may find the steps in this article helpful with finding the items:
    Mac App Store: Finding your purchased apps - Apple Support
    If you do not see the items in the Purchased section, they may be hidden:
    Hide and unhide purchases in the Mac App Store - Apple Support
    All the best,
    Jeremy 

  • How do i discovery the name of the theme is installed currently in my browser?

    how do i discovery the name of the theme is installed currently in my browser?

    Perfect solution... the path provided led me to the name of the theme !
    Thanks for your quick response,
    excellent insight and clear instructions...
    '''''''Muchas, machas gracias ...'''''''

  • How to call operating system(windows) functions like sutdown,refresh,et

    Hello,
    I am new in Oracle D2k.I want to know that how to call windows XP/7 shell commands(operating system functions) or windows function key(like F5 for system refresh in windows xp/7) in an Oracle Form.
    Actually I have to make a trigger which can fire at pressing a particular key and execute appropriate action of Windows7 like shutdown,F5(function key of windows to system refresh).
    thank you
    regards
    aaditya.

    Just for future reference, regardless if you are posting in the Forms area of the forum or any other, terms like Forms 11g, Oracle 11g, etc are parts of product names. They are not version numbers although they do offer a slight hint. It is very important that when posting you include the complete version number of any products related to the problem or question you have. For example, you said you are using Oracle Forms 11g. Look at how many possible versions "Forms 11g" could possibly be:
    11.1.1.1
    11.1.1.2
    11.1.1.3
    11.1.1.4
    11.1.1.6
    11.1.2.0
    11.1.2.1
    With each new patch release and major release, a large number of bug fixes are included. In the case of new major releases, in addition to bug fixes, many new features are added. So knowing the version number is important.
    Beyond that, it would appear that you have many questions:
    1. How to copy and paste
    2. How to execute a system shutdown
    3. How to force the browser into full screen mode
    4. Refresh - this one is unclear. What do you mean by "refresh"?
    Let me answer those that I can:
    <blockquote>o Functions like cut/copy/paste are available directly from your Forms code. For these I would recommend referring to the Builder's Online Help. Look for CUT_REGION, COPY_REGION, PASTE_REGION. It might also be helpful to understand SELECT_ALL. For example you may want to code a Copy button like this:
    GO_ITEM('some_text_field);
    SELECT_ALL;
    COPY_REGION;o To execute a system shutdown on the client machine, you would first need to WebUtil enable your form. Refer to the Forms Builder Online Help for information about how to use WebUtil. You can also find lots of information in this forum about WebUtil. Once enabled, you can execute a Windows shutdown in various ways. Here one option:
    Declare
         my_cmd varchar2(255);
    Begin
         my_cmd := 'cmd /c start "" "' || '"shutdown -s -f -t 1"' || '"';
         WEBUTIL_HOST.HOST (my_cmd);
    End;Refer to the Microsoft documentation for more information: http://technet.microsoft.com/en-us/library/bb491003.aspx
    o I'm not sure what you are attempting to do with the F11. I understand that this function key sets the browser to full screen, but the form will not exactly adjust for this change in browser size. You can adjust the applet size dynamically, but not the form. For that you would need to code the behavior yourself. So, before I can offer something specific, it would be helpful to understand what you expectation is and if what you want is to set the browser to full screen, why not just allow the end user to do it? You could easily have a java script popup displayed before the form starts which might say something like "To maximize your browser, press F11"
    o Finally, "refresh". I don't know what you mean here. Refresh what? The Windows desktop, browser, Oracle Forms.....
    </blockquote>

  • HT2798 I have a Mac OS 10.6.8 server in my classroom that I have networked to each student's account.  How do I create a folder that allows them to place their finished assignments in it, but does not allow them to go in and remove anything from that fold

    I have a Mac OS 10.6.8 server in my classroom that I have networked to student accounts on the iMacs in the room.  How do I create a folder that allows studnts to place their finished assignments in it, but does not allow them to go in and remove anything from that folder?

    You want a "Drop Box" style folder. You should be able to achieve this by creating a folder and giving it permissions similar to the "Drop Box" folder in your users Public Folder (i.e. write only permissions.)

  • Help! How to call Unix system command?

    In my java application.there are some code as following:
    try{
    String cmd = "ls -a > temp.txt";
    Runtime runtime = Runtime.getRuntime();
    Process process = runtime.exec(cmd);
    int rc = process.exitValue();
    if (rc == 0){
    System.out.println("OK!");
    else{
    System.out.println("Failed!");
    catch(Exception ex){
    ex.printStackTrace();
    But when i run the application, it always throws IllegalTreadStateException,
    return code(rc) is 2, exception's content is as below:
    java.lang.IllegalThreadStateException: process hasn't exited
    at java.lang.UNIXProcess.exitValue(UNIXProcess.java:118)
    at MyApplication.main(...)
    If someone know what happened, please help me, my E-mail address is:
    [email protected]

    import java.io.*;
    public class RunCommand {
    public static void main(String args[]) {
    String s = null;
    try {
         // run the Unix "ps -ef" command
    Process p = Runtime.getRuntime().exec("ps -ef");
    BufferedReader stdInput = new BufferedReader(new
    InputStreamReader(p.getInputStream()));
    BufferedReader stdError = new BufferedReader(new
    InputStreamReader(p.getErrorStream()));
    // read the output from the command
    System.out.println("Here is the standard output of the command:\n");
    while ((s = stdInput.readLine()) != null) {
    System.out.println(s);
    // read any errors from the attempted command
    System.out.println("Here is the standard error of the command (if any):\n");
    while ((s = stdError.readLine()) != null) {
    System.out.println(s);
    System.exit(0);
    catch (IOException e) {
    System.out.println("exception happened - here's what I know: ");
    e.printStackTrace();
    System.exit(-1);
    http://www.devdaily.com/java/edu/pj/pj010016/index.shtml
    Cheers,
    Bala

  • How to call Reader when both Acrobat and Reader are installed?

    In my machine, I have both Acrobat 7.0 Standard and Acrobat Reader 8 installed.
    I want to call Reader 8 in my program. But everytime it opens Acrobat 7.0. I use the following code,
    Dim acroApp As Acrobat.CAcroApp
    acroApp = CreateObject("AcroExch.App")
    acroApp.MenuItemExecute("About")
    I am new to writing PDF programs. Can anyone tell me how to call Reader 8 by program? (I'm using VB.Net.)

    You can use this code with Adobe Acrobat, not Adobe Reader.
    Thank you for your reply. Does the library automatically choose application to call? or the library work under Acrobat only?
    I tried to run the samples of IAC in Acrobat SDK, but all of them called Adobe Acrobat.
    I'm really confused. Could you show me a way to call Reader?

  • How do delete photos from iPhone but keep them on the cloud?

    Is it possible to delete photos from an iPhone but keep them on the cloud? If not what is the purpose of buying extra storage for icloud If you phone can only hold up to 128gb?
    finding it hard to get a straight answer on this, so maybe have to go to a local shop and find out.

    Refer to this Faq.
    How does iCloud Photo Library save space on my device?
    iCloud Photo Library can move the original high-resolution photos and videos to iCloud and
    replace them with lightweight, device-optimized versions on your iOS device. This helps you
    make the most of your device storage while giving you access to more photos than ever.
    You can turn on Optimize [device] Storage from Settings > iCloud > Photos or Settings >
    Photos & Camera > iCloud Photo Library on your iPhone, iPad, or iPod touch. You will need
    an Internet connection to access an original photo or video that’s stored only in iCloud.
    Yes I want to know the answer too.
    If I subscribe to iCloud storage but my iPhone can just hold up to 16 gb.
    Why do I have to do it ? to make my iPad see photos from my iPhone?
    I did try to disable icloud photo while i had 1gb photos stored in my iPhone
    and wipe them out, yes ,nothing left, 0 data. but when I turn on iCloud Photo -
    again. everything come back as preview photos but when I look at each, my phone
    will download them all anyway. so, how can you manage space on devices actually?
    if I have 16 gb on my phone , So I can see all of my 1tb photos on iCloud ?
    and have enough space on the phone to do other things right?

  • I have lost my toolbar and task bar. I have tried all the sugestions on this site to no avail. I don't know how to try a system restore with out them.

    I was enlarging pictures on Facebook to full screen. When i went to move on. All my tool bars and my task bar have disappeared. I have tried all the suggestions on this site to no avail. I don't know how to do a system restore without my task bar, and don't want to lose my book marks. Please help, i can't grt to my important favorite sites.

    Can you launch a new window (Ctrl+n for a normal window, Ctrl+Shift+p for a private window) that has the usual complement of toolbars? If a new window also is missing bars, try using the View menu > Toolbars list to restore them. If the classic menu bar is not displayed, usually tapping the Alt key or the F10 key will show it temporarily.

  • How can I delete gmail emails but keep them on my Mac?

    I want to remove all emails in my gmail account but keep them on my mac.   Everytime I delete an email from gmail, it is automatically deleted from my client computers.  HELP

    Hello,
    First you have to create a new folder or 2/3, om My Mac... Mail>Mailbox>New Mailbox...> Loacation>On My Mac.
    Highlight the eMails  & drag to the new box(es), if IMAP Mail will try downlodaing them again.
    If POP & Remove fron Server when downloaded it won't.
    Quit Mail after the move, log into gMail Webmail via a browser & delete what you wish.
    PS. Even though you delete everything in gMail, google keeps copies for themselves & the NSA, just you cannot see them.

Maybe you are looking for

  • Assistance in Reading a .txt file

    I'm newbie on Java and I have a problem I'm doing a homework on Systems and I need to read a .txt file [It would be on the same folder as the Java file]. The catch is that I have to read by Lines, Each Line could have as much as 3 words[tokens] as li

  • [SOLVED]xf86-video-intel-2.13.0-2 - Black screen/windows

    I've upgraded from xf86-video-intel-2.13.0-1 to release 2 and now every GL window is black, with no rendering. For example, glxgears give-me a black empty window with no rendering, also the games stoped working. I can confirm this issue on this igp:

  • UCCX Agent Desktop v.7 taking over Windows active session when phone rings

    I'm trying to figure out how (if possible) for the Cisco UCCX Agent Desktop application from taking over a users Windows session every time the phone rings.  This is very annoying and takes the end user out of what ever application they are currently

  • Sort songs in Zen Mi

    I am using the Zen Micro (5G) mp3 player. I notice the songs stored in it is not sorted in any order,? is there any way to sort them. thank you for response!!

  • Uploading a book (from the book module) to the web module

    Hello! I just finished my first wedding album in the Lightroom 4 book module (yay!) now I would like to be able to upload the book via the web module so that my clients can approve it, but when I move to the web module, it seems to only upload the in