Applet not initialized, when I uninstall JRE1.4.1_24 on Win NT 4.0

We have uninstalled JRE1.4.1_24 from Win NT4.0 system and installed JRE1.3.1_08. Applet not initialized error coming up when the broser tries to open applet. Please help.

The Windows Java uninstall doesn't do a good job cleaning up after itself.
I ended up having to reinstall JRE1.4 to getting it working again.
Eugenio

Similar Messages

  • Chat applet not initialized???

    OS X on iMac...try to log in yahoo Chat but I get an error message " applet not initialized " I check every HELP suggestion but none will do nor does it properly address the issue. How does one initialize applet? Some say uninstall Java then re-install but OS X doesn't allow me to uninstall JAVA which came preinstalled. The funny thing is that the bottom portion of the yahoo chat site works but the chat area is blank.
    Can anyone help? .Mac support guys are useless they only want money! they will not offer any assistance until a payment is made. Even then they can't guarantee anything. can anyone help me? I want to CHAT ON YAHOO.
    David no say in yahoo.

    Example settings for chat, based on Safari browser:
    In Safari, select Preferences > Security > Web Content. Make sure the three check boxes pertaining to Java - "Enable Plugins", "Enable Java" and "Enable JavaScript" are active.
    Some web chat providers also require that you install their client software.
    Having never used such services, I do not know if this applies to Yahoo, or if they provide suitable client software for Mac OS X users.

  • "applet not initialized " error message  HELP !

    My applet compiles ok but when I try to run it at the bottom of the screen it says
    start : "applet not initialized"
    note - it works ok compiling from the Window console and then opening
    the .html file in the browser, but when I try the same applet in the
    BlueJ IDE ....that is when I get an error message.
    Thank you in advance
    import java.awt.*;
    import objectdraw.*;
    //A program that produces an animation of the rising and setting sun
    //The animation is driven by dragging the mouse
    public class ScrollingSun extends WindowController
    private FilledOval sun; // circle that represents the sun
    //Place the sun and some brief instructions on the screen
    public void begin()
    sun = new FilledOval(100,150,100,100,canvas);
    sun.setColor(Color.yellow);
    new Text("Drag the mouse up or down", 20,20,canvas);
    //Move the sun to follow the mouse's vertical motion
    public void onMouseDrag(Location mousePosition)
    sun.moveTo(100,mousePosition.getY() );
    <html>
    <head>
    <title> ScrollingSun
    </title>
    <body>
    <applet
    archive = "objectdraw.jar"
    codeBase = "."
    code = "ScrollingSun.class" width = 800 height = 800 >
    </applet>
    </body>
    </html>

    I put a start() around the begin() method
    and a public void init() method around the onMouseDrag() method
    but I am getting an "illegal start of expression" error message
    Thank you for your advice
    import java.awt.*;
    import objectdraw.*;
    //A program that produces an animation of the rising and setting sun
    //The animation is driven by dragging the mouse
    public class ScrollingSun extends WindowController
       private FilledOval sun;   // circle that represents the sun
      public void start()
          //Place the sun and some brief instructions on the screen
          public void begin()
             sun = new FilledOval(100,150,100,100,canvas);
             sun.setColor(Color.yellow);
             new Text("Drag the mouse up or down", 20,20,canvas);
       public void init()
           //Move the sun to follow the mouse's vertical motion
           public void onMouseDrag(Location mousePosition)
             sun.moveTo(100,mousePosition.getY() );
    }

  • First please read this- applet not initialized

    I read forums topic which is relational with applet errors but I couldnt solve my problem.
    I developed a program with php and mysql.there isnt any printing library for php under linux.so I am using an applet for printing.I could use javascript but I dont want to show printer dialog so I chose java applet.in my htdocs directory I put class file and all other php files are there too.when I want to run this php file which has inside applet tag it shows me "applet not initialized".so can you help me for this?that applet works on my pc but in server it didnt work.what is wrong with server or apache?I set up j2sdk to server too but I couldnt solve this problem something wrong with apache maybe it cant find the class file or do I have to recognize java files to apache like php?
    it is really important for me.if you can help I ll be glad.thanks for all

    I developed a program with php and mysql.in php file I am using applet tag to print out some informations.when I connected from client to the server.in that page I cant run applet.in client browser I have java plugin too.if I tried applets and also this print applet in my laptop it is working but if I put them into the server and if I connect from client applet isnt working problem is this.please someone help me

  • Java Applet not Initializing (LMS)

    Hello everyone,
    I have a small problem when trying to access a Java applet screen. When I open the applet, there are two different portions of the screen, a left window and a right window. In the left window, there is a caption at the top that says "LMS Initializing". There is supposed to be a list of hyperlinks that populate in the window, but they never do. It hangs on the LMS.
    What is LMS? Something is blocking it's initialization. I have checked the manage add-ons menu and verified that the Java is plugged into IE, but I cannot seem to figure out the issue.
    I do know of the following issues as well, and I have verified that they are not the problem here:
    *Popup blockers
    *IE security settings under the "Security" tab in Internet Options
    *Secure Socket Layers
    If anyone else can give me a boost here, I would appreciate it. Thanks!

    did you restart the forms server with the command.
    $ADMIN_SCRIPTS_HOME/adopmnctl.sh stopall
    $ADMIN_SCRIPTS_HOME/adopmnctl.sh startall

  • "Cipher not initialized" when trying to invoke CRM On Demand web service

    Hi,
    I'm try to invoke CRM On Demand web service for which there is a pre-req to get a session ID by making an https request. I've the below java embedded code which does that. It works fine if I run the below code in my desktop as a java program, but when I deploy it on SOA 11g I get "Caused by: java.lang.IllegalStateException: Cipher not initialized" error (find below the stack trace). Please let me know what's going wrong here?
    String sessionString = "FAIL";
    String wsLocation =
    "https://secure-********.crmondemand.com/Services/Integration";
    String headerName;
    try {
    // create an HTTPS connection to the OnDemand webservices
    java.net.URL wsURL =
    new java.net.URL(wsLocation + "?command=login");
    java.net.HttpURLConnection wsConnection =
    (java.net.HttpURLConnection)wsURL.openConnection();
    // disable caching
    wsConnection.setUseCaches(false);
    // set some http headers to indicate the username and password we are using to logon
    wsConnection.setRequestProperty("UserName",
    wsConnection.setRequestProperty("Password", "***********");
    wsConnection.setRequestMethod("GET");
    // see if we got a successful response
    if (wsConnection.getResponseCode() ==
    java.net.HttpURLConnection.HTTP_OK) {
    // get the session id from the cookie setting
    for (int i = 0; ; i++) {
    headerName = wsConnection.getHeaderFieldKey(i);
    if (headerName != null &&
    headerName.equals("Set-Cookie")) {
    // found the Set-Cookie header (code assumes only one cookie is being set)
    sessionString = wsConnection.getHeaderField(i);
    if (sessionString != null ||
    sessionString.startsWith("JSESSIONID")) {
    break;
    String formattedID =
    sessionString.substring(sessionString.indexOf("=") + 1,
    sessionString.indexOf(";"));
    setVariableData("SessionID", formattedID);
    //System.out.println("Session ID: " + sessionString);
    } catch (Exception e) {
    e.printStackTrace();
    setVariableData("SessionID", e.getMessage());
    System.out.println("Logon Exception generated :: " + e);
    throw new RuntimeException(e);
    Caused by: java.lang.IllegalStateException: Cipher not initialized
    at javax.crypto.Cipher.c(DashoA13*..)
    at javax.crypto.Cipher.update(DashoA13*..)
    at com.certicom.tls.provider.Cipher.update(Unknown Source)
    at com.certicom.tls.record.MessageEncryptor.compressEncryptSend(Unknown Source)
    at com.certicom.tls.record.MessageEncryptor.compressEncryptSend(Unknown Source)
    at com.certicom.tls.record.MessageFragmentor.write(Unknown Source)
    at com.certicom.tls.record.WriteHandler.write(Unknown Source)
    at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown Source)
    at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown Source)
    at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown Source)
    at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown Source)
    at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
    at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
    at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
    at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
    at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
    at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
    at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
    at com.certicom.tls.record.WriteHandler.write(Unknown Source)
    at com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
    at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
    at weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:158)
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:363)
    at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37)
    at weblogic.net.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:952)
    at orabpel.productquerybpelprocess.ExecLetBxExe0.execute(ExecLetBxExe0.java:93)
    Thanks!

    Same question...did you ever got this resolved...for me, even the simple java program, when run on JDev 11g is ALSO not working. I am getting this.
    Using JDev 10g on the same machine (or for that matter SOA 10g) works perfectly.
    Have posted this thread too - Getting SSLHandshakeException when trying to login to OCOD using Jdev 11g
    Thanks,
    Amit

  • Discoverer 4i Plus Applet not initializing Win2k/IE6 - Solution

    Hi,
    I finally got a solution to the problem of the Discoverer 4i Plus Applet not launching on IE 6.0 Windows2000 machines.
    When you click on the image "Click to Start" the area goes grey and the applet never comes up. When you look at the java console you will notice a class not found exception. The reasons are as follows :
    - IE 6.0 doesn't come with a built in JVM unlike the earlier versions. The JVM resides with the OS i.e. Windows2000 or WindowsXP.
    - When launching the Discoverer applet you need to invoke the appropriate htm page
    e.g. http://serverURL/discwb4/html/english/ms_ie/start_ie.htm
    This htm page doesn't have any hint in the <applet> tag to use jinitiator or any other JVM to launch the applet, assuming that since the IE browser has an embedded JVM the applet will be launched. However this fails to happen since IE6.0 which ships with Window200 and Windows XP doesn't have a built in JVM. Why the JVM in the OS doen't take of that I don't know as yet. Therefore the applet fails to load and you get a class not found exception that can be verified thru the browser's java console.
    - So instead of calling the IE configured page start_ie.htm call the corresponding netscape page like http://serverURL/discwb4/html/english/netscape/start_nn.htm. The start_nn.htm page has the appropriate <embed> tags to hint the initialization of the applet using jinitiator or other JVM. Therefore the applet gets launched.
    Hope this helps all those who have had to face this issue.
    Kiron

    Hi Simon
    (4) Can I take the user automatically to the list of database workbooks ("Open Workbook from Database" dialogue box) without the user having to choose "Open an existing workbook" and "Database"?
    Yes user can automatically view the workbooks or the worksheet or even a particular page of the worksheet.
    Give the URL to the user and ask the user to run the URL from his/her browser. The URL shloud however contain the username, password, database name, workbook name etc...
    This way we can bypass all the login screens and go directly to the desired page.
    URL is as follows
    http://hostname.domain/program_name/?us=APPS&db=devl&wb=Wb3&pw=apps
    where
    hostname.domain/program_name is where ur discoverer viewer is residing
    us is the username
    pw is the password
    db is the database u wnat to connect to
    wb is the workbook u want to open
    Try this , this works.
    Ankit

  • Jbutton in applet not appearing when embedded in webpage(jre1.6.0_02)

    Hi,
    I am accessing a webcam from an applet embedded in a webpage using JMF 2.1. I am using JButtons using Image Icons. When i view the applet using applet viewer both the player and buttons appear fine. However when the applet is embedded in a jsp page the image JButtons don't appear at all. I am using jre1.6.0_02.
    Following is the code( The capture and cancel JButtons dont appear when viewed in webpage):
    import java.awt.*;
    import java.io.*;
    //import java.awt.Graphics;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.*;
    import java.net.URL;
    import java.net.URLConnection;
    import javax.media.format.*;
    import javax.media.control.*;
    import javax.media.util.*;
    import javax.media.*;
    import javax.swing.ImageIcon;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import com.sun.image.codec.jpeg.JPEGCodec;
    import com.sun.image.codec.jpeg.JPEGEncodeParam;
    import com.sun.image.codec.jpeg.JPEGImageEncoder;
    public class WebCamUnit extends JApplet implements ActionListener
         static final long serialVersionUID = -116069779446114664L;
         private static final String FILENAME_HEADER = "fileName";
         private static final String FILELASTMOD_HEADER = "fileLastMod";
         public static Player player = null;
         public CaptureDeviceInfo captureDeviceInfo = null;
         public MediaLocator ml = null;
         public JButton captureButton, cancelButton = null;
         public Buffer buf = null;
         public Image img = null;
         public VideoFormat vf = null;
         public BufferToImage btoi = null;
         public Component comp;
         public static boolean isTrue = true;
         public JPanel buttonPanel, playerPanel;
         public static String localDirectoryName = null;
         public static String serverDirectoryName = null;
         public static String servletURL = null;
         public static String localImageName = null;
         public static String serverImageName = null;
         String webCamDriverName = null;
         String middleButtonFilename = "TakePicture.JPG";
         String frontButtonFilename = "Cancel.JPG";
         public void init()
              localImageName = getParameter("LOCAL_IMAGE_NAME");
              serverImageName = getParameter("SERVER_IMAGE_NAME");
              localDirectoryName = getParameter("LOCAL_DIRECTORY_NAME");
              serverDirectoryName = getParameter("SERVER_DIRECTORY_NAME");
              servletURL = getParameter("SERVLET_URL");
              webCamDriverName = getParameter("WEBCAM_DRIVER_NAME");
              setLayout(new BorderLayout());
              setSize(320, 340);
              ImageIcon middleButtonIcon = new ImageIcon(middleButtonFilename);
              ImageIcon frontButtonIcon = new ImageIcon(frontButtonFilename);
              captureButton = new JButton(middleButtonIcon);
              cancelButton = new JButton(frontButtonIcon);
              captureButton.setBackground(Color.WHITE);
              captureButton.setContentAreaFilled(false);
              captureButton.setBorderPainted(false);
              captureButton.setFocusPainted(false);
              captureButton.addActionListener(this);
              captureButton.setEnabled(true);
              cancelButton.setBackground(Color.WHITE);
              cancelButton.setContentAreaFilled(false);
              cancelButton.setBorderPainted(false);
              cancelButton.setFocusPainted(false);
              cancelButton.addActionListener(this);
              cancelButton.setEnabled(true);
              buttonPanel = new JPanel();
              buttonPanel.add(captureButton);
              buttonPanel.add(cancelButton);
              buttonPanel.setBackground(Color.WHITE);
              getContentPane().add(buttonPanel, BorderLayout.CENTER);
              if(null==webCamDriverName)
                   webCamDriverName = "vfw:Microsoft WDM Image Capture (Win32):2";
              captureDeviceInfo = CaptureDeviceManager.getDevice(webCamDriverName);
              ml = captureDeviceInfo.getLocator();
                   try
                        player = Manager.createRealizedPlayer(ml);
                   catch (Exception e)
                   try
                        player.start();
                   catch (Exception e)
         public void destroy()
              player.close();
         public void start()
              try
                   if ((comp = player.getVisualComponent()) != null)
                        playerPanel = new JPanel();
                        comp.setBounds(0, 0, 320, 240);
                        playerPanel.add(comp);
                        getContentPane().add(playerPanel, BorderLayout.NORTH);
                   player.start();
              catch (Exception e)
              setVisible(true);
              invalidate();
              repaint();
         public boolean action(Event e, Object o)
              return true;
         public void paint(Graphics g)
              super.paint(g);
         public static void playerclose()
              player.close();
              player.deallocate();
         public void actionPerformed(ActionEvent e)
              JComponent c = (JComponent) e.getSource();
              if (c == captureButton)
                   player.stop();
                   FrameGrabbingControl fgc = (FrameGrabbingControl) player
                             .getControl("javax.media.control.FrameGrabbingControl");
                   buf = fgc.grabFrame();
                   btoi = new BufferToImage((VideoFormat) buf.getFormat());
                   img = btoi.createImage(buf);
                   String newDir = localDirectoryName;
                   boolean success = (new File(newDir)).mkdirs();
                   String imageServername = localDirectoryName + localImageName;
                   saveJPG(img, imageServername);
                   isTrue = false;
              else
                   if ((comp = player.getVisualComponent()) != null)
                        getContentPane().add(comp, BorderLayout.NORTH);
                        player.start();
                   isTrue = true;
         public void stop()
              player.stop();
              player.deallocate();
              getContentPane().removeAll();
         public static void saveJPG(Image img, String s)
              img = img.getScaledInstance(160, 120, 1);
              BufferedImage bi = new BufferedImage(img.getWidth(null), img
                        .getHeight(null), BufferedImage.TYPE_INT_RGB);
              Graphics2D g2 = bi.createGraphics();
              g2.drawImage(img, 0, 0, null, null);
              FileOutputStream out = null;
              try
                   out = new FileOutputStream(s);
              catch (java.io.FileNotFoundException io)
                   String message = "File Not Found";
                   JOptionPane pane = new JOptionPane(message);
                   JDialog dialog = pane.createDialog(new JFrame(), "Dilaog");
                   dialog.show();
              JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
              JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
              param.setQuality(0.50f, false);
              encoder.setJPEGEncodeParam(param);
              try
                   encoder.encode(bi);
                   out.close();
                   try
                   transferFile(localDirectoryName+localImageName,serverImageName,"",-1);
                   catch (Exception e1)
                        String message = "Error occurred while transferring image to server!!";
                        JOptionPane pane = new JOptionPane(message);
                        JDialog dialog = pane.createDialog(new JFrame(), "Dilaog");
                        dialog.show();
                   String message = "Image saved successfully!!";
                   JOptionPane pane = new JOptionPane(message);
                   JDialog dialog = pane.createDialog(new JFrame(), "Dilaog");
                   dialog.show();
              catch (java.io.IOException io)
                   String message = "Error occurred while saving image!!";
                   JOptionPane pane = new JOptionPane(message);
                   JDialog dialog = pane.createDialog(new JFrame(), "Dilaog");
                   dialog.show();
              catch (Exception e)
            // this method transfers the prescribed file to the server.
            // if the destination directory is "", it transfers the file to      "d:\\".
            //11-21-02 Changes : This method now has a new parameter that references the item
            //that is being transferred in the import list.
            public static String transferFile(String srcFileName, String
         destFileName,
                                              String destDir, int itemID)
               if (destDir.equals(""))
                  destDir = serverDirectoryName;
               // get the fully qualified filename and the mere filename.
               String fqfn = srcFileName;
               String fname = fqfn.substring(fqfn.lastIndexOf(File.separator)+1);
               try
                  //importTable importer = jbInit.getImportTable();
                  // create the file to be uploaded and a connection to      servlet.
                  File fileToUpload = new File(fqfn);
                  long fileSize = fileToUpload.length();
                  // get last mod of this file.
                  // The last mod is sent to the servlet as a header.
                  long lastMod = fileToUpload.lastModified();
                  String strLastMod = String.valueOf(lastMod);
                  URL serverURL = new URL(servletURL);
                  URLConnection serverCon = serverURL.openConnection();
                  // a bunch of connection setup related things.
                  serverCon.setDoInput(true);
                  serverCon.setDoOutput(true);
                  // Don't use a cached version of URL connection.
                  serverCon.setUseCaches (false);
                  serverCon.setDefaultUseCaches (false);
                  // set headers and their values.
                  serverCon.setRequestProperty("Content-Type",
                                               "application/octet-stream");
                  serverCon.setRequestProperty("Content-Length",
                  Long.toString(fileToUpload.length()));
                  serverCon.setRequestProperty(FILENAME_HEADER, destDir + destFileName);
                  serverCon.setRequestProperty(FILELASTMOD_HEADER, strLastMod);
                 // if (webadminApplet.DEBUG) System.out.println("Connection with FTP server established");
                  // create file stream and write stream to write file data.
                  FileInputStream fis = new FileInputStream(fileToUpload);
                  OutputStream os = serverCon.getOutputStream();
                  try
                     // transfer the file in 4K chunks.
                     byte[] buffer = new byte[4096];
                     long byteCnt = 0;
                     //long percent = 0;
                     int newPercent = 0;
                     int oldPercent = 0;
                     while (true)
                        int bytes = fis.read(buffer);
                        byteCnt += bytes;
                        //11-21-02 :
                        //If itemID is greater than -1 this is an import file      transfer
                        //otherwise this is a header graphic file transfer.
                        if (bytes < 0) break;
                        os.write(buffer, 0, bytes);
                     os.flush();
                     //if (webadminApplet.DEBUG) System.out.println("No of bytes sent: " + byteCnt);
                  finally
                     // close related streams.
                     os.close();
                     fis.close();
                 // if (webadminApplet.DEBUG) System.out.println("File Transmission complete");
                  // find out what the servlet has got to say in response.
                  BufferedReader reader = new BufferedReader(
                                 new
         InputStreamReader(serverCon.getInputStream()));
                  try
                     String line;
                     while ((line = reader.readLine()) != null)
                       // if (webadminApplet.DEBUG) System.out.println(line);
                  finally
                     // close the reader stream from servlet.
                     reader.close();
               } // end of the big try block.
               catch (Exception e)
                  System.out.println("Exception during file transfer:\n" + e);
                  e.printStackTrace();
                  return("FTP failed. See Java Console for Errors.");
               }  // end of catch block.
               return("File: " + fname + " successfully transferred.");
            }  // end of method transferFile().
    }

    >
    I am accessing a webcam from an applet embedded in a webpage using JMF 2.1. I am using JButtons using Image Icons. When i view the applet using applet viewer both the player and buttons appear fine. However when the applet is embedded in a jsp page the image JButtons don't appear at all. >That is probably because of security. Add 10 Dukes to the thread to indicate you are serious about resolving this, and I might expand on that answer.

  • Applett not initialized

    I am running a web applicaiton on a windows xp machine and for this one particular user cannot open the application. I have tried logging him onto another computer and still get the same results. I have been able to successfully log on as myself and launch the program - so it must be somewhere in his user profile. But where? This is what the java trace says:
    Java(TM) Plug-in: Version 1.3.1_06
    Using JRE version 1.3.1_06 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\gbennett
    Proxy Configuration: no proxy
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    java.lang.NoClassDefFoundError: symantec/itools/lang/Context
         at com.necho.navigater.applications.signon.client.NavLauncher.init(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    All instance variables are initialized...This is not a requirement of the JLS in all cases and cannot be relied upon when not required
    if they are
    primitives they are set to zero or "" if it is a
    string.Strings are objects, in situation where a default is called for then null is used for all objects regardless of class.
    All objects get their default constructors
    called.No, there is no guarantee that a class has a default constructor available to be called, see the answer to your previous statement about default String assignment

  • Issue: 'Start Applet not initialized'.

    I can't debug this program? Can you help?
    Thanks!
    import java.text.NumberFormat;
    public class Account
    private final double RATE = 0.035; // interest rate of 3.5%
    private long acctNumber;
    private double balance;
    private String name;
    // Sets up the account by defining its owner, account number,
    // and initial balance.
    public Account (String owner, long account, double initial)
    name = owner;
    acctNumber = account;
    balance = initial;
    // Deposits the specified amount into the account. Returns the
    // new balance.
    public double deposit (double amount)
    balance = balance + amount;
    return balance;
    // Withdraws the specified amount from the account and applies
    // the fee. Returns the new balance.
    public double withdraw (double amount, double fee)
    balance = balance - amount - fee;
    return balance;
    // Adds interest to the account and returns the new balance.
    public double addInterest ()
    balance += (balance * RATE);
    return balance;
    // Returns the current balance of the account.
    public double getBalance ()
    return balance;
    // Returns a one-line description of the account as a string.
    public String toString ()
    NumberFormat fmt = NumberFormat.getCurrencyInstance();
    return (acctNumber + "\t" + name + "\t" + fmt.format(balance));
    }

    AndrewThompson64 wrote:
    Melanie_Green wrote:
    robert_png wrote:
    I'm afraid I don't understand what you meant.
    When I compile the program, there's no bug. But when try to run it, it says "Start applet cannot be initialized".
    Why is that? I'm new to Java..Maybe because the Class you are trying to run is not an applet? Possibly, but the OP posted the Account class, whereas the Start class has not yet been revealed. That is one of the reasons I suggested an SSCCE.
    BTW I spotted a bug in your code above.You did. OTOH the OP has more imperative problems to fix, before they can 'understand the wisdom'(1) of your comment. ;)
    1) By which I mean, see it fail for the reasons you outlined.I usually expect to find the context of a problem to be outlined in the form of an explanation or question inside a thread. I guess I should pay more attention to the title.
    =) Mel

  • Java Applet not initiating

    I'm new to Java and have been going through the SAMS "Teach Yourself Java 2" and have a problem will Applets. I am using the latest download of Java2SE (J2sdk1.4.2_09) and NetBeans IDE.
    Creating Java programs works fine but when I do the exercise for Applets called "Palindrome" project, it fails. I embed the <APPLET> tag in my HTML a couple different ways laid out in the text but all fails. I doing this without the Internet. Is there something special that I need to do to get this to work with the generated palindrome.class on my hard drive.
    I did make some changes to my computer's Internet settings based on an FAQ I saw on the Sun site - Proxy_Server - localhost. But this did not solve my problem.
    I would appreciate any suggestions on how I might further investigate this - I'm sure I have something set wrong and just need some more test options to identify the problem.
    Your assistance is greatly appreciated.
    Thanks
    Don

    I checked the Browser VM and it shows the same as the one in the Java Plug-in control panel but I continue to get the same error. Can anyone with some Java experience identify the problem from this error code:
    Java(TM) Plug-in: Version 1.4.2
    Using JRE version 1.4.2_09 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings
    Proxy Configuration: Manual Configuration
    Proxy:
    Proxy Overrides:
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class Palidrome.class not found.
    java.lang.ClassNotFoundException: Palidrome.class
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:162)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:566)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:619)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:548)
         at sun.applet.AppletPanel.run(AppletPanel.java:299)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.io.FileNotFoundException: A:\Palidrome\class.class (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
         at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:274)
         at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43)
         at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:152)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:149)
         ... 9 more
    Any assistance you can offer will be greatly appreciated.
    Don

  • Re: class can't be instantiated/ applet not initialized error

    I would change the following:
    From:
    public abstract class AmazingApplet extends JApplet implements ActionListener
    to:
    public class AmazingApplet extends JApplet implements ActionListener
    Also, since your class implements ActionListener, you must have an actionPerformed method (to take care of the addActionListener that you used all over the place.
    V.V.

    Thanks Viravan,
    When I remove "abstract", I get the following error message:
    AmazingApplet.java:7: AmazingApplet should be declared abstract; it does not define actionPerformed(java.awt.event.ActionEvent) in AmazingApplet
    public class AmazingApplet extends JApplet implements ActionListener
    Also, I do have actionPerfomed method in the program. Any suggestions?

  • Why is my applet not found when published by servlet-easy one?!

    Hi! I have a servlet that publishes an html page with the applet tag inside it but it never finds the applet whenever it publishes the html. Can somebody please tell me where is the applet code supposed to be placed in jsdk2.1?! I placed it in the same folder as the servlets, as the .bat files, webpages, Web-inf but still it is not found. This is the Servlet code:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class chat extends HttpServlet{
         public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException
              String user="",host="http://195.13.94.38/ChatApplet";
              try{ user=req.getParameter("user");
              PrintWriter output=res.getWriter();
              res.setContentType("text/html");
              output.println("<html><body><APPLET CODE="+host+" WIDTH=500 HEIGHT=400><PARAM NAME=user VALUE="+user+"></APPLET></body></html>");
              output.close();
    }catch(Exception tru){}
    I even tried to have the applet code= ChatApplet and still no success.
    Thank you

    I don't know if you fixed this already, but if you haven't, try:
    String chat = "ChatApplet";
    String codebase = "http://195.13.94.38";
    out.println("<APPLET CODE=" + chat + " CODEBASE=" + codebase + " WIDTH= ........the rest of the code...>");
    Give it a try and good luck.

  • Components and applet not loading when running the application using JVM1.3

    I have my UI written in JavaScript.When I click a button,it opens a window showing the different components(images) and an applet containing a tree structure.The applet code is written in java
    This is working fine and the applet is loading properly when I use JVM1.4. But there is a problem when I use JVM1.3.1_09.The images appear broken and the applet doesnot load.(When I click on one of the broken images,the images appear correctly but the applet still doesn't load)
    Can anyone tell me what could be the reason behind this behavior??
    My sys config: win2k-SP4, IE5.0-SP4

    If you are using SDK 1.4 for compilation,
    recompile your classes with the option -target 1.1
    javac -target 1.1 MyClass.java

  • Start: Applet not initialized!!!

    need help... can't seem to run the applet program
    <HTML>
    <HEAD>
    <TITLE>CyberPet Applet</TITLE>
    </HEAD>
    <BODY>
    <p>
    <applet code="CyberPetApplet.class" width=300 height=150>
    </applet>
    </p>
    </BODY>
    </HTML>C:\Program Files\jbuilder5\jdk1.3\bin\javaw -classpath "D:\java\CyberPet\classes;C:\Program Files\jbuilder5\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:\Program Files\jbuilder5\jdk1.3\jre\lib\i18n.jar;C:\Program Files\jbuilder5\jdk1.3\jre\lib\jaws.jar;C:\Program Files\jbuilder5\jdk1.3\jre\lib\rt.jar;C:\Program Files\jbuilder5\jdk1.3\jre\lib\sunrsasign.jar;C:\Program Files\jbuilder5\jdk1.3\lib\dt.jar;C:\Program Files\jbuilder5\jdk1.3\lib\tools.jar" -Djava.security.policy="C:/Documents and Settings/Ayen/.jbuilder5/appletviewer.policy" sun.applet.AppletViewer File:///"D:/java/CyberPet/classes/cyberpet/CyberPet.html"
    java.lang.NoClassDefFoundError: CyberPetApplet (wrong name: cyberpet/CyberPetApplet)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:142)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:108)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:366)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:579)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:515)
         at sun.applet.AppletPanel.run(AppletPanel.java:293)
         at java.lang.Thread.run(Thread.java:484)

    i tried putting the html file in the same
    CyberPetApplet.class directory, but it doesnt
    work.....You have to do one of the following.
    1) Put your applet in a jar. Then you can put the jar in the same directory as your html page (or whereever you want to put it really). (This is the preferred method).
    2) You'll have to put the class file in the right directory structure based on your package structure relative to your html file.
    So in the directory with your html file you would have a directory named cyberpet with your applet class inside.

Maybe you are looking for

  • How do I move apps from one page to another?

    How do I move apps from one page to another?

  • Include Stock transfer in MRP

    Hello Solution Management, Currently MRP Only check the quantity available for a given  item in the warehouse(s) and suggests to buy/produce it. However it could happen that the stock which need to be used is available in a different warehouse than t

  • Is there a way I can randomize quiz questions in Adobe Captivate 6 on multiple attempts?

    I am trying to find a way in Captivate 6 to randomize quiz questions out of a pool (i.e.; 50 random questions slides are linked to a pool containing 63 questions, I want to allow for 3 attempts).  Things work great witht he first attempt, but Captiva

  • Survey specs

    How many people can I include in a survey form? I believe it is 500 but I am not qutie sure. I want to be able to review survey results for about 250 - 300 people

  • Can't create apple id for child

    I am trying to create an apple id for my 7 year old son and follow all the prompts but once I come to verifying my payment method it does not advance and ask for the security code from the card. Then when I go to the app store or iTunes and enter the