[2967] 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 (ser@jersey.uoregon.edu)
Tue Oct 24 15:48:58 1995

From: ser@jersey.uoregon.edu
To: java-interest@java.Eng.Sun.COM
Date: Mon, 23 Oct 1995 23:18:39 -0700

chwright@goesser.mit.edu wrote:
> I'm trying to use win95 to compile java and then move the class files
...
>        import awt.Graphics; 
>        public class HelloWorld extends browser.Applet {
> Moved it to SunOS and with Netscape2 get the error window containing such as:

It looks to me as if you are trying to compile Aplha-3 Java code under Win95
and then run it with Beta-1 applications.  This, obviously, will not work.
First of all, in Beta Java, there is no standalone awt superstructure; all
of that is now grouped under Java.  Secondly, there is no browser.Applet
class; Applet is now directly under java as well.

You can find all these esoteric answers and more in the API documentation;
just keep track of which version of the language you are coding for, and
RTFM.  In this case, you want:
	http://www.javasoft.com/JDK-prebeta1/api/packages.html

Sean Russell               \   It's OK to judge a book by its cover,
ser@cs.uoregon.edu          \  as long as you understand that most of
http://zebu.uoregon.edu/~ser ) the cover artists
Finger Me for PGP Key       /                have never read the book.
NeXTMail Welcome!!!        /   

-
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