I suspect that what you have made is a Java applet.  Applets must run in the
context of an application, most generally a browser.  Put your file1.class
file in a directory to which you have access with a web server and write a
simple web page, say file1.html, with the following in it, in addition to
the usual required HTML markup.

<applet code="file1.class" width=400 height=300>
</applet>

You can make the width and height whatever you want them to be.  If your
applet needs parameters, you'll need to put them inbetween these tags as
something like...

<param name="whatever1" value="xxx">
<param name="whatever2" value="yyy">

These aren't real names and values, but I'm sure you get the idea.  Access
the page you've created with a java-enabled browser (most are these days)
and you should see your applet run.

There are a number of good books on Java.  I recommend "Java in a Nutshell",
published by O'Reilly & Associates.  Java is pretty complex.  You'll need
additional documentation to understand how to use it properly.

Thus spake [EMAIL PROTECTED] on Mon, Dec 27, 1999 at 12:43:21PM CST
> Hello everybody,
> 
> Have you got a merry Christmas? Now everything was in the past and I
> feel frighten when there are only a few day left before the year 2000.
> It doesn't mean Y2K but I think I didn't anything this year so I try to
> learn something in the last days of 1999.
> 
> I have a question about Java in Linux but I don't know which group I
> should send to, so I send to you.
> I install jdk-1.1.5-8.i386.rpm in Linux by typing rpm -ivh
> jdk-1.1.5-8.i386.rpm. After that I can compile a java file (javac
> file1.java) but I cannot run it (java file1.class). I don't see any help
> included with jdk. I really need your help.

-- 
Lindsay Haisley       | "Everything works    |     PGP public key
FMP Computer Services |       if you let it" |      available at
[EMAIL PROTECTED]        |    (The Roadie)      | <http://www.fmp.com/pubkeys>
http://www.fmp.com    |                      |
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to