Java in AT&T PWP

From: wayne.rawls (wayne.rawls_at_worldnet.att.net)
Date: 06/28/04


Date: Mon, 28 Jun 2004 19:58:08 GMT

Hi,
  I was referred to you because I'm having a problem getting this to run in
AT&T PWP (Personal Web Pages). I compile the Java Program using NetBeans
IDE 3.6. I upload the .java, the .class and the .html files to my PWP
library.

import java.awt.*;
import java.applet.*;
import javax.swing.*;

public class AppHelloWorld extends JApplet
{
     public void init()
     {
         resize(700,100);
     }

     public void paint(Graphics g)
     {
         g.drawString("Hello, Applet world!", 10, 25);
     }
 }
---------------------------------------------------------------
This is the page I run in the browser (Internet Explorer and Netscape).

<HTML>
<HEAD>
   <TITLE>Applet HTML Page</TITLE>
</HEAD>
<BODY>
<H3><HR WIDTH="100%">Applet HTML Page<HR WIDTH="100%"></H3>

<P>
<APPLET code="AppHelloWorld.class" width=350 height=200>
</APPLET>
</P>

<HR WIDTH="100%"><FONT SIZE=-1><I>Generated by NetBeans IDE</I></FONT>
</BODY>
</HTML>

This is the message I get from the browser:
java.lang.ClassFormatError: AppHelloWorld (Extra bytes at the end of the
class file)

The page will run in Edit*Plus and IE (FILE, OPEN, BROWSE) and Netscape
(FILE, OPEN FILES, select document).

Can you provide any information on how to get this to run in the browsers?

Wayne Rawls



Relevant Pages

  • Re: Ben Goodger knows that, Linus knows that... how about you ?
    ... > a Browser could unseat WinXP's dominance on the desktop. ... to create a 'virtual operating system' no longer a browser, ... Microsoft File page 237 ... "A new competitor 'born' on the Internet is Netscape. ...
    (sci.physics)
  • Re: Windows Defender (formerly windows antispyware) is out!
    ... Sure you will be able to buy Windows Vista and get WD, but WD will still be available as a stand alone product for free. ... You know, as soon as they run Netscape and other browsers out of business, they'll start charging for it. ... If you've been around as long as I have, you'll know that Netscape started as a free browser competing against my favorite mosaic browsers. ... With the launch of Windows 1995 and a web browser of its own (Internet Explorer) in August 1995, ...
    (microsoft.public.windowsxp.general)
  • Re: Windows Defender (formerly windows antispyware) is out!
    ... Sure you will be able to buy Windows Vista and get WD, ... as soon as they run Netscape and other browsers out ... Netscape started as a free browser competing against my favorite mosaic ... (Internet Explorer) ...
    (microsoft.public.windowsxp.general)
  • Re: SP2 ... just a thought to ponder ........
    ... It certainly was the case when Netscape was charging for their browser which is prolly the main reason IE overtook Netscape as the browser of choice. ... MS has always known about weak safety spots in their system (just today MS made public that ... you bought a car with electrical windows ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress.stationery)
  • Re: Netscape 7 issues.
    ... > average user having a good working browser is now much more ... Netscape in a few weeks as it seems Sun isn't going to produce ... Installation is a snap, it runs OK, and has ... The Windows desktops ...
    (comp.sys.sun.admin)