42.8k views
5 votes
Assuming you are using the jdk what command would you type at the operating system command prompt

User SirPeople
by
6.6k points

1 Answer

2 votes
To do what, exactly?

The two most popular ones, and perhaps what you're looking for is:


"javac <SOURCE>" - Compile java source code in to a .java file.
"java <FILE>" - Run a .java file.


Don't forget to select the correct destination when using these commands, with "cd <DESTINATION>".
User Seeiespi
by
6.8k points