Applet needs browser to be restarted ?!?

Hi again.. thats the problem:
1) I open FireFox2
2) i go to the Applet Page and make it start -> OK it works...
3) i close the Applet Page -> shutdown seems to be clear...
4) i go to the Applet Page and make it start -> it loads very quickly but it is unresponsive
5) i close all FireFox2 instances
6) i go to the Applet Page and make it start -> OK it works again..
the same is for IE7... any ideas?
thanks in advice.

You seem to be running afoul of the applet lifecycle somehow.
Perhaps something that should be in start() you've placed in init() or in the constructor.

Similar Messages

  • Scrolling an applet in browser

    I have an JApplet that containes to Jpanel (XYlayout)
    Scrolling this applet in browser cause the screen to flash (blink)
    Any idea why?

    I have a vague recolection that this is something to do with double buffering, which is on and needs to be off or visa versa. I think it's somewhere among the GraphicsContext related objects.

  • My auto install for Premiere Elements failed and told me i needed to do a restart and try installing again. Having restarted my laptop, how do I install the software? There are two .exe files in the folder - oem and start-up. Which should i run?

    My auto install for Premiere Elements failed and told me i needed to do a restart and try installing again. Having restarted my laptop, how do I install the software? There are two .exe files in the folder - oem and start-up. Which should i run?
    thanks

    for windows you should have an exe and a 7z file.  put both in the same directory and double click the exe.
    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Problem in display file in java applet embeded browser

    hi, i am facing problem to display the file from local drive in java applet embeded browser. here is the error message i get:
    Exception loading file from path:java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    i think it should be the java security problem and i have try to get the solution from internet. i try to solve by using the fllowing method:
    keytool -genkey -keyalg rsa -alias yourkey
    keytool -export -alias yourkey -file yourcert.crt
    javac yourapplet.java
    jar cvf yourapplet.jar yourapplet.class
    jarsigner yourapplet.jar yourkey
    but the command prompt ask me to enter the keystore password. i try to enter any password. but i show me the error:
    keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect.
    So may i know what is the problem actually?Thanks a lot.

    Hi,
    here is the sample coding :
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import com.sun.j3d.utils.geometry.ColorCube;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.behaviors.mouse.MouseRotate;
    import com.sun.j3d.utils.behaviors.mouse.MouseZoom;
    import com.sun.j3d.utils.behaviors.mouse.MouseTranslate;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import org.web3d.j3d.loaders.VRML97Loader;
    import com.sun.j3d.loaders.Scene;
    public class SimpleVrml extends Applet implements ActionListener {
    String           location;
    String           initLocation;
    Canvas3D     canvas;
    SimpleUniverse     universe;
    TransformGroup     vpTransGroup;
    VRML97Loader     loader;
    View          view;
    Panel          panel;
    Label          label;
    BranchGroup     sceneRoot;
    TransformGroup     examineGroup;
    BranchGroup     sceneGroup;
    BoundingSphere     sceneBounds;
    DirectionalLight     headLight;
    AmbientLight     ambLight;
    TextField      textField;
    Cursor          waitCursor;
    Cursor          handCursor;
    public SimpleVrml() {
    initLocation="cylinder.wrl";     
         setLayout(new BorderLayout());
         GraphicsConfiguration config =SimpleUniverse.getPreferredConfiguration();     
         setLayout(new BorderLayout());
         canvas = new Canvas3D(config);
         add("Center",canvas);
         panel = new Panel();
         panel.setLayout(new FlowLayout(FlowLayout.LEFT));
         textField = new TextField(initLocation,60);     
         textField.addActionListener(this);
         label = new Label("Location:");
         panel.add(label);
         panel.add(textField);
         add("North",panel);
         waitCursor = new Cursor(Cursor.WAIT_CURSOR);
         handCursor = new Cursor(Cursor.HAND_CURSOR);
         universe = new SimpleUniverse(canvas);
         ViewingPlatform viewingPlatform = universe.getViewingPlatform();
         vpTransGroup = viewingPlatform.getViewPlatformTransform();
         Viewer viewer = universe.getViewer();
         view = viewer.getView();
         setupBehavior();
         loader = new VRML97Loader();
         gotoLocation(initLocation);
    public void actionPerformed(ActionEvent ae) {
         gotoLocation(textField.getText());
    void gotoLocation(String location) {
         canvas.setCursor(waitCursor);
         if (sceneGroup != null) {
         sceneGroup.detach();
         Scene scene = null;
         try {
         URL loadUrl = new URL(location);
         try {
              // load the scene
              scene = loader.load(new URL(location));
         } catch (Exception e) {
              System.out.println("Exception loading URL:" + e);
         } catch (MalformedURLException badUrl) {
         // location may be a path name     
         try {
              // load the scene
              scene = loader.load(location);
         } catch (Exception e) {
              System.out.println("Exception loading file from path:" + e);
         if (scene != null) {
         // get the scene group
         sceneGroup = scene.getSceneGroup();
         sceneGroup.setCapability(BranchGroup.ALLOW_DETACH);
         sceneGroup.setCapability(BranchGroup.ALLOW_BOUNDS_READ);
         // add the scene group to the scene
         examineGroup.addChild(sceneGroup);
         // now that the scene group is "live" we can inquire the bounds
         sceneBounds = (BoundingSphere)sceneGroup.getBounds();
         // set up a viewpoint to include the bounds
         setViewpoint();
         canvas.setCursor(handCursor);
    void setViewpoint() {
         Transform3D viewTrans = new Transform3D();
         Transform3D eyeTrans = new Transform3D();
         // point the view at the center of the object
         Point3d center = new Point3d();
         sceneBounds.getCenter(center);
         double radius = sceneBounds.getRadius();
         Vector3d temp = new Vector3d(center);
         viewTrans.set(temp);
         // pull the eye back far enough to see the whole object
         double eyeDist = 1.4*radius / Math.tan(view.getFieldOfView() / 2.0);
         temp.x = 0.0;
         temp.y = 0.0;
         temp.z = eyeDist;
         eyeTrans.set(temp);
         viewTrans.mul(eyeTrans);
         // set the view transform
         vpTransGroup.setTransform(viewTrans);
    private void setupBehavior() {
         sceneRoot = new BranchGroup();
         examineGroup = new TransformGroup();
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_READ);
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);
         examineGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
         examineGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
         sceneRoot.addChild(examineGroup);
         BoundingSphere behaviorBounds = new BoundingSphere(new Point3d(),
              Double.MAX_VALUE);
         MouseRotate mr = new MouseRotate();
         mr.setTransformGroup(examineGroup);
         mr.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mr);
         MouseTranslate mt = new MouseTranslate();
         mt.setTransformGroup(examineGroup);
         mt.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mt);
         MouseZoom mz = new MouseZoom();
         mz.setTransformGroup(examineGroup);
         mz.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mz);
         BoundingSphere lightBounds =
         new BoundingSphere(new Point3d(), Double.MAX_VALUE);
    ambLight = new AmbientLight(true, new Color3f(1.0f, 1.0f, 1.0f));
    ambLight.setInfluencingBounds(lightBounds);
    ambLight.setCapability(Light.ALLOW_STATE_WRITE);
    sceneRoot.addChild(ambLight);
    headLight = new DirectionalLight();
    headLight.setCapability(Light.ALLOW_STATE_WRITE);
    headLight.setInfluencingBounds(lightBounds);
    sceneRoot.addChild(headLight);
         universe.addBranchGraph(sceneRoot);
    public static void main(String[] args) {
    new MainFrame(new SimpleVrml(), 780, 780);
    cylinder.wrl :
    #VRML V2.0 utf8
    # A cylinder
    Shape {
    appearance Appearance {
    material Material { }
    geometry Cylinder {
    height 2.0
    radius 1.5
    view.html:
    <html>
    <applet code="SimpleVrml.class" width=600 height=600>
    </applet>
    </html>
    error msg that i get :
    Exception loading file from path:java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    i can display the wrl file in applet itself but i can't display in the browser.is it any problem with my code?Urgent, please help me. Thanks.

  • Help, how can i run JavaFX as Applet in browse

    can someone please tell me, how can i run JavaFX as Applet in browse
    thanks

    http://jfx.wikia.com/wiki/FAQ#What_is_needed_on_a_machine_to_run_JavaFX_applications.3F

  • How to switch between jre 1.5.0 and 1.4.2 when running applet in browser?

    Hi,
    I have JRE 1.5.0_05 and 1.4.2_04 installed and currently applet in browser is always run under jre 1.5. How to run the applet under jre 1.4.2 in browser?
    Thanks a lot

    Hi,
    Thanks for the info. I was thinking that the note didn't work for me, apparently I didn't use the conventional APPLET tag.
    Is there other way to switch JRE if I'm not using APPLET tag?

  • Cannot invoke Applet on browser...HELP!

    I cannot invoke Applet on browser however I can invoke the applet on appletviewer.
    Anyone that can help me?
    Thanks.

    youre gonna have some major headaches if your applet uses the swing package..
    IE's support for it is so flaky its not even funny
    If youre using awt then you really shouldnt have a problem viewing in a browser..
    just add this to your HTML code and you should be set
    <applet> code = "yourapplet.class" width = somenumber height = somenumber </applet>

  • Applet within browser not releasing file resource

    hi,
    I have an applet for ftp images upload.
    run from eclipse IDE (which uses applet viewer) the applet is ok.
    if i run my applet from browser here is what happens:
    i upload a file .& leave the browser opened.
    i then open this same file with gimp or photo-shop & get file in use error.
    if i close browser & try opening file .it works ok.
    why the file isn't released when applet instance still on browser ?
    is there a fix to this issue ?
    thanks for helping .

    thanks for prompt reply.
    yes i close all streams...
    the core method i use to upload files is below (client is a FTPClient object)
    private synchronized void putFile(File file, String remoteFile)
                   throws FileUploadException {
              String sFile = null;
              try {
                   sFile = r.chomp(remoteFile, '/');
                   client.put(file.getAbsolutePath(), sFile + file.getName());
                   r.numBytes += file.length();
              } catch (Exception e) {
                   //e.printStackTrace();
                   try {
                        retry(file, sFile);
                   } catch (Exception e1) {
                        throw new FileUploadException(e1.getMessage());
         }what am i doing wrong ?

  • I need to unplug and restart Airport Express

    I need to unplug and restart Airport Express once or more every day. Time to replace or just reset?

    but that's not the problem: Just had new cable broadband installation with new modem from TWC two weeks ago
    No guarantee that the installation is working correctly, just because it is new. I had to have my ISP come back out twice in the week following the initial installation. Each time, after fiddling around, the "tech" said that everything was perfect. It wasn't. The ISP finally replaced the modem, and I haven't had a drop in months.
    Problem may trace to one Mac running OS 10.7+ and the other 10.5+ - there are different levels of Airport Utilities for each
    Does not make any difference.
    I'll take it to a Genius Bar and get it checked - or replaced.
    And, if it works perfectly there....as it likely will....you might want to think about a possible Plan B.
    If the Express is 5+ years old, then it might be a good idea to replace it, if possible.

  • I've been trying to download IOS5 for more than 2 hours. Do I need to stop and restart?

    I've been trying to download IOS5 for more than 2 hours. Do I need to stop and restart the download?

    I think I would cancel it. Unplug phone, then plug back in and then maybe only select download instead of download and install. Thats what I did for our phones and so far we have no issues at all with any of the features - new or old. I don't know why that would make a difference though. But it will allow you to unplug your phone once the download starts and go do your thing while its downloading. Then you can come back later and when u plug in iTunes will ask you to install new software for phone.

  • How to interect with applet within browser

    i want to write a jws that can interact with the applet (inside browser)
    sample:
    i write a caculator, all the class are in jlnp(jws) except the interface,
    user only can access and see the interface(applet) when he/she come to my website. (ofcouse ,i just wan to promote my ad).
    so, can give me some hint how to interact jws and applet that within browser,
    like jws to

    Hi
    If your database is oracle 9i you connect to database throgh isqlplus.During the installation of database it diplays http server with port number.Check the port number with 7778
    ExmPLE : HTTP://MACHINENAME:7778/ISQLPLUS
    Regards
    Mohan

  • In 7u51, will all jars referenced by the applet need to be updated to include the Permissions Manifest attribute ? Or, will it be limited to the jar that contains the applet code ?

    To whom it may concern,
    According to Java RIA checklist(http://www.oracle.com/technetwork/java/javase/overview/ria-checklist-2055184.html),
    as of 7u51(January 2014), Permissions Manifest attribute in main JAR file will be required.
    But, at least, as of 7u45, when the Security Level slider is set to Very High,
    a jar without Permissions Manifest attribute, which doesn't contain the applet code but is just referenced by the applet,
    prevent the applet from running.
    So, the question is:
    In 7u51, does it mean that all jars referenced by the applet need to be updated to include the Permissions Manifest attribute ?
    Or will it be limited to the jar that contains the applet code?
    There is a concern that we will have to modify library jars that we do not control.
    Sincerely,
    Toshio Shiko

    Thank you for your quick response and your investigation!
    It do help us very much.
    But, unfortunately, for the moment, I'm not allowed to test the early access version.
    As soon as circumstances are changed, I' d like to test it.
    Again, thank you for your providing of the useful information.

  • DISPLAY APPLET IN BROWSER

    hi ..... i'm asking about solution for my problem which is how can i let my browser (explorer oR Netscape) to read from file and write to file in my pc..
    my applet is working with AppletViewer which i can read and write to file in my pc ,but when i load it in the Browser(netscape) it just read and do't write....
    in the explorer it not reading and not writing ..
    i changed the security in the browser option ,,,but no thing happend ...
    i need solution please for my problem ,,,and if you can tell me about browser which will do it for me ,,(i tried hotjava browser)
    thanx

    You need to sign your applet...see link below for info and example on how I did it:
    http://home.attbi.com/~aokabc/FileIO/FileIOdemo.htm
    The first few links in this page will give you the info you need to get started.
    V.V.

  • Scrolling applet - need help

    I have an applet that contains too much information to fit on the screen, so I need a scrollbar so I can view the rest. The kind of scrollbar that's on the side of a web browser that lets you scroll down to view the rest of the page. It's a class that extends Applet and implements MouseListener and ActionListener. I've looked around the internet for the solution for an hour and found nothing. Any help would be much appreciated

    Put a JScrollpane your ScrollPane as the main Panel of your applet, then put the content of your applet in a JPanel yourPanel and finaly call yourScrollPane.setViewPortView(yourPanel).
    Try that. It should work.

  • File upload applet without browsing

    hi all,
    i m a php developer, i need a java applet to be embedded in html, that contains a button (upload), on clicking that all text files from a predefined location, without browsing, in the clients computer could be uploaded to server.
    help me from the scratch.
    thankyou

    Applets are a PITA. Applets that deal with the local file system need to have 'full trust' and that is a complete PITA, especially with the Vista UAC problem that restricts even trusted applets to a particular set of sub-directories (in user.home, AFAIR).
    A better strategy might exist if you can..
    a) write to a ZIP archive from PHP? (which can reduce all the reports to being contained in a single file*).
    b) Invoke 'shell commands' from PHP, as you might from the command line interface, the Windows Command Prompt?
    If both those answers are 'yes', I would recommend dumping the applet for a JWS launched application that uses the JNLP API's [file service|http://pscode.org/jws/api.html#fs].
    Try especially the sandboxed version of the demo.
    Using webstart, this might all be achieved 'sandboxed'.
    It would work like this.
    The PHP script writes all the reports to a single zip archive with file extension '.reportarchive' instead of '.zip'.
    After the reports are prepared and stored, two shell commands are required.
    javaws -import -association -silent http://www.our.com/upload.jnlp
    ..and..
    javaws -open C:/the/path/the.reportarchive http://www.our.com/upload.jnlp
    The first installs the uploader application to the user cache, while the second tells webstart to open the uploader app. with the reportarchive file name as the runtime argument.
    Once the user has OK'd the access to the reportarchive, the rest (uploading it) can be done automatically (with a progress bar).
    * Note that if you cannot easily write a Zip using PHP (shrugs) that .reportarchive file type might instead be a .reportlist which simply contains the path/names of the other report files.
    If the user fails to select the 'always allow' option for the file list, they will be prompted for each file (until they do). The advantage of the archive is that the user is only ever asked once.
    And as an aside, how exactly is the PHP script invoked to run?
    Note that a good way to indicate interest in a solution is to add [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.

Maybe you are looking for