[2889] in java-interest

home help back first fref pref prev next nref lref last post

Re: compile on PC, serve on SunOS...help!

daemon@ATHENA.MIT.EDU (ozymandias G desiderata)
Thu Oct 19 16:12:55 1995

To: chwright@goesser.mit.edu
cc: java-interest@java.sun.com
In-reply-to: Your message of "Wed, 18 Oct 1995 22:00:44 EDT."
             <9510190200.AA19089@goesser.mit.edu> 
Date: Thu, 19 Oct 1995 11:13:33 -0700
From: ozymandias G desiderata <ogd@organic.com>


  cw> I'm trying to use win95 to compile java and then move the class files
  cw> to a SunOS web server.  Not working.  Example: I wrote HelloWorld and
  cw> to get it to compile on the PC, included:
  cw> 
  cw> 	import awt.Graphics; 
  cw> 	public class HelloWorld extends browser.Applet {
  cw> 
  cw> Moved it to SunOS and with Netscape2 get the error window containing
  cw> such as:
  cw> 
  cw> 	I/O exception when loading: browser.Applet
  cw> 	java.lang.UnknownError browser/Applet
  cw> 
  cw> What am I doing wrong?  I must be able to compile on the PC and
  cw> serve/run the web on SunOS.

  A _strong_ clue lies in the fact that you're importing from awt.* instead
  of java.* -- that indicates that you're trying to run an applet using the
  alpha version of Java's API in Netscape's browser, which supports the beta
  version. You should still be able to use your applets by changing the
  <APPLET> tag into an <APP> tag (converting all of the attributes and
  whatnot) and then looking at it in HotJava. I would tell you to get the
  WinNT / 95 version of the beta-level Java Developer's Kit, but it's still
  not available.

  yrz,
  ozy

ozymandias G desiderata    ogd@organic.com    Tomorrow's Web Sites Today
(415)284-6888          http://www.organic.com             Organic Online
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post