Results 1 to 4 of 4
  1. #1
    Gunnadin is offline Member
    Join Date
    Apr 2014
    Posts
    13
    Rep Power
    0

    Default Command Prompt Can't Find My Hello World Program

    I just created a Hello World program in Notepad, but command prompt still can't find it even when ran as administrator. I've even tried to use command line to run Hello World programs I've created with Eclipse but it still doesn't work. Here's the error I'm getting:
    Command Prompt Can't Find My Hello World Program-notcompiling.png

    Here's proof I have JDK setup as PATH:

    Command Prompt Can't Find My Hello World Program-path.png


    I've even tried having the JRE as path but that still doesn't solve my problem. I'm really trying to learn Java programming but this problem is holding me back.

  2. #2
    kneitzel is offline Senior Member
    Join Date
    Feb 2014
    Posts
    447
    Rep Power
    1

    Default Re: Command Prompt Can't Find My Hello World Program

    You have to be in the directory where your HelloWorld.java file is. And that must be the exact name. Do a "dir" to see all files in your current directory.

    Konrad

  3. #3
    Gunnadin is offline Member
    Join Date
    Apr 2014
    Posts
    13
    Rep Power
    0

    Default Re: Command Prompt Can't Find My Hello World Program

    I just did it but it's not showing my HelloWorld program anywhere.
    It's saved on the desktop, but it's not anywhere to be found

  4. #4
    HeavyTech is offline Member
    Join Date
    Jun 2014
    Posts
    17
    Rep Power
    0

    Default Re: Command Prompt Can't Find My Hello World Program

    It's saved on the desktop, but it's not anywhere to be found
    By the look of your screenshot, it doesn't look like you are in the desktop

    Should look something like this
    Command Prompt Can't Find My Hello World Program-directory.png

Similar Threads

  1. Trouble Running Program from Command Prompt
    By awinston in forum New To Java
    Replies: 7
    Last Post: 07-11-2012, 10:52 AM
  2. Letting my program command the command prompt
    By Smokey. in forum Threads and Synchronization
    Replies: 4
    Last Post: 03-30-2011, 12:34 AM
  3. java program for running the command prompt commands
    By leoanto in forum Advanced Java
    Replies: 2
    Last Post: 03-26-2011, 04:57 PM
  4. help me!!!! about command prompt..
    By kureikougaiji in forum New To Java
    Replies: 2
    Last Post: 11-13-2008, 07:15 PM
  5. Replies: 2
    Last Post: 08-06-2007, 10:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •