Results 1 to 14 of 14
  1. #1
    liam is offline Member
    Join Date
    Dec 2010
    Posts
    7
    Rep Power
    0

    Default java-version is not recognized as an internal or external command, operable program o

    hi all
    i am new to java but i have been reading up on my problem and evrything i try will not work
    my problem is, i open up command prompt and type in (Java-version) and it comes up with the same error message each time java-version is not recognized as an internal or external command, operable program or batch file.
    with what i have read i have to change the path to it in enviroment variables
    my current path i ;Local Disk (C:)\Program Files (X86)\Java;C:\Program Files\Trend Micro\AMSP
    thx in advanced

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,344
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by liam View Post
    hi all
    i am new to java but i have been reading up on my problem and evrything i try will not work
    my problem is, i open up command prompt and type in (Java-version) and it comes up with the same error message each time java-version is not recognized as an internal or external command, operable program or batch file.
    with what i have read i have to change the path to it in enviroment variables
    my current path i ;Local Disk (C:)\Program Files (X86)\Java;C:\Program Files\Trend Micro\AMSP
    thx in advanced
    Open a shell (cmd) and move to the directory listed in your path variable. Can you find a javac.exe file in that directory? b.t.w. it's "javac <space character> -version".

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    liam is offline Member
    Join Date
    Dec 2010
    Posts
    7
    Rep Power
    0

    Default

    ok so i open up (cmd) and it says C:\Users\private>
    i type this into it C:\Users\private>Local Disk (C:)\ Program Files (x86)\java
    and it comes up with the message 'Program' is not reconized as an internal or external command, operable program or batch file.
    plz tell me what i am doing wrong
    for the other thing i go into the java folder and serch javac.exe and the search comes back with the java control panal
    is that what is meant to happen
    and thx for the reply

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,344
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by liam View Post
    ok so i open up (cmd) and it says C:\Users\private>
    i type this into it C:\Users\private>Local Disk (C:)\ Program Files (x86)\java
    and it comes up with the message 'Program' is not reconized as an internal or external command, operable program or batch file.
    plz tell me what i am doing wrong
    for the other thing i go into the java folder and serch javac.exe and the search comes back with the java control panal
    is that what is meant to happen
    and thx for the reply
    Go to the directory where you suspect javac.exe is stored (use the 'cd' command to move to that directory) and type 'dir'. You should see javac.exe listed with all the other files stored in that directory. If you can see the file add the directory to your classpath variable, if you don't see it you have to search for it.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    It's java they're trying to run isn't it?
    Not javac.

    Anyway, just type java anywhere in a cmd and see if it recognises it. The path might be set for all we know.

  6. #6
    liam is offline Member
    Join Date
    Dec 2010
    Posts
    7
    Rep Power
    0

    Default

    ok so i type in 'dir' and it comes up with this
    C:\Users\private>dir
    Volume in drive C has no label
    Volume serial Number is 185d-acsd
    Directory of C:\Users\private
    21/12/2010 0:26 PM <DIR> -
    21/12/2010 0:26 PM <DIR> --
    21/12/2010 0:26 PM 355 Computer - Shortcut.ink
    04/08/2010 05:43 PM <DIR> contracts
    21/12/2010 05:19 PM <DIR> Desktop
    21/12/2010 08:50 PM <DIR> documents
    21/12/2010 05:53 PM <DIR> downloads
    04/08/2010 05:43 PM <DIR> favorites
    21/12/2010 08:26 PM <DIR> java
    09/06/2010 04:44 PM <DIR> 769 liam's work - shortcut.ink
    04/08/2010 05:43 PM <DIR> Links
    04/08/2010 05:43 PM <DIR> music
    04/08/2010 05:43 PM <DIR> pictures
    04/08/2010 05:43 PM <DIR> saved games
    04/08/2010 05:43 PM <DIR> searches
    04/08/2010 05:43 PM <DIR> videos
    2 File(s) 1,124 bytes
    14 Dir(s) 241,116,823,552 bytes free

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    That's not where javac.exe is stored as was suggested above. Look into the java directory that you see above, and possibly a bin subdirectory. Keep looking until you find the file. It's not that hard to find.

  8. #8
    liam is offline Member
    Join Date
    Dec 2010
    Posts
    7
    Rep Power
    0

    Default

    ok so i go into c drive go program files x86 then i open up the java folder and in the search thing in the top right i type in javac.exe it comes up with javacpl which is java control panel. the path to it is local disc (C:)>Program Files(x86)>Java>bin

  9. #9
    liam is offline Member
    Join Date
    Dec 2010
    Posts
    7
    Rep Power
    0

    Default

    what am i doing wrong

  10. #10
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,344
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by liam View Post
    ok so i type in 'dir' and it comes up with this
    C:\Users\private>dir
    Volume in drive C has no label
    Volume serial Number is 185d-acsd
    Directory of C:\Users\private
    Reread my reply #4 again; is C:\Users\private the directory where you expect java.exe and/or javac.exe to be stored? This is going to be a very slow thread ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  11. #11
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    What happens when you just type "java" at the command line (no quotes)?
    I don't see anywhere in your posts where you have actually tried that.

  12. #12
    liam is offline Member
    Join Date
    Dec 2010
    Posts
    7
    Rep Power
    0

    Default

    when i type java into the cmd it comes up with
    'java' is not recognized as an internal or external command, operable program or batch file.
    and for you josAH i found the path to java through cmd and in that folder i found java.exe but not javac.exe hope that helps you
    thanks for replying

  13. #13
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    OK.
    Do you have the SDK installed?
    javac only comes with the SDK.

    The folder you have found is the runtime (JRE).

  14. #14
    liam is offline Member
    Join Date
    Dec 2010
    Posts
    7
    Rep Power
    0

    Default

    sorry i have been away for a while
    so what is the sdk that i have to have

Similar Threads

  1. Replies: 6
    Last Post: 05-10-2011, 04:32 PM
  2. Replies: 12
    Last Post: 11-25-2010, 06:55 AM
  3. Replies: 6
    Last Post: 09-13-2010, 11:13 PM
  4. Replies: 5
    Last Post: 04-26-2010, 04:45 AM
  5. Replies: 8
    Last Post: 11-18-2008, 09:21 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
  •