Date: Mon, 12 Jun 2000 13:30:51 -0700 From: "Rick Moore" <rick@geckobot.com> To: <freebsd-java@freebsd.org> Subject: Netscape on FreeBSD running Java Applets Message-ID: <001201bfd4ad$19e12740$0464a8c0@patches> References: <3945098D.11565DB4@infopsyc.com> <00a601bfd48d$3ae5d000$24d39580@jpl.nasa.gov> <39451E99.5AF9F416@infopsyc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello!
I'm not sure this is the right forum, but I'm sure you'll let me know if
it's not. :)
I noticed that Java applets running under Netscape on FreeBSD seem to have
some problems. They can't connect sockets back to their host server. I can
live without blind socket connectivity, but even HTTP resources don't seem
to download. For example, I can't get my applet to display a simple image!
I must be doing something wrong. Is there some little HTML bit or something
I need to include to get a simple image to download to an applet running
under FreeBSD Netscape? My applet works under IE and NS under Windoze, and
I'm a fairly senior Java developer so I don't *think* it's my code. Here's
a reduced version of code which demonstrates the problem.
public class Research extends Applet
{
static Image blankButton;
public void init()
{
blankButton = getImage( getCodeBase(), "images/blankbutton.gif" );
}
public void paint( Graphics g )
{
g.drawImage( blankButton, 0, 0, this ); // Null pointer exception is
thrown here
}
Here's the HTML:
<!DOCTYPE HTML><HTML><HEAD></HEAD><BODY>
<APPLET CODE="Research.class" WIDTH=600 HEIGHT=500></APPLET>
</BODY></HTML>
Thanks in advance,
Rick
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001201bfd4ad$19e12740$0464a8c0>
