Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 9 of 9

Thread: java cant find my files

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default java cant find my files

    Hi everyone .I am new to java programming and i have big problem.When i try to compile something cmd "says" "NAME OF FOLDER" is not recognized as an internal or external comand,operable program or batch file.

    I put path variable C:\Program Files\Java\jdk1.7.0_67\bin; that you do not ask that.

    When i type java -version or javac -version it show me that, so my variable is ok....
    But when i try run something else it is not working it show me error "NAME OF FOLDER" is not recognized as an internal or external comand,operable program or batch file. I use win 7 64 bit professional . I think that windows is make this error.Ihave Linux ubuntu too,should i maybe try programing in linux, beacuse i will freak out.I will be greatefull to everyone who try help.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    6,287
    My Mood
    Mellow
    Thanks
    252
    Thanked 777 Times in 762 Posts

    Default Re: java cant find my files

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

  3. The Following User Says Thank You to GregBrannon For This Useful Post:

    Edvard (August 31st, 2014)

  4. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,265
    Thanks
    56
    Thanked 2,372 Times in 2,343 Posts

    Default Re: java cant find my files

    Copy the full contents of the command prompt window and paste it here showing what you entered and what the OS said.

    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #4
    Junior Member
    Join Date
    Aug 2014
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: java cant find my files

    Microsoft Windows [Version 6.1.7600]
    Autorska prava (c) 2009 Microsoft Corporation. Sva prava pridržana.

    C:\Users\Edvard>cd C:\

    C:\>C:\PracticalJava\workspace\Lesson9\bin>javac TestTax.class
    'C:\PracticalJava\workspace\Lesson9\bin' is not recognized as an internal or ext
    ernal command,
    operable program or batch file.

    C:\>

    Do i need to set PATH of my directory or what?

  6. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    6,287
    My Mood
    Mellow
    Thanks
    252
    Thanked 777 Times in 762 Posts

    Default Re: java cant find my files

    The command to compile:

    javac TestTax.java

    The command to run:

    java TestTax

    Try those and let us know what happens.

  7. #6
    Junior Member
    Join Date
    Aug 2014
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: java cant find my files

    Same error :/


    Microsoft Windows [Version 6.1.7600]
    Autorska prava (c) 2009 Microsoft Corporation. Sva prava pridržana.

    C:\Users\Edvard>cd C:\

    C:\>C:\Users\Edvard>C:\PracticalJava\workspace\Les son9 \bin>javac TestTax.java
    'C:\Users\Edvard' is not recognized as an internal or external command,
    operable program or batch file.

    C:\>C:\Users\Edvard>C:\PracticalJava\workspace\Les son9 \bin>javac TestTax
    'C:\Users\Edvard' is not recognized as an internal or external command,
    operable program or batch file.

    C:\>

  8. #7
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    6,287
    My Mood
    Mellow
    Thanks
    252
    Thanked 777 Times in 762 Posts

    Default Re: java cant find my files

    Oh, oh, oh.

    Are you trying to compile and run source code written in Eclipse from the command line? If so, the source files are in the \src subdirectory, so the command to compile should target the source code in that directory. You can confirm this by using your explorer to review Eclipse's directory structure.

    Then you appear to be typing the path as a command and the Windows command interpreter doesn't understand what you're doing. You could move to the desired directory first, as in (make sure I've typed the path correctly):

    cd c:\PracticalJava\workspace\Lesson9\bin

    or

    cd c:\PracticalJava\workspace\Lesson9\src

    and then when AT THAT DIRECTORY, type

    javac TestTax.java

    The whole command WITHOUT changing directories would be:

    javac c:\PracticalJava\workspace\Lesson9\src\TestTax.jav a

    Again, make sure my typing of the path is correct.

  9. The Following User Says Thank You to GregBrannon For This Useful Post:

    Edvard (September 1st, 2014)

  10. #8
    Junior Member
    Join Date
    Aug 2014
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: java cant find my files

    Thank you bro ,you help me .My mistake was here, that compile my program javac C:\PracticalJava\workspace\Lesson9\src\TestTax.jav a.

  11. #9
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    6,287
    My Mood
    Mellow
    Thanks
    252
    Thanked 777 Times in 762 Posts

    Default Re: java cant find my files

    You're welcome. Glad you figured it out.

Similar Threads

  1. Replies: 2
    Last Post: July 9th, 2013, 10:51 PM
  2. Replies: 3
    Last Post: August 3rd, 2012, 11:40 AM
  3. How the Java 2 SDK Tools Find Files
    By Bijaysadhok in forum Java Theory & Questions
    Replies: 0
    Last Post: February 23rd, 2012, 12:01 AM
  4. Seraching through files in a folder for a pattern match inside the files.
    By dazzabiggs in forum What's Wrong With My Code?
    Replies: 4
    Last Post: May 2nd, 2011, 09:35 AM
  5. Replies: 1
    Last Post: March 22nd, 2011, 07:59 PM