AppletViewer won't run an applet that runs in Internet Explorer?? Whats up?

I have an applet that I created. It runs in Internet Explorer perfectly. I mean perfectly, every single time, without a problem.
But, if I try to run appletviewer with this applet, it gives all kinds of exception messages: Ever seen this before?
Thanks!

Why not just paste the applet code. I know it is simple, but here it is. I am new to java so you may see some weird code for sure.... It is suppose to countdown to a given date/time... Just something simple to help me learn Java.
If anyone else has time and wants to compile it and try to get it to run as an Active Desktop Item that would be super cool
Thanks!!!!
Here is the html page code:
<HTML>
<HEAD>
<TITLE>Countdown Applet</TITLE>
</HEAD>
<BODY>
<APPLET CODE="PKVTimer.class" HEIGHT=30, WIDTH=120>
     <param name=BackColorRed value="0">
     <param name=BackColorGreen value="128">
     <param name=BackColorBlue value="0">
     <param name=ForeColorRed value="255">
     <param name=ForeColorGreen value="255">
     <param name=ForeColorBlue value="255">
     <param name=Year value="2003">
     <param name=Month value="9">
     <param name=Day value="27">
     <param name=Hour value="6">
     <param name=Minute value="30">
</APPLET>
</BODY>
</HTML>
Here is the code:
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.util.*;
class TimeInMillis extends GregorianCalendar {
     public long getMillisForDate(Calendar calIn) {
          getInstance();
          setTime(calIn.getTime());
          long now = getTimeInMillis();
          return now;
public class PKVTimer extends Applet implements Runnable
     private Thread thThread;
     private Label tfCountdown;
     private Panel P1;
     private Calendar clCalendar, clHuntCalendar;
     private String sDays, sTime, sHrs, sMins, sSecs;
     private int iYear, iMonth, iDay, iHour, iMinute;
     public void init()     
          String cRed = getParameter("BackColorRed");
          String cGreen = getParameter("BackColorGreen");
          String cBlue = getParameter("BackColorBlue");
          String cfRed = getParameter("ForeColorRed");
          String cfGreen = getParameter("ForeColorGreen");
          String cfBlue = getParameter("ForeColorBlue");
          iYear = Integer.parseInt(getParameter("Year"));
          iMonth = Integer.parseInt(getParameter("Month"));
          iDay = Integer.parseInt(getParameter("Day"));
          iHour = Integer.parseInt(getParameter("Hour"));
          iMinute = Integer.parseInt(getParameter("Minute"));
          Color background = new Color(Integer.parseInt(cRed),
                              Integer.parseInt(cGreen),
                              Integer.parseInt(cBlue));
          Color foreground = new Color(Integer.parseInt(cfRed),
                              Integer.parseInt(cfGreen),
                              Integer.parseInt(cfBlue));
          // Set the applet background color to match the label background
          setBackground(background);
          tfCountdown = new Label("asdfasdfasdfasdfasdf");
          tfCountdown.setBackground(background);
          tfCountdown.setForeground(foreground);
          tfCountdown.setFont(new Font("Arial",Font.PLAIN,10));
          P1 = new Panel();
          P1.setLayout(new FlowLayout(FlowLayout.LEFT,0,2));
          P1.add(tfCountdown);
          add("North",P1);
          tfCountdown.setBounds(10,10,300,30);
          clHuntCalendar = Calendar.getInstance();
clHuntCalendar.set(iYear,iMonth-1,iDay,iHour,iMinute,0);
          sTime = new String();
          thThread = new Thread(this);
          thThread.start();
     public void run()
          while(true)
               clCalendar = Calendar.getInstance();
               TimeInMillis gcTM = new TimeInMillis();
               long lMilliHunt = gcTM.getMillisForDate(clHuntCalendar);
               long lMilliNow = gcTM.getMillisForDate(clCalendar);
               if (lMilliNow >= lMilliHunt) {
                    tfCountdown.setText("Go Bust One!!!");
                    this.stop();
                    return;
               long elapsedTime = lMilliHunt - lMilliNow;
               long lTemp, lDays, lHrs, lMins, lSecs;
               lTemp = elapsedTime/(60*60*1000L);
               lHrs = lTemp;
               lDays = lHrs / 24;
               lHrs = lTemp - (lDays * 24);
               if (clCalendar.get(clCalendar.SECOND) >= clHuntCalendar.get(clHuntCalendar.SECOND)) {
                    lSecs = 60 - (clCalendar.get(clCalendar.SECOND) - clHuntCalendar.get(clHuntCalendar.SECOND));
                    clCalendar.set(clCalendar.MINUTE,clCalendar.get(clCalendar.MINUTE)+1);
               else {
                    lSecs = (clHuntCalendar.get(clHuntCalendar.SECOND) - clCalendar.get(clCalendar.SECOND));
               if (lSecs == 60) {
                    lSecs = 0;
               if (clCalendar.get(clCalendar.MINUTE) >= clHuntCalendar.get(clHuntCalendar.MINUTE)) {
                    lMins = 60 - (clCalendar.get(clCalendar.MINUTE) - clHuntCalendar.get(clHuntCalendar.MINUTE));
               else {
                    lMins = (clHuntCalendar.get(clHuntCalendar.MINUTE) - clCalendar.get(clCalendar.MINUTE));
               if (lMins == 60) {
                    lMins = 0;
               sDays = String.valueOf(lDays) + " Days ";
               if (lHrs < 10) {sHrs = "0" + String.valueOf(lHrs);} else {sHrs = String.valueOf(lHrs);}
               if (lMins < 10) {sMins = "0" + String.valueOf(lMins);} else {sMins = String.valueOf(lMins);}
               if (lSecs < 10) {sSecs = "0" + String.valueOf(lSecs);} else {sSecs = String.valueOf(lSecs);}
               sTime = sDays + sHrs + ":" + sMins + ":" + sSecs;
               tfCountdown.setText(sTime);
               try {
                    thThread.sleep(1000);
               } catch (InterruptedException e) {}
     public void stop()
          thThread = null;

Similar Messages

  • Applet won't run in Internet Explorer

    I am having problems running applets that I create. They don't run in Internet Explorer. Other applets will run in the browser but it seems to use the Microsoft VM, not the JVM from Sun. The Mozilla Firefox browser will run all applets using the JVM from Sun.

    to api00
    If you cannot see an entry in IE Tools menu named Sun Java Console and open it , then do the following.
    1.Open Windows' Control Panel and look for an entry "Java Plug-in".
    - If it's not there, go here http://java.com/en/index.jsp and click the "Get It Now" button to install the Java Plug-in.
    - If it's there, click it, and then the Browser tab. Make sure that "Internet Explorer" is checked, then close all instances of IE. Go to this page and try one of the applets: http://java.sun.com/j2se/1.4.2/docs/relnotes/demos.html
    2. If that doesn't resolve the problem, remove ALL Sun Java stuff that you can find - check directories and the Registry - and do a clean install of Java.
    to twinkietwin
    Question 1: It appears that you typed the error text in your message #8, because there are capitalization and spelling problems that do not exactly match the errors that Java produces. Is this the case? If so please cut and paste the verbatim text of the errors from the window that appears when you click on the "More Details" button of the "Error - Java General Exception" box. (The EXACT and TOTAL error test is important.)
    It appears that the applet is attempting to acquire the value of some variables from the HTML code that calls the applet, but for some reason it cannot find the HTML file named "example1.htm" that contains the variables. One possibility is that there is a file on your computer named either example1.htm or example1.html that is being found first. Check your machine for files with one of these names; if found, temporarily rename it to something else and try the Sun BarChart applet from the demo page again.

  • When I try to but on line, the last action is to verify payment using my password for my banks verification screen, but the payment process won't then complete. it's fine with internet explorer, what setting do i need to change on Firefox? thnaks

    Trying to buy goods/services on line using Firefox and all is fine until I get to the final screen, which is my banks verification screen (an added security). The payment then fails. I've used thsi happily before on Firefox, and it currently works fine on Internet Explorer - but no longer on Firefox. Have I inadvertently changed some security settings? I'm not aware that I have?
    I'm keen to use only Firefox for financial transactions, so the lack of this facility is worrying me

    Not sure if this Term is Relevant towards an iPhone but, my iPhone won't Post unless if it's plugged into a Charger.

  • Help Flash player will not run in Internet Explorer 11?

    I have downloaded Adobe Flash Player and it will not run in Internet Explorer 11.  I have done the things suggested in the help/forum section. What else can I try?

    This is a known problem with Internet Explorer 11, which Microsoft has been aware of since October 18 when they released their latest "untested" browser. The pages can't recognize the browser, so they don't recognize any of the plugins, like Flash Player. So far, Microsoft has made NO indication that they have any plan to fix it soon.
    Microsoft's recommendation is to use Compatibility View for affected pages, and "pretend" you're using an different browser. Trouble with that is it has seen limited success at best, and you have to individually enable it for EVERY page that has problems.
    I'm not big on "pretending" so I recommend actually using another browser.
    Firefox (from Mozilla)
    Opera (from Opera)
    Safari (from Apple)
    Chrome (from Google)
    ANY of those will work where IE11 won't, with the Flash Player Plug-in (For all other browsers), and Chrome doesn't even need that because it has its own Flash Player plugin built in.

  • Can't open a website that supports only Internet Explorer

    hi, i can't open a website that supports only Internet Explorer (high-q.co.il - which i need badly for my bachlor dagree)!! 
    my mac runs OS X 10.9.2 system operation. i cant open this site with: chrome,opre,firefox,safari...
    what should i do?

    Try changing your browser agent using the Developer menu your browser preference can enable.
    If that doesn't work, complain to your college dean that the website violates accessibility laws, and should follow http://www.w3.org worldwide conventions to ensure accessibility.  Do not enter any personal information if you are forced to use Windows to browse the website, as it may be insecure.
    https://discussions.apple.com/docs/DOC-2741
    offers several solutions to run Windows on your Mac.

  • Cannot find procedure for instructions that apply to Internet Explorer

    I've been having problems viewing pages (especially wordpress in admin mode) as well as downloading pdf documents that show actual screen.
    One issue is with British Gas, who sent me the following instruction that applies to Internet Explorer, which I tried to adapt to Firefox. However, I can't find a menu that would have similar functions.
    These are the IE instructions:
    - Click on Tools on toolbar in your internet browser window
    - Select Internet Options
    - Click on Advanced
    - Scroll down to security heading
    - Uncheck box titled Do not save encrypted pages to disk
    - Click on Apply
    - Click on OK
    Thank you for your feedback.

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls

  • I need an Ipad app web browser that will emulate internet explorer as my MLS real estate system only uses internet explorer.  Why is Atomic full version not available in the app store  is there another browser that will do this

    I need an iPad app web browser that will emulate internet explorer as my MLS real estate system uses only internet explorer.  Why does Atomic no longer sell the full verison.  What web browser can I use?

    Probably none. It's very possible that the reason the MLS required Internet Explorer is that they use technologies (such as Active-X) that are proprietary to Microsoft and so would not be available from the iPad even if a browser will report itself as being Internet Explorer.
    You can try iCab Mobile, though, and see if it will work for you:
    http://itunes.apple.com/us/app/icab-mobile-web-browser/id308111628?mt=8
    It has the ability to identify itself as other browsers, so if the site is only blocking other browsers and not depending on IE's technology, iCab might work. There could be problems, though, even if the site lets you in.
    Hope this helps.

  • Photo Album Won't Run From Internet

    CS4 - I posted earlier that my photo albums won't run from the internet but runs from my computer and from a flash drive. I have rebuilt it probably 10 times. The URL is http://www.kandjreynoldsconstruction.com/gallery/index.html. Albums that I've built before are still running. Any Help would be great. Donna

    Be sure that all the necessary supporting elements—javascripts, css, and images—have been uploaded to the server as well, using the same folder structure as the local version of your photo album. (Based on a look at the index page's source code, it seems that elements may be missing.)

  • Need to run IE (Internet Explorer) any other way besides Parallels?

    New to Mac (part II). Ok, new to Mac part II means I tried a couple years ago but because I was dependent on MS products and IE (have to have IE for real estate) I had to switch back to PC. Now with new Intel chip and am happy to say I am the proud new owner of a MacBook which brings me to my question.
    I'd love to be able to toss my PC and never return to it again but I can't unless I can find a way to run IE. I am running Parallels/Vista and can access IE that way but man does that cause the Mac to run up it's activity.
    I have 2GB of RAM and the activity monitor with Parallels running shot over 100% just this program alone. The fan was blowing.
    I only need IE for one purpose; to access the MLS (I am in real estate and it's all they authorize to access the MLS - Multiple Listing Service). Is there another way to immulate IE without going through the trouble of running Parallels?
    It makes me uneasy to have the fan working as hard it is running Parallels or am I being overly cautious? Thanks.
    I

    Thanks, Opera did not work. As for BootCamp, the reason I choose Parallels was for the convenience of NOT having to reboot in and out all the time. With Parallels I can run the program within Mac and just click back and forth. I guess when I have to access it I'll just put up with the amount of resources it takes up.
    Thanks for all the assistance.
    FYI - here is the message I get.
    Thank you for your interest in the MLS System
    The MLS System was specifically designed for Internet Explorer versions 6.0 or greater. Your browser version is not supported. To download the latest version of Internet Explorer, visit the Internet Explorer Downloads Web site.
    Once Internet Explorer is installed, you can go to the MLS System site by typing http://mfr.mlxchange.com into the address bar.
    The MLS System is the premiere web application that helps Realtors get the most out of their business.

  • Getting error in some groups running in Internet Explorer 7

    Hi,
    I am using
    JDeveloper version: Studio Edition Version 10.1.3.1.0.3984
    JHeadstart version: 10.1.3.1 Release 10.1.3.1.26
    I have some groups in JHeadstart Application Definition with Table/Table-Form Layout with Multi-Row Insert/Update allowed is true.
    If I run the application in Internet Explorer 7 and try to Save records in Table Layout (as Multi-Row Insert/Update allowed is true) it gives an error - "Object Required" and does not save the record. But some forms with Table Layout work.
    If I run the application in Internet Explorer 6 or Mozilla Firefox then it works fine.
    Any help would be appreciated.
    Thanks
    Syed Jabbar
    University of Windsor
    Windsor, ON, Canada

    Hi Syed,
    This sounds like a JDeveloper/ADF issue that is not related to JHeadstart. To test this: do you also get this bevaviour when using a drag & drop application with plain ADF? Do you also get it when you generate a fresh, new JHeadstart table page?
    If you get this with plain ADF: can you please ask this question at the JDeveloper forum at JDeveloper and ADF ?
    If you get this with plain JHeadstart: then please come back here!
    Regards,
    Evert-Jan de Bruin
    JHeadstart Team

  • Trouble getting Flex 4.1A to run using Internet Explorer 11

    We have an application that is a Javascript application with an embedded Flex application compiled using 4.1A. It currently runs fine on all browsers except Internet Explorer 11.
    We sometimes get a security sandbox violation: ExternalInterface caller. Any idea why our swfs are not loading or ExternalInterface calls are not working?
    Thanks.

    We have an application that is a Javascript application with an embedded Flex application compiled using 4.1A. It currently runs fine on all browsers except Internet Explorer 11.
    We sometimes get a security sandbox violation: ExternalInterface caller. Any idea why our swfs are not loading or ExternalInterface calls are not working?
    Thanks.

  • How do I enlarge a small photo I have scanned to my computer photo album ("My Pictures") to facebook; the steps that worked for Internet Explorer won't work for Mozilla?

    I scanned a small photo(2 x 3) with my Dell printer and stored it in my computer photo album "My Pictures." Now I would like to upload an enlargement of the picture to my Facebook photo album. The steps I used with Internet Explorer for enlarging an uploaded photo for Facebook will not work with Mozilla. My Adobe Flashplayer that I used with Internet Explorer would not work with Mozilla, so I downloaded a plug-in Adobe Flashplayer (10.) What else do I need to do? Please give me specific instructions as I am 69 years old and not as computer literate as young people! LOL Thank you. Evelyn Drown E-mail: [email protected]

    Some website that can resize images:
    * http://www.resizr.com/
    * http://www.shrinkpictures.com/
    * http://www.picresize.com/

  • Png images not shown in applet when opened in internet explorer

    hi all,
    I am using some transparent PNG images in my applet . Its working properly in appletviewer as well as netscape but images just disappear in internet explorer.
    same image appears in internet explorer but not in applet in internet explorer.
    can anybody help me ?
    thanks

    The java version that IE has doesn't have support for PNG, only gif and jpeg.

  • Youtube video's seem to "freeze" the image while the audio continues playing. Never had that problem with Internet Explorer...how can I fix this?

    I used to use a different...server?...Internet Explorer. Before, when I used that, I could watch video's on youtube and they would run smoothly-image and sound in perfect sync. Now that I'm using Firefox per suggestion of a computer savvy friend, I can't watch youtube vid's in the same way. Most of the time, the audio will keep playing, but the image will stop. The only way I've discovered to prevent this is to be playing with the mouse on the side of the screen constantly. (which, when playing music video's for background while cooking dinner in the kitchen, it's rather impractical to be running back and forth to be playing with the mouse)
    I'm not a very computer savvy person. I'm using a laptop...it's an Acer...I think I have either Windows Vista or Windows 7...

    Thank you very much.
    I scanned my computer and see that it is not a virus problem. The problem lies with FoxNews.com not being compatible with the latest Flash Player or plug-in. I can view on-site videos from within Firefox on all sites except FoxNews. It is the only site that has a huge separating space in the middle of the front page. and that displays a large area of code words where it should have an ad: "clicksor_default_url = '';clicksor_banner_border = '#99CC33'; clicksor_banner_ad_bg = '#FFFFFF';clicksor_banner_link_color = "
    I ran the super bug-killer "ComboFix" (thinking the code was from the "Clicksor" virus) and was relieved to discover that it wasn't a virus.
    I can easily view videos on FoxNews from within Internet Explorer (and there is no "clicksor" code displayed in IE either). The problem lies somewhere within the Firefox version of Adobe's Flash Player /plug-in or FoxNews' incompatible code. Users are being kept up-to-date with the latest Adobe updates, but FoxNews must be using old software and needs to catch up. There must be a lot of people having this problem.

  • I just bought a Toshiba laptop with windows 7 everytime I try to install iTunes i get a window that tells me "internet  explorer cannot find this webpage" please help

    I just bought a new laptop and am trying to download the newest itunes.  I goto apples website click the download button and website page says that I've dwnloaded it but I get a window off to the side that says " internet explorer cannot find webpage "

    I just realized that part of my post got cut off.  There was a message that i could not connect to the Apple store (and my genius stopped running). 

Maybe you are looking for

  • Convertion from UTF-16 to UTF-8 in XI

    Hi,   From Source system (MDM), sometimes data are coming in UTF-16 format in to XI. My target system is R/3 which is UTF-8. Here's the scenario:- MDM->MQ Queue-> Local JMS Queue-> XI->R/3 Here I am using sender JMS Queue adapter to receive the data

  • Horizon 27" HDMI problem

    Ok Just bought a 27" All in One Horizon Ideacentre. It has 2 source imputs 1 PC and 1 HDMI. I am using the HDMI imput with a cable box to watch tv on the unit as a Monitor or on the PC in Windows Media Center as I did with my previous Sony computer.

  • Couldn't create jco client connection for logical system

    Dear Experts, we are facing a strange issue in our custom webdynpro java application, few of our portal users are getting the "couldn't create jco client connection for logical system" for Model Data JCO Destination. below are details 1. portal versi

  • Converting to DNG in LR4 does not preserve the date

    When converting to from Canon CR2 raw to DNG (on Windows 7 x64), the newly created file has the conversion date and not the creation date of the original picture file. This is an issue several people have complained about for the DNG converter and on

  • Cannot configure Airport Extreme ...

    Hi, I have purchased a Mac Mini together with an Airport Extreme (AE). I am still using a wireless router from D-Link and want to switch to the AE. It was possible to configure everything very easily with D-Link by using a browser and the IP http://1