Can not run compiled class file in the cmd prompt via /r/learnprogramming


Can not run compiled class file in the cmd prompt

no matter what I try, I can not get even the most basic "Hello World" Program to run from the command line. It compiles fine but then gives me the error like such and no matter what error fix tutorials I follow it will not work. PLEASE HELP –

Directory of C:\Users\Ryan\eclipse-workspace\java2DGame\src\java2dgame

13/07/2017 14:30 <DIR> . 13/07/2017 14:30 <DIR> .. 13/07/2017 14:30 424 Game.class 13/07/2017 13:58 151 Game.java 2 File(s) 575 bytes 2 Dir(s) 645,908,344,832 bytes free

C:\Users\Ryan\eclipse-workspace\java2DGame\src\java2dgame>java Game Error: Could not find or load main class Game

C:\Users\Ryan\eclipse-workspace\java2DGame\src\java2dgame>

Submitted July 13, 2017 at 09:37AM by franki3rs
via reddit http://ift.tt/2ucWlpC

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s