applet woes

I was hoping someone could help me out figure out whats wrong with my applet.. for some reason its not loading on everyone's computers that I've had test it so far, out of 5 people, it only works on 2 computers. I setup a fresh win2k virtual machine, with just the jdk installed and it ran ok through the browser. On two of the computers the error in the browser was "applet notinited"

I made sure the ftp transfer to the webserver was ascii, im certain permissions are correct, and right now only one class is used. The only thing I havent tried is using jdk 1.5 to compile instead of 1.6, because im stuck on a really slow connection for a couple weeks. Any ideas?

cheers,

d

code:

import java.awt.*;

import javax.swing.*;

import java.awt.event.*;

publicclass RSVPextends JAppletimplements ActionListener

{

TextArea textArea1 =new

TextArea("",0,0,TextArea.SCROLLBARS_NONE);

TextField textField1 =new java.awt.TextField();

Button rsvpButton =new java.awt.Button();

private String instructions =new String("test test test");

private String notFinished =new String("test2 test2 test2");

publicvoid init()

{

getContentPane().setLayout(null);

setSize(333,159);

getContentPane().add(textArea1);

textArea1.setBackground(Color.white);

textArea1.setBounds(24,12,286,77);

textArea1.setEditable(false);

getContentPane().add(textField1);

textField1.setBackground(Color.white);

textField1.setBounds(24,96,216,24);

rsvpButton.setLabel("RSVP!");

getContentPane().add(rsvpButton);

rsvpButton.setBackground(java.awt.Color.lightGray);

rsvpButton.setBounds(252,96,62,27);

rsvpButton.addActionListener(this);

textArea1.setText(instructions);

}

publicvoid actionPerformed(ActionEvent e)

{

Component c = (Component) e.getSource();

if(c == rsvpButton){

textArea1.setText(notFinished);

textArea1.repaint();

return;

}

}

}

and the html:

<html>

<center>

<object alt="Java Runtime Environment is not working on your system" border="0" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="159" width="333">

<param name="codebase" value="./"/><param name="code" value="RSVP.class"/>

<comment>

<applet alt="Java Runtime Environment is not working on your system" border="0" code="RSVP.class" codebase="./" height="159" width="333">

</applet>

</comment>

</object>

</center>

</html>

[4090 byte] By [dgrifa] at [2007-11-27 10:36:07]
# 1

Get the actual error messages from Java. The "not inited" is a worthless browser message. Open the Java Console that the browser is using, or right-click the applet area message, or select the more information option in a popup box. The choices vary by version.

ChuckBinga at 2007-7-28 18:39:09 > top of Java-index,Desktop,Core GUI APIs...
# 2

This is what I get at my work computer:

java.lang.UnsupportedClassVersionError: Bad version number in .class file

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)

dgrifa at 2007-7-28 18:39:09 > top of Java-index,Desktop,Core GUI APIs...
# 3

got it fixed.. must be a cache problem on the computers that it wouldnt load on initially,

because I tried at work on different machines and it loads up fine. Thanks for the reply tho Chuck :)

dgrifa at 2007-7-28 18:39:09 > top of Java-index,Desktop,Core GUI APIs...