From owner-freebsd-java Mon Jun 12 13:23:57 2000 Delivered-To: freebsd-java@freebsd.org Received: from c004.sfo.cp.net (c004-h007.c004.sfo.cp.net [209.228.14.63]) by hub.freebsd.org (Postfix) with SMTP id 952C137B765 for ; Mon, 12 Jun 2000 13:23:53 -0700 (PDT) (envelope-from rick@geckobot.com) Received: (cpmta 22164 invoked from network); 12 Jun 2000 13:23:52 -0700 Received: from chnd1-blk1-hfc-0251-d1db0086.rdc1.az.coxatwork.com (HELO patches) (209.219.0.134) by smtp.geckobot.com with SMTP; 12 Jun 2000 13:23:52 -0700 X-Sent: 12 Jun 2000 20:23:52 GMT Message-ID: <001201bfd4ad$19e12740$0464a8c0@patches> From: "Rick Moore" To: References: <3945098D.11565DB4@infopsyc.com> <00a601bfd48d$3ae5d000$24d39580@jpl.nasa.gov> <39451E99.5AF9F416@infopsyc.com> Subject: Netscape on FreeBSD running Java Applets Date: Mon, 12 Jun 2000 13:30:51 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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: Thanks in advance, Rick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message