Launching new window in separate process for separate JVM

This topic has been posted before, with no successful resolution, but
I'm still holding out hope.
I would like for a user to be able to launch multiple versions of the
same applet that know nothing about one another. I know that popping a
new window, by default, opens a window that shares the same process/JVM.
Is there ANY WAY to open the new window as a separate process, thereby
giving it its own JVM?
Thanks

Hi,
We'd horrific problems with shared static variables and multiple instances of Applets. We kept getting "white screens" where we'd corrupt Swing and have to restart the browser.
Basically, we had to rid our application of singletons and static variables ( as much as possible ).
It involved a lot of rewriting, to make the applet more structured.
Ie. pass applet references down to classes and methods explicitely.
rather than lazy singletons which call MyApplet.getInstance().
You might try loading each Applet in it's own classloader, within the same VM. I think you might be able separate Applet instances then.
Very messy though... they may all delegate to the parent classloader.
And if they don't, then each Applet's classloader would probably have to load a duplicate set of class.
regards,
Owen

Similar Messages

  • When i open a new tab it opens in a new window..i like for it to open on the same window i am on,

    when i open a new tab it opens in a new window..i like for it to open on the same window i am on. I went to Tools then options then on tabs the first box (open new window in a tab instead) it was checked so i unchecked it clicked on ok and it did the same thing for new tab it opened in a ew window so i went back and put a check in the tab and same thing....new window.. i then unchecked and ditto.....and did this about 5 times with no change. It had been opening taa What i the world is wrong with this thing? any help is appericated very much...thank you! Donna C

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • When I launch firefox on my wife's computer it comes up "Error Launching Brouser window : no XBL Binding for browser". What does this mean? How do I fix it?

    On my wife's computer, when she tries to launch Firefox in order to connect to the internet, a window pops up that says "Error launching browser window: no XBL binding for the browser. How do I fix this? I am not very computer literate so please don't use too much computer lingo. Thanks for your help.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Opening new window from separate class

    Hello. I am currently writing a program that should be able to open a new window.
    Upon clicking a button in the first window, a second window should open up.
    The second window has to contain it's own buttons and methods, and upon
    clicking the button in the first window, it should close.
    So far I am only interested in making the button, and making the second class
    that will open when I click it. So far I've tried doing this in many different ways,
    but no matter what I do something either goes wrong, or it behaves weirdly.
    Class1: Contains the button that opens the second window
    /* Imports */
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class SecondWindowExample extends JFrame implements ActionListener {
        /* Initialization */
        private JButton xPress;
        /* My main method */
        public static void main (String[] Args) {
            SecondWindowExample frame = new SecondWindowExample();
            frame.setSize(200,120);
            frame.createGUI();
            frame.setVisible(true);
        /* The interface */
        private void createGUI() {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout());
            /* Button to open new window */
            xPress = new JButton("Press me");
            window.add(xPress);
            xPress.addActionListener(this);
        /* The actionPerformed for my actionlisteners
         * This only works when you press the button with your mouse */
        public void actionPerformed(ActionEvent e) {
            Object source = e.getSource();
            if (source == xPress) {
                /* Code to open and close second window */
    }Class2: Contains the second window to be opened by the first class
    It has to be able to contain it's own buttons and components
    import java.awt.*;
    import javax.swing.*;
    public class calcFunctions extends JFrame {
    public calcFunctions(){
            createNewGUI();
            setVisible(false);
            setTitle("Functions");
            setSize(300, 300);
            setLocation(200, 200);
            setResizable(false);
          private void createNewGUI() {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout());
    }Thanks in advance, any help is greatly appreciated.
    Sincerely, Ulverbeast

    I would make the second "window" a JPanel (or better a class that is able to create a JPanel), and display it in a modal JDialog. For e.g.,
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    public class SecondWindowExampleB extends JFrame implements ActionListener {
      /* Initialization */
      private JButton xPress;
      private JTextField sumField = new JTextField(10);
      /* My main method */
      public static void main(String[] Args) {
        SecondWindowExampleB frame = new SecondWindowExampleB();
        frame.setSize(200, 120);
        frame.createGUI();
        frame.setVisible(true);
      /* The interface */
      private void createGUI() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        Container window = getContentPane();
        window.setLayout(new FlowLayout());
        /* Button to open new window */
        xPress = new JButton("Press me");
        window.add(xPress);
        xPress.addActionListener(this);
        sumField.setEditable(false);
        window.add(sumField);
      public void actionPerformed(ActionEvent e) {
        Object source = e.getSource();
        CalcSumPanel calcSumPanel = new CalcSumPanel();
        JDialog dialog = new JDialog(this, "Calculate Sum", true);
        dialog.getContentPane().add(calcSumPanel);
        dialog.pack();
        dialog.setLocationRelativeTo(null);
        if (source == xPress) {
          sumField.setText("");
          dialog.setVisible(true);
          double sum = calcSumPanel.getSum();
          if (Double.compare(sum, Double.NaN) != 0) {
            sumField.setText(String.format("%.4f", sum));
    import java.awt.Window;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.*;
    class CalcSumPanel extends JPanel {
      private JTextField field1 = new JTextField(10);
      private JTextField field2 = new JTextField(10);
      private double sum = Double.NaN;
      public CalcSumPanel() {
        JButton calcSumBtn = new JButton("Calculate Sum");
        calcSumBtn.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent arg0) {
            calcSumActionPerformed();
        add(field1);
        add(field2);
        add(calcSumBtn);
      private void calcSumActionPerformed() {
        try {
          double d1 = Double.parseDouble(field1.getText());
          double d2 = Double.parseDouble(field2.getText());
          sum = d1 + d2;
        } catch (NumberFormatException e) {
          sum = Double.NaN;
          JOptionPane.showMessageDialog(this, "Non-numeric data entered", "Input Error",
              JOptionPane.ERROR_MESSAGE);
          field1.setText("");
          field2.setText("");
        Window win = SwingUtilities.getWindowAncestor(this);
        win.dispose();
      public double getSum() {
        return sum;
    }

  • Finder issue - won't launch new window, new plist resets immediately

    Hey folks, just a series of strange little problems.
    a.) When I launch Finder, it's a blank window. I have to press one of the buttons for a view to get it to show anything at all.
    b.) I can't launch another Finder window. This is a problem if I need to, say, drag and drop files from one folder to another. Neither the keyboard shortcut or the New Window option under the File dropdown does anything at all.
    c.) When I trash the .plist in Prefs, the problem gets fixed - but only for one new window launch. Then Finder immediately goes back to the no new windows default.
    d.) I've had problems with Time Machine launch that were fixed by trashing the Finder plist.
    This is happening on my MBP, running 10.6.2. Any ideas appreciated.

    Hey, I.m confused... 10.4 or 10.6?
    Could be many things, but it's best to start with these two steps, which may fix it also...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc , then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, *you must select your language first.)*
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk."
    Then Safe Boot , (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it finishes.
    Safe Boot... holding Shift key down at bootup. Safe Boot is a special way to start Mac OS X 10.2 or later when troubleshooting.
    http://docs.info.apple.com/article.html?artnum=107392
    If you can't find your Install Disc, at least try from Safe Boot onward.
    Have you booted off your Original Install Disk by holding the *d key* down at boot-up, (not the c key), and run the extended Apple HW Test? Some Install disks require holding the Option key at bootup to select the AHT. Some Macs came with separate AHT CDs.

  • Open URL in new window from page process

    I have a Page process that returns a URL (stored in 'l_val' field). Within this process, what is the best way to open that URL (stored in l_val) in a new window?
    thanks
    DECLARE l_clob clob;
    l_xml xmltype;
    l_val clob;
    BEGIN
    for c1 in (select clob001
    from apex_collections
    where collection_name = 'CENTRIS_IEP_VIEWER') loop
    l_clob := c1.clob001;
    exit;
    end loop;
    l_xml := xmltype.createxml(l_clob);
    l_val := dbms_xmlgen.convert(
    l_xml.extract(
    '//GetIEPUrlWithAuditResult/text()'
    , 'xmlns="http://www.iepdirect.com/CentrisWebServices/IEPViwer"'
    ).getstringval()
    , 1
    END;

    Hello,
    You can create a application process using this code and call that process from a javascript function and return that URL to the javascript function there you can open a popup easily.
    If you want you can open a popup from process, you can do that using htp.p() function, I had tried this once but what it does was, it opens a popup but it clears out my parent page, I was not be able to see anything on my parent page.
    Thanks
    Tauceef

  • Launching new calendar in separate window

    My wife wants her own separate iCal calendar.
    We both use the same computer.
    Is there a way to set up a separate calendar for her that comes up on a separate window?
    Rather than having to toggle on and off our separate calendar listings in the calendar column?

    Steven,
    The only way that I know of is to create a separate user account for your wife.
    ;~)

  • When I open a new window only the history for that session is available. Where did the rest of my history go?

    If I close out all my current window/tabs and open a new session the only history I can find in for that window. None of my past browsing history is available. Anyone have any idea on how to find the rest of my history?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Using "Enter Key" on Button launches new window

    I've written a Google Search portlet using the Google API. The user enters a Search Term in a text box and then clicks on a button to begin the search. It works fine as long as the user clicks the button with the mouse. However, I'm finding that many times they just use the enter key thinking its also mapped to the button. The search works, but now displays the results in a new page leaving the portal. How can I get the "Enter Key" to operate the same way as mouse clicking on the button?
    Paul

    Here's what I have in my Page_Load (if you're using aspx) that traps the Enter key. In my case I just ignore it, but you can obviously replace the function body to do whatever you want.
    this.RegisterStartupScript("captureEnterKey", "<script for=document event=onkeydown>if (event.keyCode == 13) {return false;}</script>");

  • New Windows computer purchase- designed for Photoshop

    What should I look for in a windows computer to run Photoshop in the most harmonious way?

    I think it depends on your needs as to what will be optimal.
    No to PS being very well threaded at all.
    So GHz rule. So do SSDs! and RAM helps as long as you work with large files.
    3 x 8GB is fine. Apple never lists the max RAM or drive capacity.
    $200 BTO for 5870 now rather than later.
    Hitachi, OWC SSD, WD.
    http://macperformanceguide.com/index_topics.html
    Even the 4-core 3.2GHz might do just fine and better $$ investment.
    Or this 3.33 2009 Special
    http://store.apple.com/us/product/G0G81LL/A?mco=MTcyMDg3MDQ
    http://twitter.com/diglloyd

  • A135-S4527 Host Process for Windows Services stopped...

    I have started getting a Windows error: Host Process for Windows Services stopped working and was closed.  Laptop runs fine except my network connection says Connection Status: Unknown The service to detect this status is turned off and McAfee stopped working.  Can't run any of the MS tools either.  I am suspicous of conficker e but don't know how to detect or remove it.  Have seen the b variant on an XP machine at work, but the tools we used on it don't work on Vista.
    I am running Vista Home Edition (came on Laptop) upgraded to SP1 with auto-updates on.  McAfee was also set for auto-updates and nightly full scans, active e-mail and internet scanning.  No recent software downloads except for updates.
    Have been having the issue since about April 28.  Tried to restore but no dates exist past May 5.  Tried the F8 Startup recovery no problems found.  Have tried restarting services but they quickly stop again.  Uninstalled McAfee and tried AVG. It allowed defintion updates and I scanned all files.  No viruses, trojans or malware detected.
    Any suggestions?  I have a tasklstserv file I can copy and paste if it will help.

    That's a bad-sector event. At a command prompt (cmd.exe), run chkdsk /r.
       Event ID 7 Source Disk
    But it doesn't seem likely that's the cause of the message. When you get another one, note the time and check the Application and System logs for entries at that exact time.
    Thanks for the detailed information.
    What virus protection do you use?
    -Jerry

  • Open a report in new window ADF 11g

    I am trying to open a report in a new window. The problem is that I am having a link in a .jsff file when I click this link I go to another view activity using dialog: outcome and in the constructor of the backing for the target page I write the following code:
    ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
    HttpServletRequest request = (HttpServletRequest) ectx.getRequest();
    String temp = "http://localhost:7101/cms/report";
    try {
    ectx.redirect(temp);
    } catch (IOException e) {
    This code was working fine with ADF 10g but in 11g this code throws for me ResponseAlreadyCommit exception. I think that this is coming because .jsff is using PPR and this is not a full request but it is XMLRequest.
    SO, I tried to use the URL activity and make an outcome to this URL view activity BUT although the report appears but it is not displayed in a new window
    I can't use a javascript because to open a new window because some processing is done in the backing bean for the report parameters send from the page.
    Please any suggestion for this
    Thanks in advance

    Hi,
    one option I would see is to create a task flow that uses a JSPX page. The input parameter for this page would pass in the URL to call. Then you configure the task flow to be called from a call activity in the bounded task flow with the page fragment. On the task flow call activity configure it to open in a separate window
    Frank

  • Project sporadically opens in a new window, instead of tab

    Hello,
    Thank you for taking the time to read my post. I have not been able to find this issue on the Internet or on this forum. I apologize in advance if it has been resolved.
    I always browse and open often my projects from my desktop.
    When I had Captivate 6.0, it would open a window and then, for each project, it would open a tab.
    After the upgrade to Captivate 8, whenever I open a project, Captivate will always open in a separate/new window for each project !!!
    Is there a way to tell Captivate to ALWAYS OPEN NEW PROJECT in current window, but different tab?
    I tried opening a project from the menu bar (File > Open > Select project), and it still opens in a new window.
    Thank you for your time.
    Eric

    Hi Eric
    Actually, I'm rather surprised to hear that any version of Captivate would simply open the second or subsequent projects in the same instance but in different tabs. New windows are what I would fully expect if opening projects by simply double-clicking them from the desktop.
    I never advise folks to operate that way. My personal view is to open them by opening Captivate first, then using the File > Open (or Ctrl+O as Lilybiri uses).
    If you feel it should operate differently, please consider filing a bug report using the link below.
    Click here to file a bug report
    Cheers... Rick

  • Director automatically open all the links of  webpage in the new window

    hi
    i want to design the application in director .when user enter
    the URL of any website then all links of web page open in the new
    window....
    for example ..if user type "
    www.Google.com" then all links(hypertext) of Google webpage
    automatically open in the new /separate window ...
    reply me how can i do this
    regards farhana

    Just off the top of my head you could use getNetText(URL) and
    netTextResult(netID) to get the HTML source of the web page as a
    string, parse the string for <a> tags, extract the href
    attribute to create a list of links, then use gotoNetPage using
    _new as a target to spawn a bunch of browser windows with those
    links. IMHO the result would be like getting spammed with dozens if
    not hundreds of popups but there is no reason why it wouldn’t
    work.

  • How to automatically startup a report in a new window after committing a form

    I have a form on a portal-page. The user enters values in the form and presses the INSERT button.
    After doing so, I want to show a report in a NEW window querying some values the user entered in the form.
    I was hoping to be able to use the After Processing Form PLSQL-section as follows:
    declare
    l_id integer;
    l_url varchar2(2000);
    begin
    l_id := p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_ID');
    l_url := 'APP_OWNER.MY_REPORT.show?'
    &#0124; &#0124; 'p_arg_names=id&p_arg_values='
    &#0124; &#0124; to_char(l_id);
    htp.p('<a href="' &#0124; &#0124; l_url &#0124; &#0124;' target="_blank"></a>');
    end;
    But I see only "Inserted one record" and no report is started.
    I've tried to use the after-form-processing part, but it seems I can only startup reports in the same window with GO and CALL.
    Also the ID-variable can not be read from that part.
    A second solution I tried was to put this PLSQL in the PLSQL-handler-section of the button, but for some reason all double quotes " are automatically changed into single quotes ' causing several Java-script errors. Perhaps a bug?
    Does anyone have a solution for this functionality?
    Thanks,
    Jan Willem Vermeer

    Hi,
    There are 2 scenarios I can think of:
    1. The value of ORD_ID is not known until the insert processing completed.
    2. The value of ORD_ID is known and can be retrieved without a roundtrip to the server.
    The 2nd scenario is being simpliest and could be done from Javascript w/out any server involvement, all you need is the getField() function (or any other function to get the field value) described here : http://technet.oracle.com:89/ubb/Forum81/HTML/000073.html
    Javascript piece goes something like this:
    myWindow = window.open("http://myhost/portal30/pos.APPROVAL_INVOICE_DYN.show?p_arg_names=ord_id&p_arg_values=" + getField(this.form,"ORD_ID"),
    "myWindowName","toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,height=400,width=600");
    The first scenario is more complicated.
    During the "accept cycle", when your PLSQL insert/update etc. event handlers are
    fired all the processing output will happen into the current window.
    Neither owa_util.redirect_url() nor wwa_app_module.set_target() will help.
    Both of them will do a redirect only in the current browser window,
    actually, wwa_app_module.set_target() internally calls owa_util.redirect_url().
    What you need is:
    1. Get the field value, and either: 1. store it somewhere in a package variable,
    or: 2. do this all at once in "before displaying the page"
    2. After the form processing is completed (but not in the onSuccess!!! code),
    open a new browser window w/Javascript specifying the same url you were passing to
    set_target().
    Here is my example, place following code into "before displaying the page" additional PLSQL block:
    declare
    l_id integer;
    begin
    l_id := p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_ORD_ID');
    if l_id is not null then
    htp.p('{SCRIPT} var myWindow = window.open("http://myhost/portal30/pos.APPROVAL_INVOICE_DYN.show?p_arg_names=ord_id&p_arg_values=' &#0124; &#0124; l_id &#0124; &#0124; '",
    "mySubWindow","toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,height=400,width=600");
    myWindow.focus();
    {SCRIPT}');
    end if;
    end;
    To do: you will need to add more logic to decide when to open a new window,
    whatever is appropriate for your application,
    rather than just 'is null' check I did.
    Hope this will help.
    Thanks,
    Dmitry

Maybe you are looking for