Applet Working in MS-DOS, but Not in my Browser

Hello!
The applet builds a String that is displayed in the MS-DOS
console window; but when I use my browser, I see no Java console.
I am using J2SDK1.4.0_02. Do I need something else for my applet
to work properly in my browser?
Please, help. Thanks.
Alex

There's 2 ways to fix this.
Assuming you're using an up-to-date version of Internet Explorer and Sun's VM, you need to go to Start--> Settings--> Control Panel-->
and double-click Java Plug-in 1.4.0.
Click Browser and make sure that the Microsoft Internet Explorer box
is checked.
This will use Sun's Java Plug-in all the time which may not be what you
want (as this can break other stuff).
The other way to fix it is to add some tags to the HTML file (which may also fix the problem if you are using Microsoft's VM).
Use "OBJECT" instead of "APPLET".
And make sure you have the following tags defined: "CLASSID", "CODE", and "TYPE". Your value for CLASSID could be different.
Something like:
<HTML>
<HEAD>
<TITLE>Jumbo's First Class</TITLE>
</HEAD>
<BODY>
<H1>Brenda Pads Her Keys</H1>
"Drat!" exclaimed Jumbo. "This stupid machine."<BR>
Brenda rolled her eyes, as if to say "What now?" and inquired
in her most soothing, customer-service voice, "Problem, J.G.?"<P>
Jumbo, perhaps a tad unresonably, bit back. "I don;t have a problem.
It's this moronic prototype. Why does it let me type in letters if all
it can use is numbers? Who designed this anyhow?"<BR>
Brenda, stifling her impulse to reply, "You did," reached over Jumbo's shoulder and pressed a key on his keyboard. "I know just what you need," she said. "Look at this."
<HR>
<OBJECT CLASSID = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" HEIGHT=150 WIDTH=200>
<PARAM NAME = CODE VALUE = keypad1.class>
<PARAM NAME = TYPE VALUE = "application/x-java-applet;version=1.2;>
</OBJECT>
</BODY>
</HTML>

Similar Messages

  • My applet works in the appletviewer but not in the navigator

    My applet works in the appletviewer but not in the navigator
    exceptions problem1 and problem2 are throwed
    this is my code
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ValiderHtml extends Applet implements ActionListener {
    JButton send =new JButton("Connexion");
    JScrollPane jscrollpane= new JScrollPane();
    DefaultListModel lignes=new DefaultListModel();
    JList lstURL = new JList(lignes);
    BufferedReader reader = null;
    String ligne;
    URL url;
    URLConnection conn;
       public void init(){   
       this.setSize(900,400);
       setLayout( new GridLayout(2,1));
       jscrollpane.setBounds(new Rectangle(19,53,160,73));
       jscrollpane.getViewport().add(lstURL,null);
       send.addActionListener(this);
            this.add(send);
       this.add(jscrollpane);
        public void actionPerformed(ActionEvent evt) {
             Send();
       public void Send(){
            try {
       url=new URL("http://www.developpez.com");
       conn = url.openConnection();
       reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    while ((ligne = reader.readLine()) != null) {
                     lignes.addElement(ligne);
        }//fin bloc try
       catch (Exception e) {
                   lignes.addElement("probleme1");     
                finally{
                   try{reader.close();}catch(Exception e){ lignes.addElement("probleme2");}
       }// fin Send
          public void paint(Graphics g) {
                super.paint(g);
    }// fin Applet

    As for tracking the source of your problem your applet sucks.
    Try e.printStackTrace() on a cought exception and check the (full) trace.
    url=new URL("http://www.developpez.com");
    Unless yor applet is on www.developpez.com this will throw an exception in an unsigned
    applet without special policies.
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and last post for the java class file
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore

  • Applets work under older compilers, but not newest

    The applets I compile using the latest release of javac (with the JDK 1.4 package) work in the appletviewer but not in IE 6.0. However, if I use an older version of javac from a couple years ago (not sure the version), the applets work in IE suddenly. Is there something I need to install in IE to make it compatible with the Sun 1.4 javac compiler? Should I just reinstall the JRE? Has anyone heard of this before? Thanks!!

    You could try installing the Java 1.4 plugin.
    http://java.sun.com/getjava/

  • Site works in the app, but not in the browser.

    Hello iWeb experts,
    I've got problems.
    Last night I published my site. And while it appears, and functions, properly in my iWeb app, it doesn't do the same in Safari, Firefox, and Internet Explorer.
    Two issues...
    FONTS
    I chose Bellamie, Univers Condensed, and Marydale as my fonts. From reading these forums, I've discovered those won't wysiwyg on other computers if the fonts aren't available and open on them. So my two choices are to make every bit of text a graphic or to use a set of more universal fonts, correct? So my questions are...One, is there a list somewhere of fonts that will work in any browser? And, two, is there a short-cut, or easy way to transform type into a graphic without having to create image files?
    FUNCTIONS
    Here are the functions that work fine in iWeb but have gone haywire in all of the browsers I tested...
    • The type in one nav link appears smaller than all the rest.
    • Some links are active, others are not.
    • Rollover highlighting works on some links, but not others.
    • Most of the rollover links appear in the proper static color, a few do not.
    I've tested these functions on three Macs, one PC, and in the three browsers mentioned above. All of them show the exact same problems. So something must be going wrong with iWebs coding, or my host server musn't like iWeb.
    Any thoughts, suggestions on these two issues? Thanks much for any advice.
    John
    PS - For reference, see: www.johnrunk.com

    Fascinating, Kirk (+he types with one raised eyebrow+).
    QuickTimeKirk wrote:
    When I drag across your page most of your links do not change. The "text" portion of them doesn't change, either. Something is covering them.
    I can see that. But for the life of me, I don't know what could be covering those links. In my app, when I click in the area of the links, the type is the first item selected. Unless, possibly, it could somehow be the faint reflection of my black-and-white image (me & the ground I stand on). Hmmm...
    QuickTimeKirk wrote:
    Single click (outside the boundaries of your page contents) and an "outline" will appear. It shows the image file dimensions and locations.
    This I don't see. An outline? As in "an object outline," or as in "a list of dimensions and locations?" When I click outside my page contents, I get nothing.
    Thanks, QTK. I truly appreciate your troubleshooting here.
    John

  • Applet work with JRE 7_51 but NOT with JRE 7_45

    Hello,
    My major problem is, that my Applet signed with COMODO certificate DOES NOT WORK with JRE 7_45.
    The SAME applet works fine with JRE 7_45, if I sign this applet WITH A SELFMADE UNTRUSTED certificate.
    WHY the comodo signed applet doesn't run in JRE 7_45 ???
    If i launch the comodo signed applet with JRE 7_51 it works perfect !!!
    But in our company we got JRE 7_45 and I have to deal with JRE 7_45. That’s my problem.
    Could you please tell me a solution what I have to do that the comodo signed applet works also in JRE 7_45.
    Thank you!
    Philipp

    Thanks gimbal2.
    I agree the problem may be in the proxy or in the firewall but I don' to know how to prove it as if i call the servlet url from browser I dont have problems .
    The version im using is 6.45 but im sure the same problem occurs also with other versions of JRE6 .
    ... and the problem disappear with JRE7 ...
    trouble is my company want people to use JRE6
    any idea ?
    Gio

  • Signed applet working in Netscape 6 but not in IE 5.5

    I have an applet that reads a file from a server and tries to write it to a client machine. To this i self signed the jar file containing the applet using the keytool and jarsigner. So now I had a self signed applet. I tried to run this in IE. It gave the same error message that i used to get when I tried to run it the applet as unsigned. What am I missing here? Is self signing not enough to run the applet in IE? The same applet works in Netscape 6 and successfully downloads the file to the local machine. Please help me. I have added the certificate to the IE security panel as trusted.

    Netscape 6 has Java VM 1.3. if you use MSIE, you should try JavaPlugin.
    If interested in an appli that helps in signing process, you may download XLRSecTool for
    free at:
    . Windows:
    http://www.xlreader.com/download/stl10ea/InstData/Windows/NoVM/istl10ea.exe
    . Unix and Linux:
    http://www.xlreader.com/download/stl10ea/InstData/Unix/Others/istl10ea.bin
    . Other Java-enabled OS
    http://www.xlreader.com/download/stl10ea/InstData/Java/install.zip
    Requires Java VM 1.3.1
    Screenshot:
    http://www.xlreader.com/images/sshot_s673x548.gif
    -- Robert
    =====
    [email protected]
    XL-Reader Project - Secured online documentation solutions
    www.xlreader.com
    =====

  • Applet works in all netscapes but not IE 6 -- help

    I have a simple applet that works wonderfully in all versions of netscape. The plug-ins are installed. I am running under windows 98.
    The settings are configured to allow Java for both sets of browsers.
    What I get is a grey screen. No loading message -- nothing.
    Yet under netscape is comes right up...same code.
    HELP!

    Thanks. Unfortunately I did do that, and it still did not work. Plus the fact, I want my viewers
    to be able to SEE the applet -- which is a custom menu. They are not going to want to do this work, so it must be able to function in older versions of plug-ins.
    Frustrating, but we have to consider not everyone will work in the lastest vesions of software.

  • Applet works in MS JVM but not in JDK1.4 !

    Running IE 6 SP1 with windows 2000. Everything works well until
    I installed JDK 1.4 recently.
    I have an ancient (JDK 1.1?) applet that refuses to work with JDK 1.4
    But when i disable JDK 1.4 under internet options , it works!
    This is the error
    "java.lang.NoClassDefFoundError; Symantec/tools/awt/multiList"
    If the class is really missing, why was it able to work without JDK 1.4?
    Also note, that Symantec.jar is on the local machine and not on the server. Symantec.jar is a selected compilation of Visual Cafe classes
    that the applet needed.

    It will be better to have Symantec.jar on the server at the same level with your caller applet package. For example
    + Some folder
    |
    + --- yor applet package
    |
    + --- Symantec.jar

  • Applet works under 1.4, but not with 1.3

    i have a correct signed applet, which works with java 1.4.2 plug-in (means, the security dialog comes up, the user hits yes and the applet runs and can read/write files on local disk etc.)
    a fresh installation of win2k with java 1.3.1_11 does not accept the certification at all.
    it shows a FilePersmission while reading the .jar file itself.
    the jar is on the local hard disk and is being access via a local html file. (no webserver at all in the moment)
    is it possible that 1.3.1 does not check for certificates on local jar files or something?

    Try it with a webserver and see if it works. I am having a problem getting an applet to work locally under certain versions of the plugin.

  • JavaMail applet working on local machine - but NOT on my webpage

    Hi.
    My code works on my machine as an applet run through my Eclipse IDE.
    I have the Applet deployed on my website, which is the same server as the email server itself.
    public void postMail(String to, String subject,
                                String message , String from) throws MessagingException
        boolean debug = false;
         //Set the host smtp address
         Properties props = new Properties();
         props.put("mail.smtp.host", "mail.completemusician.net");
         props.put("mail.smtp.port", "2626");
         props.put("mail.smtp.auth", "true");
        Authenticator auth = new SMTPAuthenticator();
        Session session = Session.getDefaultInstance(props, auth);
        session.setDebug(debug);
        // create a message
        Message msg = new MimeMessage(session);
        // set the from and to address
        InternetAddress addressFrom = new InternetAddress(from);
        msg.setFrom(addressFrom);
        InternetAddress addressTo = new InternetAddress(to);
        msg.setRecipient(Message.RecipientType.TO, addressTo);
        // Setting the Subject and Content Type
        msg.setSubject(subject);
        msg.setContent(message, "text/plain");
        Transport.send(msg);
    }1) I know my code works on my local machine - so it's not related to a code bug.
    2) I know that all class files are uploaded correctly and working in a single JAR file. The other 3 classes I use work fine in this applet.
    3) I receive no errors of any kind - it just appears that my constructor may not be called, or the instant java mail API is mentioned, the applet just refuses to work.
    v.setMessage("Attempting to send..");This line never is used in my class constructor - which is troubling.
    public SendMailUsingAuthentication(String from, String to, String subject,
              String text, ValidationDialog vd) {
           v = vd;
           v.setMessage("Attempting to send..");
           boolean succeed = true;
           try {
              postMail(to, subject, text, from);
         } catch (Exception e) {
              // TODO Auto-generated catch block
              v.setMessage("Email delivery has failed. " +
                         "Please check your email address provided and try again." +
                         "\n\n" + e.getMessage());
              e.printStackTrace();
              succeed = false;
         if(succeed)
               v.setMessage("Your request has been submitted successfully.\n\n" +
                         "You may safely navigate away from this page.");
               v.setBlue();
         // TODO Auto-generated constructor stub
    }Feel free to reply - I would appreciate your help. Just keep in mind:
    1) Don't tell me to use javascript. I refuse.
    2) Don't tell me I need a server application. It's supposed to work according to documentation, without it.

    Is your applet signed properly? Note that you have to sign all the jars for the applet -- including the JavaMail jar and the activation jar -- using the same signer.

  • 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.

  • How do I troubleshoot installation/distribution of a LabVIEW .exe which processes data using Matlab when it works on some computers but not others?

    I've been given the unenviable task of troubleshooting and installing/distributing software written by a former co-worker. I've modified the LabVIEW code and built an .exe file. I've successfully installed the Labview .exe file on several computers, but it won't work on some others. What's more baffling is that I installed it successfully on one computer, uninstalled it, and tried reinstalling it with no success. In fact, it's a new error (Dr. Watson for Windows NT application error). It doesn't help that I have different versions of LabVIEW and Matlab on the target computers. Some have LabVIEW 5.1, some
    have 5.0, and some don't have it at all. Some have Matlab 5.2, some have 5.3 (R11) and some have 6.0 (R12). It's also not clear to me where the Matlab m files should be located. I'm not sure if it's a LabVIEW Runtime Engine problem, or if it's a Matlab problem. I've also wondered how LabVIEW and Matlab talk to each other. When LabVIEW calls Matlab, it seems that Matlab is running in the background. In other words, clicking on the Matlab Command Window and typing "whos" or any other command/variable doesn't work.

    Jay del Rosario wrote:
    >
    > How do I troubleshoot installation/distribution of a LabVIEW .exe
    > which processes data using Matlab when it works on some computers but
    > not others?
    Poke around zone.ni.com and
    http://digital.natinst.com/public.nsf/$$Search/ .
    Good luck, Mark

  • Can get the AirPlay to work off my computer, but not my iPhone or iPad. I have the latest software.  Airplay logo never appears on iPhone or iPad.

    Can get the AirPlay to work off my computer, but not my iPhone or iPad. I have the latest software.  Airplay logo never appears on iPhone or iPad.

    Try here  >  http://support.apple.com/kb/TS1538

  • HT5787 How can I change an old email to a new one? For some reason my old email comes up on my iPhone - and I don't get access to change to my new email which I have on my iCloud account on my pc. My AppleID works on my pc, but not on my iPhone!

    How can I change an old email adress on my iCloud accout to my new email (the same as on my pc), as long as my Apple ID works on my pc but not on my iPhone?
    Br
    Finn

    You would have to change it back to your old email address in order to turn off "Find My iPhone" on your devices. After you changed it back to your old address and deactivated "Find My iPhone" (activation lock) you could change your Apple ID to your new address again. Now it should wok on all your devices.

  • LR 5.6 on Mac desktop all of a sudden will not read any card from any reader but will work on my laptop. I can work on previous images but not import new ones. Even if I create a catalog on laptop and import to my desktop on a thumb drive, the images are

    LR 5.6 on Mac desktop all of a sudden will not read any card from any reader but will work on my laptop. I can work on previous images but not import new ones. Even if I create a catalog on laptop and import to my desktop on a thumb drive, the images are only accessible as long as the thumb drive is inserted.

    Sounds like you may need to repair the Disk Permissions on your drive where your images are stored.

Maybe you are looking for