How can I have My applet work with the browser ??

I created an applet but it giving an error when I try to put in a web browser
package applet;
//This Java Program determines the amount on maturity.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import static java.lang.Math.*;
import java.applet.Applet;
public class VanExo extends Applet
     private static final long serialVersionUID = 1L;
     private JLabel amtL, yearL, interestL, valueL;
    private JTextField amtTF, yearTF, interestTF, valueTF;
    private JButton calculateB, exitB;
    private CalculateButtonHandler cbHandler;
    private ExitButtonHandler ebHandler;
    private static final int WIDTH = 400;
    private static final int HEIGHT = 300;
    public void init()
          setLayout(new GridLayout(5, 2));
            //create four labels
        amtL = new JLabel("Amount deposited : ",
                         SwingConstants.RIGHT);
        yearL = new JLabel("Duration in years : ",
                  SwingConstants.RIGHT);
        interestL = new JLabel("Interest rate : ",
                    SwingConstants.RIGHT);
        valueL = new JLabel("Value on maturity : ",
                    SwingConstants.RIGHT);
            //create four textfields
        amtTF = new JTextField(10);
        yearTF = new JTextField(10);
        interestTF = new JTextField(10);
        valueTF = new JTextField(10);
            //create Calculate Button
        calculateB = new JButton("Calculate");
        cbHandler = new CalculateButtonHandler();
        calculateB.addActionListener(cbHandler);
            //create Exit Button
        exitB = new JButton("Exit");
        ebHandler = new ExitButtonHandler();
        exitB.addActionListener(ebHandler);
        add(amtL);
        add(amtTF);
        add(yearL);
        add(yearTF);
        add(interestL);
        add(interestTF);
        add(valueL);
        add(valueTF);
        add(calculateB);
        add(exitB);
            //set the size of the window and display it
        setSize(WIDTH,HEIGHT);
        setVisible(true);
        //setDefaultCloseOperation(EXIT_ON_CLOSE);
    public void start(){
        System.out.println("Applet starting.");
     public void stop(){
        System.out.println("Applet stopping.");
     public void destroy(){
        System.out.println("Destroy method called.");
    private class CalculateButtonHandler implements ActionListener
        public void actionPerformed(ActionEvent e)
            double year, amt, interest, value;
            amt = Double.parseDouble(amtTF.getText());
            year = Double.parseDouble(yearTF.getText());
            interest = Double.parseDouble(interestTF.getText());
            value = amt * pow((1.0 + (interest/100.0)), year);
            valueTF.setText("" + String.format("%.2f", value));
   private class ExitButtonHandler implements ActionListener
        public void actionPerformed(ActionEvent e)
            System.exit(0);
}

here the error
Java Plug-in 1.6.0_05
Utilisation de la version JRE 1.6.0_05 Java HotSpot(TM) Client VM
R�pertoire d'accueil de l'utilisateur = C:\Documents and Settings\ndiayea
c:   effacer la fen�tre de la console
f:   finaliser les objets de la file d'attente de finalisation
g:   lib�rer la m�moire
h:   afficher ce message d'aide
l:   vider la liste des chargeurs de classes
m:   imprimer le relev� d'utilisation de la m�moire
o:   d�clencher la consignation
p:   recharger la configuration du proxy
q:   masquer la console
r:   recharger la configuration des politiques
s:   vider les propri�t�s syst�me et d�ploiement
t:   vider la liste des threads
v:   vider la pile des threads
x:   effacer le cache de chargeurs de classes
0-5: fixer le niveau de tra�age � <n>
java.lang.NoClassDefFoundError: VanExo (wrong name: applet/VanExo)
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at sun.applet.AppletClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadCode(Unknown Source)
     at sun.applet.AppletPanel.createApplet(Unknown Source)
     at sun.plugin.AppletViewer.createApplet(Unknown Source)
     at sun.applet.AppletPanel.runLoader(Unknown Source)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
java.lang.NoClassDefFoundError: VanExo (wrong name: applet/VanExo)
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at sun.applet.AppletClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadCode(Unknown Source)
     at sun.applet.AppletPanel.createApplet(Unknown Source)
     at sun.plugin.AppletViewer.createApplet(Unknown Source)
     at sun.applet.AppletPanel.runLoader(Unknown Source)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
java.lang.NoClassDefFoundError: VanExo (wrong name: applet/VanExo)
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at sun.applet.AppletClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadCode(Unknown Source)
     at sun.applet.AppletPanel.createApplet(Unknown Source)
     at sun.plugin.AppletViewer.createApplet(Unknown Source)
     at sun.applet.AppletPanel.runLoader(Unknown Source)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
java.lang.NoClassDefFoundError: VanExo (wrong name: applet/VanExo)
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at sun.applet.AppletClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadCode(Unknown Source)
     at sun.applet.AppletPanel.createApplet(Unknown Source)
     at sun.plugin.AppletViewer.createApplet(Unknown Source)
     at sun.applet.AppletPanel.runLoader(Unknown Source)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
java.lang.NoClassDefFoundError: VanExo (wrong name: applet/VanExo)
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at sun.applet.AppletClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.applet.AppletClassLoader.loadCode(Unknown Source)
     at sun.applet.AppletPanel.createApplet(Unknown Source)
     at sun.plugin.AppletViewer.createApplet(Unknown Source)
     at sun.applet.AppletPanel.runLoader(Unknown Source)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)

Similar Messages

  • How can I get Recipefox to work with the latest version (16) of Firefox?

    Recipefox worked on previous versions of Firefox. I could use the Grab It feature on many sites & easily retrieve recipes. Now, with the latest version of Firefox, it does not work on any of the recipe websites. Is there a more recent version of Recipefox that works with Firefox version 16, I am using 0.68. Does Recipefox get updated with newer versions of Firefox.

    Hi,
    You can try to right-click and '''Find Updates''' via '''Tools''' ('''Alt''' + '''T''') > '''Add-ons''' > '''Extensions'''. You can also '''Remove''' it, and search and install via the Search box on the top right or from [https://addons.mozilla.org/en-US/ AMO].
    [https://support.mozilla.org/en-US/kb/Using%20extensions%20with%20Firefox Using Extensions]
    If problems persist you can reset Firefox and start afresh with [https://addons.mozilla.org/en-US/firefox/addon/recipefox/?src=search recipefox].
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • My iPod Classic is seen by Windows but not by iTunes.  I have reset it, gone to disk mode and it won't show up in iTunes.  There appears to be music on it in a file called MUSICSAVE.  How can I get this to work with iTunes again?

    My iPod Classic is seen by Windows but not by iTunes.  I have reset it, gone to disk mode and it won't show up in iTunes.  There appears to be music on it in a file called MUSICSAVE.  How can I get this to work with iTunes again?

    1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
    2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
    3. Check the USB cable
    4 Verify that Apple Mobile Device Support is installed
    5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
    6. If you just want to add some photos, songs and movies from computer to your devices, you can use an iTunes alternative to do the job
    7. Check for third-party software conflicts.
    <Link Edited By Host>

  • Email messages from my icloud account update on all my devices showing if they have been read and if a reply has been sent.  This does not happen with my tinyworld (TalkTalk) email account.  Can I (how can I) get this to work with TinyWorld?

    Email messages from my icloud account update on all my devices showing if they have been read and if a reply has been sent.  This does not happen with my tinyworld (TalkTalk) email account.  Can I (how can I) get this to work with TinyWorld?

    You have to look at the email protocol being used.  the Apple email system uses IMAP, does Tinyworld use IMAP or POP?
    Does the email system permit delivery receipts to be requested?
    Just some of the things one needs to determine from the information provided by the email service provider.

  • I have Win 7 saved (installation file) in My MacBook Pro Licence version. How can i install it on MacBook Pro. After installation how can i make it to work with Parallel desktop or VMware fusion software.

    I have Win 7 saved (installation file) in My MacBook Pro Licence version. How can i install it on MacBook Pro. After installation how can i make it to work with Parallel desktop or VMware fusion software. I can buy these softwares.

    http://www.simplehelp.net/2009/02/02/how-to-install-windows-7-in-os-x-using-para llels-desktop-a-complete-walkthrough/
    http://blogs.parallels.com/consumertech/2011/10/24/install-windows-right-from-wi thin-parallels-desktop-7-guest.html

  • HT4623 I have purchased a Epson Workforce 435, can't AirPrint, will this work with the first gen iPad?

    I have purchased a Epson Workforce 435, can't AirPrint, will this work with the first gen iPad?

    Also i forgot to add after a night of searching how to turn the Epson Workforce 435 printer into Airprint friendly and not iPrint (which are 2 completely different things) i donwloaded a program called (AirPrint Activator) from HandyPrint. The link is below to download the software. Once i installed the application i set my printer to be shared over my Home Network (Wi-Fi Network). Once you have done that, open the AirPrint Activator application you have just downloaded, swtich it ON from OFF mode, and then you should easily see your printer name in my case EPSON Workforce 435 and then just close the application. Then go to your IOS Device like your iphone/ipad/ipod touch select a picture that you want to test print or even an attached PDF from your email, and select Print in the share button. You will then be prompted to select your printer. Your printer you automatically be recongised then just select print. And now you have a complete AirPrint ready printer with a Printer that doesnt even support the function. Im sure you can do this to all Wireless Printers, even if they came out before Apple AirPrint service launch.
    And also if you still need guidance and a video to follow from just click the Youtube link below
    http://www.youtube.com/watch?v=9r75m_VUr0E
    Download AirPrint Activator Link
    http://netputing.com/handyprint/
    I hope that this helps your question and enjoy your day
    Kind Regards
    Ahmed

  • How can I do for ESA work with token RSA, I mean when I entry the login the authentication with RSA

    Hi there,
    How can I do for ESA work with token RSA, I mean when I entry the login, the authentication ask me the token with RSA, Is it possible???
    Regards,

    Hello Miguel,
    RSA tokens are currently not supported for login, neither to the GUI/CLI or access to the spam quarantine. There is currently a feature request"Support SecurID via RADIUS" for the WSA, if you want you can open a ticket and have either add your company to that request, or have it extended for ESA as well.
    Hope that helps,
    Andreas

  • How can i get acrobat to work with windows vista

    How can I get adobeexportpdf to work with windows vista?

    But if, on the other hand you do mean Acrobat, please let us know what problem you are having.

  • Hi, how can i have a live chat with one of the people from apple so i they can help me with my problem?

    hi, how can i have a live chat with one of the people from apple so i they can help me with my problem?

    https://getsupport.apple.com/Issues.action

  • How can you get an applet to obey the CSS z-index attribute?

    How can you get an applet to obey the CSS z-index attribute?
    I have a DHMTL page with a panel that I want to slide back and forth. But another part of the requirement is to have the panel look like it is sliding under another panel.
    The problem is that an applet is on the panel that slides. When the sliding panel move under the stationary panel the applet does not go under the stationary panel, but the reset of the sliding panel does render looking like it is sliding under.
    See below.
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~           #############***************           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #############^**************           ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    ~ has a z-index of 1
    # and * have a z-index 2
    # shows above ~ and below ^
    ^ has a z-index of 3What I am getting with the applet on the panel with a z-index of 2 is the following
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~           #############***************           ^ -
    - ~           #            ^             *           ^ -
    - ~           #  @@@@@@@@@@@@@@@@@@@@    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @@@@@@@@@@@@@@@@@@@@    *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #############^**************           ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    --------------------------------------------------------Where @ is the applet. Notice how the applet is on top of the ^ but the panel under it, ^, is under like it should be. All the panels are 1x1 tables with a border. So how can I get the applet on the drawing shown with # and * to follow the rendering of the z-index of 2?

    Hi,
    I have the same problem, and don't know how to solve it, So, i had tried to put my applet in a div tag wih z-index=0, but it still hide my other Dhtml divs with bigger Z-index (z-index =1000)
    Have you any idea to solve this.
    Thanks
    Hakim

  • How to get online apps to work with the Verizon DSL modem firewall set at "Medium" level, not "Low?"

    How to get online apps to work with the Verizon DSL modem firewall set at “Medium” level? Xbox 360 Live, FTP, and the Windows sntp Time checker native to Windows XP WON’T WORK unless the Verizon firewall is first reset down to “Low.” Then all works well, but I then risk low firewall protection. Setup: · Westell 6100 DSL modem (Software Version: VER:4.04.03.00 Transceiver Revision: 7.2.3.0 Model Name: C90-610015-06), · D-Link DIR-655 wireless router (Hardware Version: A3, Firmware Version: 1.21), For Xbox 360 Live the “canned” port forwarding rule for provided in Verizon’s drop-down list for the Westell 6100 modem forwards ports 88 and 3074 for both TCP and UDP. This does not meet Microsoft’s forwarding recommendations for Xbox 360 Live stated at http://support.microsoft.com/kb/908874. Instead, for the Verizon modem (Westell) I made a new port forwarding rule to comply with those Microsoft instructions. It forwards ports 53, 80 and 3074 for TCP and ports 53, 88 and 3074 for UDP. These same ports are also forwarded in the D-Link router configuration. For FTP, port 21 is also forwarded for TCP and UDP in both modem and router. But they don’t work until I first cripple the Verizon firewall down to “Low.” How to get them to work with the Verizon firewall up to Medium?

    While I do not know the answer to your question, BUT since you have this modem and another router - you could just follow.
    http://www.dslreports.com/faq/13600
    ^^
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • How can i use my apple ID with the itune store over my windows laptop

    how can i use my apple ID with the itune store over my windows laptop

    If you don't have iTunes installed on your laptop then you can download and install it from here : http://www.apple.com/itunes/download/
    You can then log into your account on it via the Store > Sign In menu option (on iTunes 11 on a PC you can get the menus to show via control-B) :
    And you can then select the Store on the left-hand sidebar (you can enable the sidebar via control-S), and then browse items in the store and buy them by clickin on their price.

  • How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    Phone A = phone with information you want duplicated
    Phone B = phone that you want to copy from A
    Backup Phone A.
    Wipe Phone B using these instructions. What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support
    Phone B should be on the 'Hello' screen. Do not swipe it. Launch iTunes. Plug in Phone B.
    When iTunes asks if you want to set up as new phone or restore from backup, choose restore from backup of Phone A.
    After this setup, any changes to one phone (i.e. adding a contact, downloading an app) will have to be manually duplicated on the second phone, if that is your desire). Making changes to one phone will not affect the other after setup.

  • I am uploading receipts using the PURCHASE_ORDER_RECEIPT EIP.  When I upload serialized assets each one is processed as a separate receipt (receiver_id). How can I have these all aggregated on the same receipt?

    I am uploading receipts using the PURCHASE_ORDER_RECEIPT EIP.  When I upload serialized assets each one is processed as a separate receipt (receiver_id). How can I have these all aggregated on the same receipt?
    Is there a parameter I should be using in the XML or is there a setting in Peoplesoft that will accomplish this?
    Jim

    sundy.liu wrote:
    Unfortunately however, even with the TCP tweaks enabled, I still only get a little over 1 Gb/s through the two aggregated Gig ports. It seems as though the aggregation is only using one port, though MRTG graphs of the two switch ports do in fact show that they are both being utilized equally, essentially splitting the 1 Gb/s speed between
    the two ports.
    Problem with the server? switch? Aggregation software? All the above? At any rate, I seem to be missing something.. Any help regarding this issue would be greatly appreciated!If you're only running a single stream, that's all you'll see. Teaming/aggregating doesn't make one stream go faster.
    If you ran two streams simultaneously, then you should see a difference between a single 1G interface and an aggregate of two 1G interfaces.
    Darren

  • I have  anew computer and my ipod was attached to the old one, how can i have my music download to the new computer and sincronize it.

    I have  anew computer and my ipod was attached to the old one, how can i have my music download to the new computer and sincronize it.

    If you no longer have the old computer this will be very helpful and If you have other content - apps, books, movies, that you want to transfer to the iTunes library - you need to transfer your purchases from the iPod to the computer as well.
    Take a look.
    https://discussions.apple.com/message/16153193#16153193
    This works the same way whether you have a Mac or a PC.

Maybe you are looking for

  • The page can't be displayed error on most websites

    Recently I've been experiencing difficulties with my web browser (Internet Explorer 10) in which it doesn't display most websites. It can do google.co.uk but not google.com. This also happens when I try it in Google Chrome, I get this error: "We coul

  • Reports that track user actions in DMS

    Hi- Does anyone know if there are reports that would provide information about who has viewed, checked-out, check-in and copy (Shift+F7) documents in the content server?  Thanks for your assistance, in advance!  (And I reward points!) -J

  • Lob length

    Hello experts I am trying to get lob length for sdo_geometry. I have posted a thread in spatial forum and they have directed me to here. The link is below. https://community.oracle.com/thread/3647077?customTheme=otn When i try to get lob length for s

  • In UNIX middle mouse button pastes clipboard text to noneditable JTextField

    In UNIX, if you have a JTextField which is not editable, i.e. setEditable(false), clipboard text can still be pasted to the JTextField if the middle mouse button is pressed. How can I prevent this? I've tried overriding the JTextComponent paste() met

  • Scheduling reports to run with Report Server

    How do I schedule a report to run with Report Server.... OR Where can I find information about setting up a schedule for reports with Report Server? Thanx in advance. ~Vannette