Re: A question about Sun Microsystems Java program

  • From: "Gilbert Neiva" <gneiva@xxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Fri, 11 Jun 2010 19:31:41 -0600

Thanks. It worked.

Gilbert Neiva

----- Original Message ----- From: "Alex Hall" <mehgcap@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Friday, June 11, 2010 7:27 PM
Subject: Re: A question about Sun Microsystems Java program


Once you have the .class file, just type this command into a command
prompt, the same place where you typed the javac command:
java className
where className is the filename of your program with no extension. If
your program was grades.java, you have a grades.class file once it is
compiled, so you would just type
java grades

On 6/11/10, Gilbert Neiva <gneiva@xxxxxxx> wrote:
How do you run a .class program using javac. When I typed javac and then the name of my .java file, it compiled it into a class file, but it didn't run. The program I'm trying to run and compile into a class file is a simulation of a grade sheet. It asks for a name, course number and assignment number.
It then displays the user's name, course number and name, and assignment
number along with various labels that display the person's score. When I
typed Javac GradeSheet.java, GradeSheet.java being the name of my program
source file, it didn't ask me for anything. It just compiled into a .class
file. Can anyone help me with this problem. I made the source file with
Eclipse, but the instructor whom I'm suppose to hand in this program will no
doubt be running the javac program.

Gilbert Neiva



--
Have a great day,
Alex (msg sent from GMail website)
mehgcap@xxxxxxxxx; http://www.facebook.com/mehgcap
__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: