Works in applet viewer but not in internet explorer

I origionaly posted this on devshed. I got 55 views but no replies. It seems to be a common problem to which no one knows the answer. Surprise me :O)I'm sure this is a really common but there seems to be surprisinly litttle on the web about it.
I developed a game applet a while ago in applet viewer and am now thinking about putting it on my web site. However I have found that it doesn't work in internet explorer. I can browse other sites using Java fine. There is clearly just something about my applet that ie doesn't like.
Does anyone have any suggestions? What sort of things upset ie?
All help very much apreciated, you are very nice people
Flo.

There must be some thing that tells you it isn't working. You should tell us so we don't have to guess. Does the browser hang? Do you get an error? Did you try opening the Java Console to see if there were any messages? I am guessing that your code is using something that the security level of an Applet does not allow (but appletviewer does allow).

Similar Messages

  • Applet works in applet viewer but not in website.

    I am an experienced programmer, but new to java (second week). I have made working client/server chatroom in java that works when I use the applet viewer, but when trying to run the applet in an html file, I get this error.
    java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.1.3:5136 connect,resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at client.Client.init(Client.java:34)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.1.3:5136 connect,resolvI am unsure how to fix this. My first guess is that it is a security issue. Do I need some certificate or something?

    I am trying to connect an applet to a server application run on my computer. The server application is run in the eclipse ide, but I doubt that makes a difference.
    When connecting to the server from the client run through the eclipse ide with the app viewer, everything works fine. When making an html file for the app and running it also on that computer it fails.
    I tried using localhost instead of my internal ip address, and it gave the same errors. I will try signing next, but there must be a way to get this to work without that.

  • Applet works on applet viewer but not in html, why not?

    I'm using Eclipse as a development system and the Eclipse applet viewer shows my applets with no problem. They work the way I expect them to work and all is well.
    When I try to run them in Internet Explorer, I first get a security warning. OK, I trust myself, so I tell Internet Explorer to run the applet. All I get is the text "Hello Dolly", but the applet doesn't run.
    I tried refreshing it, running it again, allowing popups and opening the file, but it just won't run. What could be wrong with something so trivial?
    Any suggestions would be appreciated.
    <html>
    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Hello to Everyone</title>
    </head>
    <body>
    <applet CODE="Hello.class" width=300 height=100>Hello Dolly
    </applet>
    </body>
    </html>

    Sorry, I didn't think there was anything special in the applet.
    This just happens to be what I'm checking at the moment.
    It has changed depending upon where in the tutorial I find myself.
    Thanks for you help.
    It has to be something really stupid that I'm missing, but since I'm still new at this game, I can miss something obvious to everyone else.
    package hello;
    import java.applet.Applet;
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.util.Date;
    public class Hello extends Applet implements Runnable {
         private static final long serialVersionUID = 1L;
         Color colors[] = new Color[50];
         Date date1 = null;
         Thread run1 = null;
         Font f1 = new Font("Ariel", Font.PLAIN, 14);
         public void run() {
              int i = 0;
              Thread currThread = Thread.currentThread();
              while (currThread == run1) {
                   setForeground(colors);
                   repaint();
                   i++;
                   if( i>= colors.length) i = 0;
                   try { Thread.sleep(50); }
                   catch (InterruptedException e) {}
         public void init() {
              int i;
              float c = 0.0f;
              for(i=0; i<colors.length; i++) {
                   colors[i] = Color.getHSBColor(c, 1.0f, 1.0f);
                   c += 0.2f;
         public void start() {
              if (run1 == null) {
                   run1 = new Thread(this);
                   run1.start();
         public void stop() {
              run1 = null;
         public void paint(Graphics g){
              date1 = new Date();
              g.setFont(f1);
              g.drawString(date1.toString(), 10, 50);

  • Applet works in applet viewer but not browser...why?

    I won't go into the code, but here's my problem: I work on my applet using Eclipse and its appletviewer, and the applet works fine. I test my applet once in a while by packing all class files and graphics into a jar file, copying it and html file to my desktop and opening the html file. Before, this would work (the applet would get all its info from the jar file), but now... I get a nullpointer exception when I open the browser. If this were to happen in Eclipse, I'd have some way of tracking it. Is there some way of tracking this problem when its seen in a browser?

    here's certain key parts of my code... I think this whole "applet not working outside of the project folder" thing started ever since I changed my init() and start() functions so...
         public void init()
              t = new Thread(this);
              t.start();
              addKeyListener(this);
              addMouseListener(this);
              addMouseMotionListener(this);
              sound = new SoundList(); 
         public void start()
              URL resdir;     
              resdir = getClass().getResource("Graphics/Spacebackdrop_01.jpg");
              backgrndImg = new ImageIcon(resdir);
                   resdir = getClass().getResource("Graphics/Ship_Blue.gif");
              player1 = new Ship(100, 300, new ImageIcon(resdir), this,
                        gameRect, sound);
              player1.setOrientation(90);
              resdir = getClass().getResource("Graphics/Ship_Green.png");
              player2 = new Ship(700, 300, new ImageIcon(resdir), this,
                        gameRect, sound);
              player2.setOrientation(270);
              resdir = getClass().getResource("Graphics/Ball.gif");
              ball = new Ball(50, 50, new ImageIcon(resdir), this,
                          gameRect, sound);
              initMenus();
              //Initialize the goals
              resdir = getClass().getResource("Graphics/Goalpost.png");
              ImageIcon goalImg = new ImageIcon(resdir);
              goal1 = new Goal(8, gameRect.height/2, 100, goalImg, this);
              goal2 = new Goal(gameRect.width - 8, gameRect.height/2, 100, goalImg, this);
              font = new Font("Verdana", Font.BOLD, 16);
         public void initMenus()
              startMenu = new Menu();
              pauseMenu = new Menu();     
              confirmMenu = new Menu();
              int setY = 200;
              ImageIcon img = new ImageIcon(getClass().getResource("Graphics/newgame.png"));
              ImageIcon imgRoll = new ImageIcon(getClass().getResource("Graphics/newgame_h.png"));
              ImageIcon imgPressed = new ImageIcon(getClass().getResource("Graphics/newgame_p.png"));
              startMenu.addCenteredButton(img, imgRoll, imgPressed, setY, 0, gameRect.width);
              pauseMenu.addCenteredButton(img, imgRoll, imgPressed, setY, 0, gameRect.width);
              setY += 20;
              img = new ImageIcon(getClass().getResource("Graphics/resumegame.png"));
              imgRoll = new ImageIcon(getClass().getResource("Graphics/resumegame_h.png"));
              imgPressed = new ImageIcon(getClass().getResource("Graphics/resumegame_p.png"));
              pauseMenu.addCenteredButton(img, imgRoll, imgPressed, setY, 0, gameRect.width);
              img = new ImageIcon(getClass().getResource("Graphics/Yes.png"));
              imgRoll = new ImageIcon(getClass().getResource("Graphics/Yes_h.png"));
              imgPressed = new ImageIcon(getClass().getResource("Graphics/Yes_p.png"));
              setY += 25;
              int imgWidth = img.getIconWidth();
              confirmMenu.addButton(img, imgRoll, imgPressed, gameRect.width/2 - imgWidth, setY);
              //startMenu.activate(); //make starmenu active.
              img = new ImageIcon(getClass().getResource("Graphics/No.png"));
              imgRoll = new ImageIcon(getClass().getResource("Graphics/No_h.png"));
              imgPressed = new ImageIcon(getClass().getResource("Graphics/No_p.png"));
              confirmMenu.addButton(img, imgRoll, imgPressed, gameRect.width/2 + 2, setY);
         }

  • Works fine with Safari but not with Internet Explorer

    Hi, I just created a website using iWeb, and it looks great in Safari in my Mac and iphone, but when I try to open it in Vaio using Internet Explorer, I get some problems. Sometimes the page just don't open, and when it opens, the fonts are not the same, and things are moved around. What can be the problem and how can I fix it? By the way, I use mobile me for hosting, and my site is www.ogucuo.com
    Thanks!

    When you use a font that is not "Web Safe" the computer that downloads your page may not have that font installed. It substitutes another one and this causes the text box to expand and push the other stuff around.
    If you enter some text into a box on an iWeb page and then change the font you will see how the text box expands to accommodate a bigger font.
    If you really want to use a special font, sparingly, convert it to an image by typing it into a shape or putting a slight shadow on it in the "Graphic" inspector. The iWeb help menu will tell you about this.
    If you turn on "Show text imaging indicator" in iWeb preferences you will get a visual indication of the text being converted to an image.
    I say sparingly because each image increases your page file size and download time.

  • I am getting an Error 5.7.1 message when I send emails on Firefox; but not on Internet Explorer. Why?

    I am receiving an Error 5.7.1 message when I try to send emails, or respond to emails on Firefox; but not on Internet Explorer. It just started doing this today.

    iCloud also doesn't do tunes with bitrates below 96 Kbps.

  • Why do headings turn Chinese when I access my email via Firefox but not via Internet Explorer?

    Why do headings turn Chinese when I access my email via Firefox but not via Internet Explorer?

    hello, this is a displaying flaw caused the mcafee site advisor extension - please try to disable or remove that in case you have it present until there is an update by mcafee that can fix the problem.
    http://service.mcafee.com/faqdocument.aspx?id=TS100162
    https://community.mcafee.com/thread/76071

  • Signed applet runs in Firefox but not in Internet Explorer

    I've signed an applet with
    keytool -genkey -validity 3650 -keyalg rsa -alias ddkey
    keytool -export -alias ddkey -file ddcert.crt
    jarsigner planner.jar ddkey
    jarsigner -verify -verbose -certs planner.jar
    but loaded from the webserver with...
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>Planner </TITLE>
    </HEAD>
    <BODY>
    <APPLET CODE="mypack/Planner.class" ARCHIVE="planner.jar" WIDTH="100%" HEIGHT="100%">
    <PARAM name="customer" value="mycustomer">
    </APPLET>
    </BODY>
    </HTML>
    .... the applet only works with firefox and not in Internet Explorer. Even with a new certificate, IE does not ask me whether I trust the applet or not. Only a blank screen with a red cross..
    In spite of having configured "show Java console", the Java console is NOT opened in the task bar, so I cannot add further log messages....
    Why do the two browsers behave differently?? How can I fix it?
    Appreciate any hint :-)

    When I see "it doesn't work in IE" I always have to ask: Windows 7? 64 bits system? Are you sure you are running this in the 64 bits internet explorer? The default IE is the 32 bits version, so if you don't have a 32 bits Java runtime installed applets are not going to work at all, signed or otherwise.

  • JMF works in Applet View, but in web browser, cannot find device

    I'm developing an Applet which can capture image from a web camera.
    It's working very well in the applet view, but it says "No devices" error message through web browser.
    How can I make it work? How can I find device on the web browser?
    I changed permission using "java JMFRegistry", and tried signed Jar.
    Anyone can help me?
    or some of samples would be appreciated...

    Applet view means Applet viewer..

  • Applet running in IDE's applet viewer but not within browser

    Hello,
    I have this applet which runs perfectly on JBuilder4's Applet viewer but when I access the HTML file which JBuilder generated as part of the applet creation the applet won't run.
    The parameters in the applet tag in the HTML file are correct, i.e. the code attribute of this tag has as its value the correct class that implements the applet.
    The only io operations associated with the applet are writing/reading objects to the socket's input/output stream, to communicate with a threaded server which has been started before running the applet. It all runs on the local host. So, I'm not sure it should be signed for it to run in the browser, should it?
    I have tried several browsers, and have the latest java plug-in installed.
    Any comments on this?

    Check this link which might be helpful:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=126261

  • My page works in Safari, but not in Internet Explorer

    I am working on a new site, www.icu-usapro.com. I am working
    on a mac and have the page looking and working fine in safari, but
    when i view it in Internet Explorer, the menu at the top moves and
    the links do not work. I imported the top from fireworks as HTML
    and used javascript to get the buttons to work. Could someone help
    me find out why it changes from browser platforms, I really need it
    to work in IE.
    thanks,
    Tom

    Just noticed that in IE and FireFox (Mac) your menubar
    overwrites part of the graphic in the top left.
    I tend to use FireFox (with the JavaScript console open) when
    developing stuff and then test in Safari every now and again to
    make sure it looks ok there, rather than use Safari during
    development and testing occasionally in Firefox (or Camino).
    Ab

  • Lightbox widget works properly on dreamweaver but not on internet browser

    Hi,  I am using Dreamweaver CS5 & I used lightbox gallery widget through insert widget on insert panel menu. I edited the image source so everything seems working fine when I preview it on live button (local view). but when i try to view it on internet browser, it only shows the picture and when I click on the photo, it will come out at the very end of the page instaed of just zooming in & make the background darker. Here's the link of my webpage that I am talking about. http://www.thefamily-connect.com/Pages/Tina%20&%20mike%20photos.html
    I have the same problem with Spry Image Slideshow, when I view on internet browser, it says error 404 is found.
    What am I missing to make these widget work in internet.  kindly  email me your reply at [email protected]
    Thanks!
    Joyce Forrest

    sorry, I did not have experience about this... I can only read your problem.

  • Java chat program, works on single PC, but not over internet?

    I got bored so I started writing a chat client in java, its IRC style, a server and as many clients as you want. It works fine on a single computer (using 127.0.0.1 as the IP) but not over the internet.
    I've tried running the server and client on my home PC, set up the ports to be forwarded on my router and enabled them in the windows firewall but I get the error "Connection refused" when trying to connect using my external IP (ISP) address, same with me running the server and a mate running the client.
    The class chatHandler was basically stolen off the internet, the rest I wrote myself or modified bits of code to suit. I wrote it in netbeans with the GUI builder.
    I've hosted both projects in the single zip, if you want to run the application just open the .jar file in the dist folders, or view the source via the src folder, or alternatively you can load the project up in NetBeans so its easier to play with the GUI.
    So yeah if anyone can help me out with why its not working that'd be great, I've added the port to my firewall (default 60111). My ultimate goal is to implement an actual protocol so it isn't just sending plain text, then I can easily send files to mates etc.
    http://rapidshare.com/files/208309140/ChatProgram.zip.html
    Edited by: rolls on Mar 12, 2009 4:58 AM

    what I have done recently is this:
    have added java.exe, javaw.exe, the ports Im using to the windows firewall and also the ports I am using to my router.
    I have also tried changing :
    server = new ServerSocket(port);
    to:
    InetAddress IP = InetAddress.getByName(IPAddress);
    server = new ServerSocket(port, backlog, IP);
    (IPAddress = 192.168.1.3 my lan NIC)
    As I believe it was binding to my local loopback adaptor, hence not seeing any packets when using a packet analyser, however now I get an exception, after printing a stacktrace from the client I get this.
    However I can now connect using 192.168.1.3 just not using my external IP address.
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366)
    at java.net.Socket.connect(Socket.java:519)
    at java.net.Socket.connect(Socket.java:469)
    at java.net.Socket.<init>(Socket.java:366)
    at java.net.Socket.<init>(Socket.java:180)
    at chatclient.Client.run(Client.java:60)
    at java.lang.Thread.run(Thread.java:619)
    Why is my connection getting refused? I've set up a virtual server and port forwarding on my router, and turned off the windows firewall.

  • Slideshow works on desktop viewer, but not on iPad

    I have an MSO slideshow that works great on the desktop viewer, but when previewed on the iPad it just shows the first state and doesn't transition to the next state.
    We have made slideshows before that work on both the desktop and iPad content viewer and can't seem to figure out what is causing these not to work. The filename links don't have any special characters or spaces in them. What causes this to happen?

    By any chance, do you link to the MSO from buttons in a scrollable frame? If so, you need to use a different method to convert the MSO to a slideshow. For example, you can select the MSO and choose "Swipe" in the Overlays panel, or you can create an invisible button with a "Go to Next State" action.

  • Slideshow widgets work in Safari but not in Internet Explorer.

    I have tried both the Spry Image Slideshow with Filmstrip and the Spry Image Slideshow - Basic. They work well in Safari but they skip images in Internet Explorer. I am using the default widgets in each instance. In IE only the 1st, 3rd, 5th, 7th, 9th, 11th, 13th and 15th slides display and they do so without any real transitions. I haven't tried other browsers yet.  Any suggestions? Thanks.

    I'm having a similar issue. The Spry Slideshow - Basic widget works great in Firefox, but won't work in IE8.
    Here's the test link I set up. http://arts-festival.com/TESTSLIDE.php
    The page I set it into originally (isn't officially live, still up for testing purposes) is http://arts-festival.com/index2010.php
    Error is:
    Invalid Argument.
    Line: 389
    Char: 3
    SpryDOMEffects.js
    Code: 0
    URI: http://www.arts-festival.com/Spry-UI-1.7/includes/SpryDOMEffects.js
    Any suggestions?
    Thank you!
    Theresa

Maybe you are looking for

  • Error code when emptying trash

    I'm getting the following message when I try to empty the trash: The Finder cannot complete the operation because some data in "" could not be read or written. (Error code -36) I've tried Secure empty trash and "option" empty trash and nothing seems

  • Trying to display an image with eclipse

    this is the code: import javax.microedition.lcdui.*; import java.io.IOException; public class DrawImageCanvas extends Canvas{      static Image image;      public void paint(Graphics g){           int width = getWidth();      int height = getHeight()

  • Magic Mouse: Scrolling/Swiping not working

    I just bought a Magic Mouse for my MacPro. I downloaded and installed "WirelessMouseSoftware.dmg" Got it BT connected, but the multitouch surface doesn't works. I can't scroll or swipe or anything as it should do. Any tips for such problem? Thanks

  • My iTunes Match never completes the match process.

    Most songs in my library are matched, however it never completes the task.  This has been going on since I turned on Match months ago.  Do I have a corrupted file?

  • Button tregers twice

    hi... i have a button inside a movie clip.I want to open a site in a browser window when i clicks the button so i write the script inside the button .But when i click the button two windows are opening with the same url...[the movie clip has animatio