Jump to content

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


Recommended Posts



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?









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

  • Create New...