Junilu Lacar wrote:One last try and then I really have to hit the sack...
Go to your command prompt
cd to whatever directory that .class file is saved in
Type the command you were instructed to type to run the program.
Junilu Lacar wrote:
Daniel Harbsmeier wrote:Sorry if I've offended you.
You haven't offended me so no apology necessary. We do expect folks to put in some effort in helping themselves though and a little show of independence goes a long way in building up goodwill and making people actually want to help. It's been a long day so if my responses seem a little curt it's because I'm a little annoyed that my efforts to help haven't been successful yet and I'd really like to go to bed not wondering if you're still stuck. I still have an early appointment with my endocrinologist tomorrow morning, or I guess now I should say this morning.
Junilu Lacar wrote:How about you just use Windows File Explorer (not the web browser) to look at that directory where you think you saved the .class file? Can you see it that way? If you're sure you saved the file, then you should be able to see it in the directory.
Are you actually reading the instructions on that page? Doesn't seem like it because you've posted twice that you typed a command that is not what was instructed on your homework page. Read and follow the instructions you were given!
Junilu Lacar wrote:
Daniel Harbsmeier wrote:Sorry I've just procrastinated a lot on this project and its due at 6 am
You do understand that moderators on this site are all volunteers, right? If your questions get answered quickly it's because you're in luck and someone is actually still mucking about. It also helps that we have volunteers from all over the world so there are a lot of time zones covered. The fact remains that you shouldn't rely on quick responses here and if you have something urgent you need to get done, that's not really our problem.
Junilu Lacar wrote:What command did you type? Did you follow the instructions on that page?
When you type the command
dir
Is the .class file that you downloaded listed?
Junilu Lacar wrote:The command is
java -version
How to check Java is installed ok
You might also want to start learning how to use search engines - it's pretty amazing how many answers those things can find when you type in any kind of question in your browser's address bar.
Junilu Lacar wrote:Yes, the command prompt is displayed in what's usually called a terminal window.
The cd command stands for "change directory" - you would type the command cd C:\Users\Daniel\Documents to change to the directory where you save the .class file. Then just follow the instructions that page gave.
You can check if you have properly installed Java by typing the command java -version - if you get no errors then you should be good.
Daniel Harbsmeier wrote:
Junilu Lacar wrote:Welcome to the Ranch!
A link at the top of the page you cited allows you to download the executable .class file. You should probably right click on that link and select "Save as file..." or whatever context menu option you see that allows you to save whatever the link points to as a file in your local system. Then you'd open a terminal window and cd to the directory where you saved the .class file. Then you can issue that command to run the program. And don't take the instructions too literally; You have to give an actual number instead of "X" when you type in that command.
Hey! Thanks so much for your reply. I'm still a bit confused on the terminal window and cd part as I'm extremely ignorant to all of this. I'm on windows 7, and I've saved the .class file to my documents. If you don't mind, could I kinda get a play by play what to do next? I'm not sure what "cd" means, and I assume that Terminal window means my command prompt? Thanks in advance for your help.
Junilu Lacar wrote:Welcome to the Ranch!
A link at the top of the page you cited allows you to download the executable .class file. You should probably right click on that link and select "Save as file..." or whatever context menu option you see that allows you to save whatever the link points to as a file in your local system. Then you'd open a terminal window and cd to the directory where you saved the .class file. Then you can issue that command to run the program. And don't take the instructions too literally; You have to give an actual number instead of "X" when you type in that command.