answersLogoWhite

0


Best Answer

The command to compile a Java program is "javac", followed by the class name (file name).

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the command to compile a java program named Greetingsjava?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you debug a program that is already running?

Assuming that you have written a program named abc.c and created executable abc. Steps: 1. run your program from command line ./abc 3. get the PID processid of the program from PS aux | grep abc 3. start the gdb from command line 4. type following command on GDB prompt (gdb) attach PID where PID = your program's processid got from step 1.


What is actual path of execution of a program?

how programs are executed? Let we take C, how a c program is executing.... A first step we have to install a particular software for a execution so here we are installing turbo c then open the bin folder after the installation ,you will find on executable file named TC.exe it will look like a command prompt that only executing your c program files and giving another executable file for your program as output. to check fisrt create any simple program and first compile it and see the bin folder you will find one file named filename.obj and then run that program and now you will find another file filename.exe,that is an output file.


How do you compile and run C programs on the Macintosh?

The first step is to install the XCode developer tools that comes with OSX. You can do this by looking on your OSX install disc. There should be a folder for optional installs, and a package for XCode. This will automatically install gcc, a C compiler, on your machine. Next, find the Console in the Utilities folder. It opens a UNIX shell. Move to the directory that your c file is in (you can find more information about UNIX elsewhere if you need to). Let's say your C file is named myfile.c. To compile it, type: gcc myfile.c This will compile your program, and name the compiled program a.out. To run it, type: ./a.out I hope that helps. Brina


What is button in Visual C plus plus?

A button is more correctly named a command button. It is an ActiveX control that is derived from a CWnd object. Command buttons can be resized, restyled, and can be assigned a caption and/or an image. Programmers can override command button methods (such as OnLButtonDown/OnLButtonUp and OnKeyDown/OnKeyUp) to invoke specific actions.


What are the six stages that typical c programs go through to be executed?

First of all the source code is get compiled and the object code is returned i.e.binary code(machine language).Then the Linker, a computer program that takes one or more objects generated by a compiler and combines them into a single executable program. Now when the program is executed then the .exe file is first loaded into the memory and then executed by the processor. In short the steps are: 1.Compilation 2.Linking 3.Loading 4.execution

Related questions

How do you debug a program that is already running?

Assuming that you have written a program named abc.c and created executable abc. Steps: 1. run your program from command line ./abc 3. get the PID processid of the program from PS aux | grep abc 3. start the gdb from command line 4. type following command on GDB prompt (gdb) attach PID where PID = your program's processid got from step 1.


What is actual path of execution of a program?

how programs are executed? Let we take C, how a c program is executing.... A first step we have to install a particular software for a execution so here we are installing turbo c then open the bin folder after the installation ,you will find on executable file named TC.exe it will look like a command prompt that only executing your c program files and giving another executable file for your program as output. to check fisrt create any simple program and first compile it and see the bin folder you will find one file named filename.obj and then run that program and now you will find another file filename.exe,that is an output file.


What is the Linux command to create a file named security?

As files can be of any number of types, there is no single command that will do this. You would use the program associated with that file type to create a file. If you wanted to create a "blank" file, that has no content and uses no space, use the command touch filename.


How can print screen output in borland c plus plus?

Redirect the output to a file via the command line. Print the file. For example, if the program is named foo.exe, the output can be redirected to a file named foo.txt with the following command: foo.exe > foo.txt Everything sent to std::cout by the program will now be sent to the file instead. Everything sent to std::cerr will be displayed on screen as normal.


What was the capsules name on Apollo 11?

The command module on Apollo 11 was named "Columbia," while the lunar module was named "Eagle."


What was the name of the command module of the Apollo 11 spacecraft of 1969?

The command module of the Apollo 11 spacecraft in 1969 was named "Columbia."


What was the name of the command module?

The command module of the Apollo 11 mission was named "Columbia."


What was the name of the Apollo 11 Command Module?

The Apollo 11 Command Module was named "Columbia."


Is there a software named Graphics in Linux?

No. There is no program named "Graphics" for Linux.


How was Jason-1 named?

The program was named after the Greek mythological hero Jason.


What command would you utilize to change the ownership group of a file named xxx.php?

If you are asking about group ownership change then the command is 'chgrp'


What was the name of the Apollo 13 command module?

The Apollo 13 Command Module was 'Odyssey' . Aquarius was the Lunar lander.