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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...