New JVM with each browser instance

Hi I am opening an Applet in a new browser window from my menu link
I am using the foll. tag to open the applet using JRE1.3
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH="750" HEIGHT="401" align="baseline"
codebase = "/j2re-1_3_1_01-win.exe#Version=1,3,1,01">
<PARAM NAME = "code" VALUE ="ABC.class" >
<PARAM NAME="MAYSCRIPT" VALUE="true">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
</OBJECT>
What happens is if I go back to the menu and open the applet again it opens in a new browser window but within the same JVM.
I want each applet to open in a new JVM (to have its own seperate memory)?? How can I do that??
Pls help.

You have no control over this, I am pretty sure.
I assume your problem is you did lots of static stuff and now it is causing problems.
Unfortunately, the best advice is to simply be conscientious of what you are doing when you make things static.
Even if you did open the applets in new windows, you would be overwhelming your users' machines with so many JVMs running.

Similar Messages

  • A New Thread With Each Mouse Click

    Dear Java Programmers,
    The following code gives a bouncing ball inside of a panel. With each click, I need to have a different ball added and the previous ball to keep on bouncing. This part is a larger question of multitreading. When I have an action listener for mouse clicks, and I need to have a new thread with each click, how do I do this and where do I put it?
    Thank you in advance.
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import java.awt.Graphics;
    import java.awt.*;
    import java.awt.Color;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseEvent;
    public class Multiball extends JPanel implements Runnable, MouseListener {
    Thread blueBall;
    boolean xUp, yUp;
    int x= -10, y= -10, xDx, yDy;
    public Multiball()
    xUp = false;
    yUp = false;
    xDx = 1;
    yDy = 1;
    addMouseListener( this );
    public void mousePressed( MouseEvent e )
    x = e.getX();
    y = e.getY();
    blueBall = new Thread( this );
    blueBall.start();
    public void paint( Graphics g )
    super.paint( g );
    g.setColor( Color.blue );
    g.fillOval( x, y, 10, 10 );
    public void run()
    while ( true ) {
    try {
    blueBall.sleep( 10 );
    catch ( Exception e ) {
    System.err.println( "Exception: " + e.toString() );
    if ( xUp == true )
    x += xDx;
    else
    x -= xDx;
    if ( yUp == true )
    y += yDy;
    else
    y -= yDy;
    if ( y <= 0 ) {
    yUp = true;
    yDy = ( int ) ( Math.random() * 1 + 2 );
    else if ( y >= 183 ) {
    yDy = ( int ) ( Math.random() * 1 + 2 );
    yUp = false;
    if ( x <= 0 ) {
    xUp = true;
    xDx = ( int ) ( Math.random() * 1 + 2 );
    else if ( x >= 220 ) {
    xUp = false;
    xDx = ( int ) ( Math.random() * 1 + 2 );
    repaint();
    public void mouseExited( MouseEvent e ) {}
    public void mouseClicked( MouseEvent e ) {}
    public void mouseReleased( MouseEvent e ) {}
    public void mouseEntered( MouseEvent e ) {}
    public static void main(String args[])
    JFrame a = new JFrame("Ball Bounce");
    a.add(new Multiball(), BorderLayout.CENTER);
    a.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    a.setSize(240,230);
    a.setVisible(true);
    }

    Thank you very much for your replies. As for the multithreading, I have created 20 threads in the main method. With each click, one of these 20 threads starts in order. Now, how do I get a ball to paint with each one? How do I reference them in the paintComponent method?
       public void mousePressed( MouseEvent e )
             x = e.getX();
             y = e.getY();
             blueBall = new Thread( this );
             blueBall.start();
             count ++;
             System.out.print ("count is " + count);
          MyThread[] threads = new MyThread[20];
                for ( int ball = 0;ball < count; ball ++){
                threads[ball] = new MyThread ("" + ball);
                threads[ball].start ();
       }

  • OCI bowser generates new session with each page load

    Here is a summary of my problem:
    I am trying to implement the SAP Open Catalog Interface (OCI) with our eCommerce software, but I am having issues with the Web browser that OCI uses.
    Our eCommerce software utilizes the browser session id to identify the user. Our issues is that the OCI browser supplies a new session id with each page load.
    The weird part is that if I open a standard instance of IE, access the site, and then access the site though OCI the same session is shared by both the OCI browser and the IE browser. The OCI browser is now able to maintain the session ID as the user browses the site.
    Thanks.

    Thank you for your quick response.
    I understand that session IDs are always unique, and should only last for as long as the instance of the browser is open.
    What I have seen happen is that the session ID will get recreated with each page load with in a single instance of the OCI browser.
    When the site is opened in OCI it logs the user in, and then redirects them to the homepage. The problem is that the load of the login page, and the load of the homepage have different session IDs. If the user then clicks on a link on the homepage that page load will again have a different page load. This causes the eCommerce system to see them as separate users.
    As I described when I open an instance of IE first it seems to work. This leads me to believe that the OCI browser can read the cookie information, but can't write or create. 
    I am trying to figure out why the OCI browser keeps generating new Session IDs.

  • Want to start new session in same browser instance when user ReTypes URL

    HI All,
    I am facing one problem in my sturts application.Its giving me problem that values in the session persists in the my JSP form.
    I entered Userid and password and logged in and gone forward now when I retype Url and give request in same Browser instance a values in my JSP form are visible to me.
    actualy this should be considered as new request and JSP form should appear blank.

    I think Struts is not JSF ....

  • Mapping to new node with each loop

    Does anyone know how to add a new node to a message each time through a loop (in a BPM) like this....
    Source message before the first mapping iteration
    <source>
    <data>first occurence</data
    </source>
    Target message after the first mapping iteration
    <target>
    <record>
    <data>first occurence</data>
    </record/
    </target>
    Source message before the second mapping iteration
    <source>
    <data>second occurence</data
    </source>
    Target message after the second mapping iteration
    <target>
    <record>
    <data>first occurence</data>
    </record/
    <record>
    <data>second occurence</data>
    </record/
    </target>

    Hi,
    Mapping is based on he data passed. i.e. if the occurance of the Mapping fields is 0...unbounded. Then you can have multiple nodes.
    But if you will be looking as 1st instance of mapping will create one node and then another instance will increment the nodes. Then I doubt this could be directly possible.
    Thanks
    swarup

  • Possible to have new image with each new dowload?

    How can I have one image on a page get replaced with a
    different, but exactly the same sized, image each time someone
    downloads the page? I want it to cycle through about 6 images, or
    in random order, either way. Any online tutorials how to do
    this?

    brainfillet wrote:
    > How can I have one image on a page get replaced with a
    different, but exactly
    > the same sized, image each time someone downloads the
    page? I want it to cycle
    > through about 6 images, or in random order, either way.
    Any online tutorials
    > how to do this?
    There are millions of them. Google "random image script".
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Old Project Opens in New FCP with only Browser and Viewer

    I can't open a project created in previous FCP and get the timeline or canvas, even when I click on Window-Arrange-Standard. I just want to send that old movie as a quicktime movie, self-contained to the external hard drive where I have the remake of that movie, but can't get to its timeline to select and do so. I'm also afraid I can't find this forum again for any answer you post, so can you please also send email? I promise not to use it for anything but this question. [email protected] I don't know what OSX version number I have, but it's called Tiger
    Thanks,
    Deb

    I can't open a project created in previous FCP and get the timeline or canvas, even when I click on Window-Arrange-Standard. I just want to send that old movie as a quicktime movie, self-contained to the external hard drive where I have the remake of that movie, but can't get to its timeline to select and do so.
    If I'm reading this correctly, it sounds like you can actually open the project file, but cannot see your sequence.
    Have you looked for the sequence in your Browser window and tried double-clicking it? The only way to have your Canvas and Timeline windows visible is to have a sequence opened.

  • How can I force new JVM for new browser instance?

    I have an applet with some static variables.
    When I run the applet in multiple browser instances that have been opened by clicking on the IE icon there are no problems because each browser instance has its own JVM.
    However if I after downloading the applet I open a new browser by clicking CTRL + N or going to File->New Window, the new browser uses the same JVM as the original browser which causes problems with my static variables.
    So I'm wondering is there a way to force the new browser instances to always have their own JVM instance?
    Cheers,
    D

    No. Internet Explorer is trash. CTRL-N (or File > New > Window) causes so many more problems, e.g. sharing cookies and therefore also sharing session IDs (!).

  • Is there an API to attach a particular JVM with the Firefox browser instance when it comes up?

    I am using Firefox 3.6.x with JRE 6 u10 and above on Linux. I attach the JVM to the Firefox process using the dlopen() and AttachToCurrentThread() calls. The plugins folder within Firefox contains a soft link to the libnpjp2.so shared library from JRE 6. When I bring up the browser instance with no pages loaded, the process information confirms that the JRE is loaded (libjava.so, libjvm.so are present and attached to the firefox process). Now when I open an applet on this firefox instance - the browser crashes.
    It seems that for some reason that the firefox process is oblivious of the already loaded JVM instance and tries to open another instance of the JVM to attach with the applet which causes the crash.
    Is there an API that is exposed by Firefox that can help me load the JVM programmatically within the browser? And if so will this help in avoiding a call to reload the JVM when an applet is opened?

    Can you post the original link you have in Excel. We need to see what the
    full link looks like.

  • I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    You can't merge accounts or copy content to a different account, so anything that you bought or downloaded via the old account is tied to that account - so any updates that those apps get you will only be able to download via that account. You can change which account is logged in on the iPad via Settings > Store

  • I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc?

    I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc so I don't lose all of that information and can easily switch to a singular apple id?

    Apple does not transfer content bought with one Apple ID to another Apple ID. Apple will not merge two Apple IDs.
    If most of your content was bought with the Yahoo! Apple ID but you now want the Gmail address for your Apple ID, the trick will be to change the address used for the Yahoo ID with the Gmail address. However, to do that you must first free the Gmail address from that other Apple ID. Use the instructions from Apple to substitute another address that is not used as an Apple ID for your Gmail address in the Apple ID with the Gmail address. Then, when the Gmail address is no longer used in an Apple ID, you can use the same instructions to substitute the Gmail address for the Yahoo address in the Apple ID with the Yahoo address.
    Changing the email address you use for your Apple ID -
    http://support.apple.com/kb/HT5621

  • I look for integrated in the legend bloc of diaporama, a widget such as "Accordion" for, with a click, or passing with mouse, open a new legend for each photo. I tried with "Accordion" of Muse, it does not work. I tried copy/paste, mais no result. The wid

    Question.
    I look for integrated in the legend bloc of diaporama, a widget such as "Accordion" for, with a click, or passing with mouse, open a new legend for each photo. I tried with "Accordion" of Muse, it does not work. I tried copy/paste, mais no result. The widget disappear in bloc legend. disparaître. Have you one solution?
    Thank you,
    Loïc

    Accordion or Tabbed panel should to it, with click and open container.
    Please provide site url where this does not work, also if you can provide an example where we can see the exact action then it would help us.
    Thanks,
    Sanjit

  • Please add the option to be able to upload/link new pdfs with the in-browser editing. I have a restaurant client who is constantly updating their menu! Please help so they can do this themselves!

    Please add the option to be able to upload/link new pdfs with the in-browser editing. I have a restaurant client who is constantly updating their menu! Please help so they can do this themselves!

    Thank you so much for your help! I am so relieved. I will have explain how to do this to my client, but a big weight is off my back!
    A long learning process and actually such an easy fix. So glad you responded. Again thank you...

  • In browser editing: Can my client add new images with hyper-links to their websites without having to replace images already there?

    My client would like to be able to add new images to their site themselves and use them as hyper-links to external sites without having to replace an old image with the new one (or blank place holding images - far from ideal). Is there ANY way that this is possible? They do not wish to update and add new images/links regularly and it is certanly not intended to be used as a blog or way of being able to constantly keep content new and fresh otherwise I would set them up with a blog account and add that to the site. It is merely a way of adding links to other local businesses every once in a while.
    Please see the page they wish to update... Friends. (Please excuse the layout... the customer will not be able to resize or edit the images themselves and wishes to add them as-is!)
    Thanks in advance for any help. If anybody knows how I can ask an Adobe official mod, that would be great... that, or make a request for a future addition in an update?
    Warm regards,
    Ben Gathercole

    Hi Andria,
    Changing links is currently not possible with in-browser editing.
    Please post this as a feature request in the following feedback form :
    http://feedback.inbrowserediting.com/?url=
    Regards,
    Akshay

  • New bug in 8.02 - regions confused with each other

    So, I just updated to 8.02, and loaded up a recent project that was half finished (bad idea).
    Now I have some strange bugs going on that I never had before, and they are basic issues.
    My audio regions keep getting confused with each other.
    I have an audio region that I can't open in the sample editor. When I double click on it, the sample editor will bring up the last region I edited, not the new one. I've re-named the region, deleted it and re-added it to the arrange window, but this region will not open in the sample editor.
    I can see it in my media bin, and preview it there, and it plays in my arrangement no problem, but I can't get it to open in the sample editor. In fact sometimes when I click on it, with the media window open, I can see another sample being 'selected' in the media window instead of the proper audio region.
    Scott

    finally i find someone else with the same prob, o already post into apple.com too
    yes here the same, bug new in 8.0.1, cause on logic 8.0.0 all works fine (except some click noise when you pre-listen a file in autoloop)
    however here what i can say to you (it's 3 days i'm studyng this cause i make a massive use of ultrabeat)
    - no matter both power pc / intel soffer of this bug
    - i try to update to leopard from my 10.4.11 (same bug) tryin a new os installation (same bug), tryn without audio card and driver (same bug)
    so i really don't know how to solve it, cause there are only few people that have this problem
    big mistake and big mistery

Maybe you are looking for