Article View: aus.computers.ai
Article #830Re: HELP,JAVA
From: David M. Williams
Date: Wed, 22 Jan 1997 00:00
Date: Wed, 22 Jan 1997 00:00
36 lines
1902 bytes
1902 bytes
Colin Gwyther (lyng@intercoast.com.au) wrote: : I am trying to learn Java using "Teach yourself java" book by sams net, : using Windows 95. I can create the source file but canot follow through : to compile the source file with .java or .class. Can somebody please : assist. I can and do, create web pages using html, but please assume I : know nothing. Thanks. Hi Colin, You need a copy of the Java Developers Kit or some other system that will allow you to make .class files. That is, you can easy write a .java file using any text editor, but you then need to "compile" the .java file to create the .class file which is what you actually "execute". If you have the JDK you use the command "javac" for "Java Compiler" like so C:> javac test.java You can then execute the .class file by using the appletviewer if it is an applet, or you can execute it with the "java" command if it is a stand-alone application like so C:> java test Note that you need the .java extension when compiling, but you ignore the .class extension when running the program. I hope this helps a bit. Regards, David Williams -- .////. .// David M. Williams d.williams@newcastle.scantech.com.au o:::::::::/// Computer Scientist Fax: (049) 611231 Ph: (049) 612201 >::::::::::\\\ Quality Coal Consulting Compuserve: 100357,1141 '\\\\\' \\ Newcastle, NSW, Australia Mobile: 0412 215440
Technical Details
Message-ID:
<5c3v3h$ajs@seagoon.newcastle.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<32E39C58.918@intercoast.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1132b9,8fb30d538f74b5cf,start X-Google-Attributes: gid1132b9,public From: mgdmw@alinga.newcastle.edu.au (David M. Williams) Subject: Re: HELP,JAVA Date: 1997/01/22 Message-ID: <5c3v3h$ajs@seagoon.newcastle.edu.au> X-Deja-AN: 211624325 references: <32E39C58.918@intercoast.com.au> organization: The University of Newcastle newsgroups: aus.computers.ai