# Re: Help

Marianne Mueller (mrm@Eng)
Mon, 2 Jun 1997 11:21:11 -0700

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Simon Spero: "JCE bug report"
- Previous message: Marianne Mueller: "Re: Class Hierarchy"
- Maybe in reply to: (no name): "Help"

    Date: Mon, 2 Jun 1997 11:21:11 -0700

    Message-Id: <199706021821.LAA02036@puffin.eng.sun.com>

    From: Marianne Mueller <mrm@Eng>

    To: pnalla@coral.cslab.uwf.edu

    Subject: Re: Help

The Java Tutorial is online at

http://java.sun.com/tutorial

I also recommend the books by Laura Lemay, "Teach Yourself Java in 21
Days" and her followon books. I think her latest book covers JDK 1.1
classes.

To compile a java program, you use the compiler named "javac" that is
part of the JDK distribution. If your java program is in a file
named foo.java, then

% javac foo.java

will compile it to bytecode, and put the bytecode into a file named
foo.class.

You can then invoke the java interpreter to run your program by

% java foo

The java class name needs to be the same as the file name.

You can download the JDK from

http://java.sun.com/products/jdk/1.1

Marianne

> Date: Fri, 30 May 1997 09:37:06 -0500 (CDT)
> From: Padma Nalla <pnalla@coral.cslab.uwf.edu>
> X-Status: $$$$
> X-UID: 0000000114
>
>
>
>
> Can you please tell me how I should compile and run
> my JAVA programs on SUN (SPARC) workstations.
>
> I am trying to learn JAVA and in my school I am using
> SUN workstations and I could not figure out how to
> compile and run my JAVA programs. I checked all your
> web sites but could not find the information I needed.
>
> Thank You
> Rekha
>
>

- Next message: Simon Spero: "JCE bug report"
- Previous message: Marianne Mueller: "Re: Class Hierarchy"
- Maybe in reply to: (no name): "Help"