Results 1 to 5 of 5

Thread: javac Problem

  1. #1
    javabeginners is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

    Default javac Problem

    I am a beginner in programing with Java and since i've started to learn it, i stopped on a little, but very important problem.

    I've created "Hello World" java application and need to compile it with javac.
    BUT, when i write in cmd D:\FirstJavaProgram>javac HelloWorld.java , cmd shows me this message:

    javac: file not found: HelloWorld.java
    Usage: javac <options> <source files>
    use -help for a list of possible options

    and this is the step where i stopped with creating my own java app. :/

    Please Help.

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,759
    Rep Power
    7

    Default

    In my experience compilers do not lie. Either the HelloWord.java file is not in that directory or you have misspelt it. Remember that Java is case sensistive so helloworld.java is not the same as HelloWorld.java.

  3. #3
    javabeginners is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

    Default

    I know bro... that helloworld.java is not the same as HelloWorld.java
    I've learned it..
    just follow my first post and help me... according to me... javac can't actually find my HelloWorld.java
    :S

  4. #4
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,759
    Rep Power
    7

    Default

    Yeah BRO!

    I told you. The file doesn't exist. Make sure you are in the correct directory. Do a dir *.java to see what files are listed in your current directory.

  5. #5
    javabeginners is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

    Default

    Thnaks bro about this dir *.java... actually i WAS in the right directory but dealing with wrong file... my HelloWord was actually A TEXT DOCUMENT in Notepad... not JAVA file

    Thank you SO MUCH ;)

    Later bro :)

Similar Threads

  1. problem concerning javac
    By drea007 in forum New To Java
    Replies: 3
    Last Post: 08-30-2010, 12:44 PM
  2. compilation problem "javac:file not found..."
    By Faruq in forum New To Java
    Replies: 9
    Last Post: 02-02-2010, 06:35 PM
  3. problem with javac
    By dangr in forum New To Java
    Replies: 2
    Last Post: 01-16-2010, 10:18 PM
  4. [SOLVED] javac problem
    By MithunDhar in forum New To Java
    Replies: 15
    Last Post: 04-06-2009, 04:19 AM
  5. javac?
    By sardare in forum Eclipse
    Replies: 1
    Last Post: 06-14-2008, 02:06 AM

Posting Permissions

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