Jump to content

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


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 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.

Guest
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.

Loading...
×
×
  • Create New...