Jump to content

Can't run MyClass.java via Command Prompt (cmd.exe) in the "java getting started" tutorial


Tiemen
 Share

Recommended Posts

Hi,

 

I am starting to learm Java(first language). I am having trouble starting up. I try to run my first line of code. But it gives an error.

I know the existense of command Prompt but I don't know how to use it.

Can somone help me out?

 

Thanks

 

image.thumb.png.c2176557110daddbccd2d40217592ce4.png

 

 

 

image.thumb.png.4e488f11f70ecc43fb919f2bce6877e4.png

Link to comment
Share on other sites

That would be because you're "C:/Users/YourName>" is the example of what's in your terminal already. The command you had to run was simply

javac MyClass.java

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...